[asterisk-users] Asterisk16 - PJSIP - Error 401 on outbound registration

Joshua C. Colp jcolp at sangoma.com
Sat Jan 18 17:31:29 CST 2020


On Sat, Jan 18, 2020 at 1:14 PM Administrator <admin at tootai.net> wrote:

>
> Le 17/01/2020 à 11:54, Administrator a écrit :
> >
> > Le 15/01/2020 à 19:24, Administrator a écrit :
> >> Hi all,
> >>
> >> we face a strange behavior while connecting an Asterisk16 instance
> >> with PJSIP to 2 providers: we receive error 401 Unauthorized, both of
> >> them having Kamailio as front-end. With other providers -we don't
> >> know if they run kamailio- registration is just fine.
> >>
> >> One of the provider took a pcap and told us that expiration was set
> >> to 0 that's why they don't accept the registration. We took a pcap on
> >> our side when SIP packet goes out of our server and we see that the
> >> expiration parameter is setted to 3600 !
> >>
> >> Asterisk version is Asterisk 16.2.1~dfsg-1+deb10u1 on Debian 10 up to
> >> date. We also installed 16.7 from scratch, same problem. I have to
> >> mention that our test asterisk is also a Debian 10 with Asterisk
> >> stock 16.7 and _does_ register normally against the same provider :(
> >>
> >> If someone had a clue on this, welcome.
> >
> > We went a step further: when Asterisk is receiving the 401
> > Unauthorized it doesn't send the Authorization back, insteed it send
> > the Register back with the *same* CSeq which it shoudn't. Pjsip is
> >
> > pabx16*CLI> pjsip show version
> > PJPROJECT version currently running against: 2.8
>
> We removed the debian asterisk deb package and compiled from 16.7.0
> source. Problem stays, still ni CSeq increment. Pjsip is
>
> pabx16*CLI> pjsip show version
> PJPROJECT version currently running against: 2.9
>
> Anyone on this ?
>

Is the response actually getting to Asterisk? Does it show up in "pjsip set
logger on"? Is the REGISTER a retransmission and thus expected to be the
same?

-- 
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-users/attachments/20200118/f2995648/attachment.html>


More information about the asterisk-users mailing list