[asterisk-dev] supported: timers though deactivated

Joshua C. Colp jcolp at sangoma.com
Tue Jun 8 03:48:13 CDT 2021


On Mon, Jun 7, 2021 at 10:38 PM Michael Maier <m1278468 at mailbox.org> wrote:

> On 06.06.21 at 22:19 Joshua C. Colp wrote:
> > On Sun, Jun 6, 2021 at 3:57 PM Michael Maier <m1278468 at mailbox.org>
> wrote:
> >
> >> Hello!
> >>
> >> Using Asterisk 18.4 / pjisp, timers are advertised as supported though
> >> disabled in config with timers=no.
> >>
> >> This does not happen initially (during the Invite sequence) but later on
> >> in 200 Ok as answer to a reInvite or as the answer to an Update methode.
> >>
> >> Is there any reason why it's suddenly activated later on though it's
> >> deactivated? From my point of view, this smells like a bug.
> >>
> >
> > It'd be a bug in PJSIP itself, probably in the INVITE session[1] code as
> > that is what responsible for this.
>
> Thanks for your hint!
>
> They are using a function to clean up the supported header
> (cleanup_allow_sup_hdr).
>
> 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):
>
> inv_respond_incoming_update
>         pjsip_dlg_create_response
>                 pjsip_endpt_create_response
>                         pjsip_msg_create
>                                 pj_list_init
>
>         pjsip_timer_update_resp
>         pjsip_dlg_send_response
>
> 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?
>

It's added to the global Supported header, which is added elsewhere to
messages[1].

[1]
https://github.com/pjsip/pjproject/blob/master/pjsip/src/pjsip/sip_dialog.c#L1437

-- 
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/20210608/6c91aacc/attachment.html>


More information about the asterisk-dev mailing list