[asterisk-users] Asterisk16 - PJSIP - Error 401 on outbound registration
admin at tootai.net
Thu Jan 16 03:16:04 CST 2020
Le 15/01/2020 à 19:50, C.Maj a écrit :
> On 2020-01-15 11:24, Administrator wrote:
>> 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 !
> Maybe the clipping of your SIP packet is occurring on another provider's
> (faulty) node somewhere in between your dualing pcaps at the endpoints ?
No.tcpdump -nqt -s 0 -i enp0s31f6 -A "dst xxx.yyy.78.36 and dst port
5060" where xxx.yyy.78.36 is the provider Kamailio IP
IP zzz.xyz.174.138.58738 > xxx.yyy.78.36.5060: UDP, length 570
E..V.T at .?...X....2N$.r...B..REGISTER sip:sip.myprovider.net SIP/2.0
<sip:123456 at sip.myprovider.net>;tag=d0be9b76-6363-4ce8-b747-7d75f222eef7
To: <sip:123456 at sip.myprovider.net>
CSeq: 47982 REGISTER
Contact: <sip:123456 at zzz.xyz.174.138:5060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE,
CANCEL, UPDATE, PRACK, MESSAGE, REFER
Please notice the
E..V.T at .?...X....2N$.r...B..
in front of REGISTER, could this create the problem ?
> As for what you can control, first, you might try reducing the
> expiration from 3600 to 999, or maybe something in the 30-60 range is
> better for you. If that works, then raise it from there, but I think an
> hour is more than enough.
We tried with 99, 60, 986, without setting expiration leting Asterisk
using his default value, no changes :(
> Or, change network paths; by adding new outbound SIP connection to the
> provider from alternate port and/or IP on the PBX/firewall, use VPN, etc.
Not a solution, to risky.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the asterisk-users