[SR-Users] rtpengine via-branch=extra question
Richard Fuchs
rfuchs at sipwise.com
Thu Nov 19 19:11:19 CET 2015
On 11/18/2015 08:47 AM, Juha Heinanen wrote:
> rtpengine readme tells:
>
> via-branch=... - Include the “branch” value of one of the “Via” headers
> in the request to the RTP proxy. Possible values are: “1” - use the
> first “Via” header; “2” - use the second “Via” header; “auto” - use the
> first “Via” header if this is a request, or the second one if this is a
> reply; “extra” - don't take the value from a header, but instead use the
> value of the “extra_id_pv” variable. This can be used to create one
> media session per branch on the RTP proxy. When sending a subsequent
> “delete” command to the RTP proxy, you can then stop just the session
> for a specific branch when passing the flag '1' or '2' in the
> “rtpengine_delete”, or stop all sessions for a call when not passing one
> of those two flags there.
>
> if via-branch=extra is used in offers of branched, should it also be
> used in answers and deletes?
Yes it should, as rtpengine uses the via-branch to match the answers to
the offers which didn't have a to-tag. Looking at the sources, the same
logic appears to be missing in the code handling the deletes. I'll fix
this oversight soon.
Cheers
More information about the sr-users
mailing list