Can dial externally but can't receive incoming cal

Ted

Joined
Sep 27, 2010
Messages
17
Likes
0
Points
0
#1
Hi All,

Installed Elastix last week and have not been able to recieve inbound calls. Elastic see the call by no audio is heard.

I have forwarded the following ports per instruction I have found:

SIP - 5004 to 5082 both tcp/udp to 192.168.0.20
RTP - 10001 to 14000 udp only to 192.168.0.20
AIX - 4569 udp only to 192.168.0.20

I did set elastix rtp port range to 10001 to 14000 as well.

In unembedded freepbx - tools - sip settings, nat = yes, IP Config = Static, External IP = my external IP, local networks = 192.168.0.0/255.255.255.0

The following is the asterisk activity for a call received and transferred to VM:

53", "DID=1777XXXXXXX") in new stack
-- Executing [1777XXXXXXX@from-sip-external:3] Goto("SIP/66.193.176.35-00000053", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/66.193.176.35-00000053", "1?checklang:noanonymous") in new stack
-- Goto (from-sip-external,s,2)
-- Executing [s@from-sip-external:2] GotoIf("SIP/66.193.176.35-00000053", "0?setlanguage:from-trunk,1777XXXXXXX,1") in new stack
-- Goto (from-trunk,1777XXXXXXX,1)
-- Executing [1777XXXXXXX@from-trunk:1] NoOp("SIP/66.193.176.35-00000053", "Catch-All DID Match - Found 1777XXXXXXX - You probably want a DID for this.") in new stack
-- Executing [1777XXXXXXX@from-trunk:2] Goto("SIP/66.193.176.35-00000053", "ext-did,s,1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] Set("SIP/66.193.176.35-00000053", "__FROM_DID=s") in new stack
-- Executing [s@ext-did:2] Gosub("SIP/66.193.176.35-00000053", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/66.193.176.35-00000053", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/66.193.176.35-00000053", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/66.193.176.35-00000053", "") in new stack
-- Executing [s@ext-did:3] ExecIf("SIP/66.193.176.35-00000053", "0 ?Set(CALLERID(name)=13034604651)") in new stack
-- Executing [s@ext-did:4] SetMusicOnHold("SIP/66.193.176.35-00000053", "none") in new stack
-- Executing [s@ext-did:5] Set("SIP/66.193.176.35-00000053", "__MOHCLASS=none") in new stack
-- Executing [s@ext-did:6] Ringing("SIP/66.193.176.35-00000053", "") in new stack
-- Executing [s@ext-did:7] Set("SIP/66.193.176.35-00000053", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:8] Set("SIP/66.193.176.35-00000053", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@ext-did:9] Goto("SIP/66.193.176.35-00000053", "from-did-direct,102,1") in new stack
-- Goto (from-did-direct,102,1)
-- Executing [102@from-did-direct:1] Macro("SIP/66.193.176.35-00000053", "exten-vm,102,102") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/66.193.176.35-00000053", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/66.193.176.35-00000053", "AMPUSER=13034604651") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/66.193.176.35-00000053", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/66.193.176.35-00000053", "1?Set(REALCALLERIDNUM=13034604651)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/66.193.176.35-00000053", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/66.193.176.35-00000053", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/66.193.176.35-00000053", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/66.193.176.35-00000053", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/66.193.176.35-00000053", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/66.193.176.35-00000053", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/66.193.176.35-00000053", "Using CallerID "MTN CONST MGMT" <13034604651>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/66.193.176.35-00000053", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/66.193.176.35-00000053", "VMBOX=102") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/66.193.176.35-00000053", "EXTTOCALL=102") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/66.193.176.35-00000053", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/66.193.176.35-00000053", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/66.193.176.35-00000053", "RT=15") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/66.193.176.35-00000053", "record-enable,102,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/66.193.176.35-00000053", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/66.193.176.35-00000053", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/66.193.176.35-00000053", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/66.193.176.35-00000053", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/66.193.176.35-00000053", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/66.193.176.35-00000053", "dial,15,tr,102") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/66.193.176.35-00000053", "0?dial") in new stack
-- Executing [s@macro-dial:2] SetMusicOnHold("SIP/66.193.176.35-00000053", "none") in new stack
-- Executing [s@macro-dial:3] AGI("SIP/66.193.176.35-00000053", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is 'MTN CONST MGMT' number is '13034604651'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 102 to extension map
-- dialparties.agi: Extension 102 cf is disabled
-- dialparties.agi: Extension 102 do not disturb is disabled
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
-- dialparties.agi: dbset CALLTRACE/102 to 13034604651
-- dialparties.agi: Filtered ARG3: 102
-- <SIP/66.193.176.35-00000053>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/66.193.176.35-00000053", "SIP/102,15,tr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called 102
-- SIP/102-00000054 is ringing
-- Nobody picked up in 15000 ms
-- Executing [s@macro-dial:8] Set("SIP/66.193.176.35-00000053", "DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-dial:9] GosubIf("SIP/66.193.176.35-00000053", "0?NOANSWER,1") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("SIP/66.193.176.35-00000053", "0?exit,return") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/66.193.176.35-00000053", "SV_DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/66.193.176.35-00000053", "0?docfu,1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/66.193.176.35-00000053", "0?docfb,1") in new stack
-- Executing [s@macro-exten-vm:14] Set("SIP/66.193.176.35-00000053", "DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("SIP/66.193.176.35-00000053", "Voicemail is '102'") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("SIP/66.193.176.35-00000053", "0?s-NOANSWER,1") in new stack
-- Executing [s@macro-exten-vm:17] NoOp("SIP/66.193.176.35-00000053", "Sending to Voicemail box 102") in new stack
-- Executing [s@macro-exten-vm:18] Macro("SIP/66.193.176.35-00000053", "vm,102,NOANSWER,") in new stack
-- Executing [s@macro-vm:1] Macro("SIP/66.193.176.35-00000053", "user-callerid,SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/66.193.176.35-00000053", "AMPUSER=13034604651") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/66.193.176.35-00000053", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/66.193.176.35-00000053", "0?Set(REALCALLERIDNUM=13034604651)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/66.193.176.35-00000053", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/66.193.176.35-00000053", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/66.193.176.35-00000053", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/66.193.176.35-00000053", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/66.193.176.35-00000053", "Using CallerID "MTN CONST MGMT" <13034604651>") in new stack
-- Executing [s@macro-vm:2] Set("SIP/66.193.176.35-00000053", "VMGAIN=""") in new stack
-- Executing [s@macro-vm:3] GotoIf("SIP/66.193.176.35-00000053", "1?vmx,1") in new stack
-- Goto (macro-vm,vmx,1)
-- Executing [vmx@macro-vm:1] Set("SIP/66.193.176.35-00000053", "MEXTEN=102") in new stack
-- Executing [vmx@macro-vm:2] Set("SIP/66.193.176.35-00000053", "MMODE=NOANSWER") in new stack
-- Executing [vmx@macro-vm:3] Set("SIP/66.193.176.35-00000053", "RETVM=") in new stack
-- Executing [vmx@macro-vm:4] Set("SIP/66.193.176.35-00000053", "MODE=unavail") in new stack
-- Executing [vmx@macro-vm:5] GotoIf("SIP/66.193.176.35-00000053", "1?chknomsg") in new stack
-- Goto (macro-vm,vmx,7)
-- Executing [vmx@macro-vm:7] GotoIf("SIP/66.193.176.35-00000053", "0?s-NOANSWER,1") in new stack
-- Executing [vmx@macro-vm:8] GotoIf("SIP/66.193.176.35-00000053", "1?notdirect") in new stack
-- Goto (macro-vm,vmx,10)
-- Executing [vmx@macro-vm:10] NoOp("SIP/66.193.176.35-00000053", "Checking if ext 102 is enabled: ") in new stack
-- Executing [vmx@macro-vm:11] GotoIf("SIP/66.193.176.35-00000053", "1?s-NOANSWER,1") in new stack
-- Goto (macro-vm,s-NOANSWER,1)
-- Executing [s-NOANSWER@macro-vm:1] Macro("SIP/66.193.176.35-00000053", "get-vmcontext,102") in new stack
-- Executing [s@macro-get-vmcontext:1] Set("SIP/66.193.176.35-00000053", "VMCONTEXT=default") in new stack
-- Executing [s@macro-get-vmcontext:2] GotoIf("SIP/66.193.176.35-00000053", "0?200:300") in new stack
-- Goto (macro-get-vmcontext,s,300)
-- Executing [s@macro-get-vmcontext:300] NoOp("SIP/66.193.176.35-00000053", "") in new stack
-- Executing [s-NOANSWER@macro-vm:2] VoiceMail("SIP/66.193.176.35-00000053", "102@default,u") in new stack
-- <SIP/66.193.176.35-00000053> Playing 'vm-theperson.gsm' (language 'en')
-- <SIP/66.193.176.35-00000053> Playing 'digits/1.gsm' (language 'en')
-- <SIP/66.193.176.35-00000053> Playing 'digits/0.gsm' (language 'en')
-- <SIP/66.193.176.35-00000053> Playing 'digits/2.gsm' (language 'en')
-- <SIP/66.193.176.35-00000053> Playing 'vm-isunavail.gsm' (language 'en')
-- <SIP/66.193.176.35-00000053> Playing 'vm-intro.gsm' (language 'en')
-- <SIP/66.193.176.35-00000053> Playing 'beep.gsm' (language 'en')
-- Recording the message
-- x=0, open writing: /var/spool/asterisk/voicemail/default/102/tmp/iuIt6S format: wav49, 0xa7b8558
-- x=1, open writing: /var/spool/asterisk/voicemail/default/102/tmp/iuIt6S format: wav, 0xa280d70
-- User hung up
== Parsing '/var/spool/asterisk/voicemail/default/102/INBOX/msg0004.txt': == Found
== Parsing '/var/spool/asterisk/voicemail/default/102/INBOX/msg0004.txt': == Found
== Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on 'SIP/66.193.176.35-00000053' in macro 'vm'
== Spawn extension (macro-exten-vm, s, 18) exited non-zero on 'SIP/66.193.176.35-00000053' in macro 'exten-vm'
== Spawn extension (from-did-direct, 102, 1) exited non-zero on 'SIP/66.193.176.35-00000053'



Any help would be greatly appreciated!

Thanks - Ted
 

Ted

Joined
Sep 27, 2010
Messages
17
Likes
0
Points
0
#2
I was able to get resolution on this issue working with callcentric. The following is what they recommened to on my trunk setup.


add the following lines to your sip_general_custom.conf file:

context=from-pstn
srvlookup=yes
session-timers=refuse
session-expires=180
session-minse=90
session-refresher=uas

trunk peer details change username=1777xxxxxxx to the following defaultuser=1777xxxxxxx

Also why exactly are you using "qualify=yes"?, in most instances it is not necessary.

I set qualify=no.

My truck PEER Details are set as follows:

defaultuser=1777XXXXXXX
type=friend
secret=XXXXXXXX
insecure=very
host=callcentric.com
fromuser=1777XXXXXXX
fromdomain=callcentric.com
disallow=all
context=from-pstn
allow=g729&ulaw&alaw

USER Context:
1777XXXXXXX

USER Details:
"Blank"

Register String:
1777XXXXXXX:secret@callcentric.com/1777XXXXXXX

Hope this helps everone.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,898
Messages
130,879
Members
17,560
Latest member
manuelc
Top