[asterisk-dev] Problem with SDP session id in 200 OK during ReInvite

Joshua C. Colp jcolp at sangoma.com
Tue Oct 27 04:07:14 CDT 2020


On Mon, Oct 26, 2020 at 2:02 PM Michael Maier <m1278468 at mailbox.org> wrote:

> Hello!
>
> I'm facing the problem, that *sometimes* the SDP session ID isn't
> incremented in the 200 OK, which asterisk sends as answer to a ReInvite it
> got from the peer (use case: session
> timer handling). This leads to broken calls, because the SDP session ID
> must be incremented if the session description has changed (the session
> description has changed).
>
> Modifying the SDP session ID is possible in
> res/res_pjsip/pjsip_message_filter.c / filter_on_tx_message() for SDPs
> contained in an Invite, which is created and sent by asterisk.
> At the moment, I'm already modifying the SDP session ID at this place,
> because of another problem:
>

<snip>


> Maybe it's too late and the processing of the 200 OK doesn't hit this part
> at all?
>
> Or is there any other possibility to modify the SDP session ID contained
> in the 200 OK, that is sent by asterisk as an answer to a ReInvite?
>

It should be modifiable there, it injects itself at the transaction layer
to be called for both requests and responses. I'm not sure under what
scenarios (if any) it would not be called.

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20201027/43b32d88/attachment.html>


More information about the asterisk-dev mailing list