We recently upgraded from Asterisk 1.4.43 (compiled from source) to Asterisk 1.8.13 (Debian repo). Except for adding “insecure=invite” to our peers, the configuration is identical. All peers are able to connect to the new server, except this one Swyx client. If i tcpdump the customer’s IP, I can see that there are packets coming from them to us, but our Asterisk machines never replies. I was hoping anyone can tell me what is wrong with the following packet:
IP 1.2.3.4 is our IP.
IP 192.168.254.250 is customer’s Swyx box internal IP on their end.
IP 12.13.14.15 is their external IP
"asterisk2swyx" is the username.
The answer should be in the log. You don’t seem to have a suitable logging level. Generally, you want at least verbose 5 and at least debug 5 and you want to make sure logger.conf actually results in everything being logged.
I have enabled debugging in logger.conf to file ‘full’, and this is what I got. The only error I see in there is “REGISTER request has no from tag”, is that indeed the problem?
I have googled for this error message, but I can’t find a direct solution to my problem. I hope anyone has some tips for me.
I have found an issue with Cisco phones, where this message (“no from tag”) also occurs. The solution there seems to be using pedantic=yes. I’ve tried this for my Swyx peer, but that does not resolve the issue.
I have just sniffed the old server (Asterisk 1.4). There isnt a “;tag” in the From message there either, but Asterisk 1.4 registers the peer just fine. (Same Swyx version/box)
Not having a tag on the From is a violation of a mandatory requirement of the SIP protocol. If pedantic=no doesn’t help, you will have to modify the Asterisk source code to tolerate that violation.
8.1.1.3 From
…
The From field MUST contain a new “tag” parameter, chosen by the UAC.
See Section 19.3 for details on choosing a tag.
It turns out that the “pedantic” setting in SIP.conf cannot be set on a per peer basis. It is system wide. The default setting has also changed from no to yes, and I was still using my 1.4 sip.conf, which documented the setting as beeing default no.
Excplicitly setting pedantic=no in sip.conf under [general] solved the issue. The peer registered.