I created a dialplan to connect 2 asterisk servers one the main server using PJSIP 13 and another the client using the SIP 13 version too.
When I tried to receive a call in the main server for the extension 19009001 the client server didn’t pass the call to extension as the error bellow. I made many tests and only worked when I changed my dialplan to use “s”, but when I made it the ringing sound was with noises and in the log shows it:
ERROR test using “s” with noises:
2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]
== Using SIP RTP CoS mark 5
-- Executing [s@incoming:1] Answer("SIP/19009002-00000004", "") in new stack
-- Executing [s@incoming:2] Dial("SIP/19009002-00000004", "SIP/19009001,60,tT") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/19009001
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009001-00000005 is ringing
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 26, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
-- SIP/19009002-00000004 requested media update control 20, passing it to SIP/19009001-00000005
ERROR when dialplan signal the endpoint 19009001
== Using SIP RTP CoS mark 5
> 0x7f1ab442a9a0 – Strict RTP learning after remote address set to: xx.233.162.33:11824
[Jan 25 18:01:00] NOTICE[16850][C-00000003]: chan_sip.c:26468 handle_request_invite: Call from ‘19009002’ (xx.233.162.33:5060) to extension ‘s’ rejected because extension not found in context ‘incoming’.
Dialplan desired and doesn’t work to receive call:
[incoming]
exten => 19009002,1,Answer()
same => n,Dial(SIP/19009001,60,tT)
same => n,Hangup()
Dialplan with “s” receiving calls and registering the flood of logs and noises:
[incoming]
exten => s,1,Answer()
same => n,Dial(SIP/19009001,60,tT)
same => n,Hangup()