<div dir="ltr"><div dir="ltr">On Mon, Jun 7, 2021 at 10:38 PM Michael Maier <<a href="mailto:m1278468@mailbox.org">m1278468@mailbox.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 06.06.21 at 22:19 Joshua C. Colp wrote:<br>
> On Sun, Jun 6, 2021 at 3:57 PM Michael Maier <<a href="mailto:m1278468@mailbox.org" target="_blank">m1278468@mailbox.org</a>> wrote:<br>
> <br>
>> Hello!<br>
>><br>
>> Using Asterisk 18.4 / pjisp, timers are advertised as supported though<br>
>> disabled in config with timers=no.<br>
>><br>
>> This does not happen initially (during the Invite sequence) but later on<br>
>> in 200 Ok as answer to a reInvite or as the answer to an Update methode.<br>
>><br>
>> Is there any reason why it's suddenly activated later on though it's<br>
>> deactivated? From my point of view, this smells like a bug.<br>
>><br>
> <br>
> It'd be a bug in PJSIP itself, probably in the INVITE session[1] code as<br>
> that is what responsible for this.<br>
<br>
Thanks for your hint!<br>
<br>
They are using a function to clean up the supported header (cleanup_allow_sup_hdr).<br>
<br>
Let's take a look at the creation of the 200 Ok answer of the received update - I could find this path (there is no SDP in the received Update):<br>
<br>
inv_respond_incoming_update<br>
        pjsip_dlg_create_response<br>
                pjsip_endpt_create_response<br>
                        pjsip_msg_create<br>
                                pj_list_init<br>
<br>
        pjsip_timer_update_resp<br>
        pjsip_dlg_send_response<br>
<br>
If I didn't oversee anything, I couldn't find the usage of cleanup_allow_sup_hdr - but I couldn't find either where the supported header should have been added. Do you have an idea?<br></blockquote><div><br></div><div>It's added to the global Supported header, which is added elsewhere to messages[1].</div><div><br></div><div>[1]  <a href="https://github.com/pjsip/pjproject/blob/master/pjsip/src/pjsip/sip_dialog.c#L1437">https://github.com/pjsip/pjproject/blob/master/pjsip/src/pjsip/sip_dialog.c#L1437</a></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>