I also enabled “Allow Anonymous Inbound SIP Calls” in the General Settings.
Where 90.0.0.110 is the IP of the TalkSwitch PBX.
The registration is successful, I can call from Asterisk to any extension in TalkSwitch also I can call PSTN and VIOP lines through TalkSwitch from Asterisk.
The problem, I cannot receive any calls into Asterisk through TalkSwitch, I always get busy signal.
Below is what I get in Asterisk log when calling from Analog phone connected to TalkSwitch into the SIP Trunk in Asterisk:
[Jan 22 10:28:20] VERBOSE[2732] netsock.c: == Using SIP RTP TOS bits 184
[Jan 22 10:28:20] VERBOSE[2732] netsock.c: == Using SIP RTP CoS mark 5
While below is what I get in Asterisk log when calling from IP phone connected to TalksSwitch into the SIP Trunk in Asterisk:
[Jan 22 19:37:48] VERBOSE[2725] netsock.c: == Using SIP RTP TOS bits 184
[Jan 22 19:37:48] VERBOSE[2725] netsock.c: == Using SIP RTP CoS mark 5
[Jan 22 19:37:48] WARNING[2725] chan_sip.c: username mismatch, have <158>, digest has <001A7E151>
[Jan 22 19:37:48] NOTICE[2725] chan_sip.c: Failed to authenticate device “My Office” sip:[email protected];tag=2632853575642027014
Any idea why I am getting the busy signal? And how to fix this problem?
can you check it enabling sip debug from the console with:
sip set debug on
It’s possible you’ll face with something like:
-- Executing [0123456789@from-sip-external:1] NoOp("SIP/192.168.1.100-00000003", "Received incoming SIP connection from unknown peer to 0123456789") in new stack
-- Executing [0123456789@from-sip-external:2] Set("SIP/192.168.1.100-00000003", "DID=0123456789") in new stack
-- Executing [0123456789@from-sip-external:3] Goto("SIP/192.168.1.100-00000003", "s,1") in new stack
it runs the [from-sip-external] (just an example… not had to be the same) and maybe it has a definitin of Congestion in the plan…
I have set up an extension on the Talkswitch to match as extension 199 with a user name of 199 and a password of 199 (I will increase the security once I get this to work).
The issue is that it won’t even register. I get a connection refused in the log files which would indicate either 1) my credentials are incorrect or there is an addressing or port issue. I believe it is not 2) because I have used an external SIP client with exactly the same settings and it works perfectly and registers. Therefore I believe it must be something in the way Asterisk is passing in the credentials.
Thanks for the feedback Scott. I was working off the original post from jalmod which said to use insecure=very to fix his incoming calls. I am new to Asterisk and just testing it out so this is my first try.
I will investigate your other suggestions. Obviously something has changed since when it worked for jalmod as they weren’t listed in his (presumably) working example.