Hi, I have newly installed Free PBX in our Head office and Branch Office. Inter Unit calling is working good. and Head office User Make external Call through BSNL SIP PRI trunk line. But B location Branch office user could n’t call external users through HO BSNLl PRI line. Please see the Astrix log and Network diagram. Please help me to resolve this issue.
Thanks in advance.
Astrixs Log as : –
Executing [08667732259@from-sip-external:1] NoOp(“SIP/192.168.9.21-00000399”, “Received incoming SIP connection from unknown peer to 08667732259”) in new stack
– Executing [08667732259@from-sip-external:2] Set(“SIP/192.168.9.21-00000399”, “DID=08667732259”) in new stack
– Executing [08667732259@from-sip-external:3] Goto(“SIP/192.168.9.21-00000399”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“SIP/192.168.9.21-00000399”, “1?setlanguage:checkanon”) in new stack
– Goto (from-sip-external,s,2)
– Executing [s@from-sip-external:2] Set(“SIP/192.168.9.21-00000399”, “CHANNEL(language)=en”) in new stack
– Executing [s@from-sip-external:3] GotoIf(“SIP/192.168.9.21-00000399”, “0?noanonymous”) in new stack
– Executing [s@from-sip-external:4] Goto(“SIP/192.168.9.21-00000399”, “from-trunk,08667732259,1”) in new stack
– Goto (from-trunk,08667732259,1)
– Executing [08667732259@from-trunk:1] NoOp(“SIP/192.168.9.21-00000399”, “Catch-All DID Match - Found 08667732259 - You probably want a DID for this.”) in new stack
– Executing [08667732259@from-trunk:2] Set(“SIP/192.168.9.21-00000399”, “__FROM_DID=08667732259”) in new stack
– Executing [08667732259@from-trunk:3] Goto(“SIP/192.168.9.21-00000399”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [s@ext-did:1] Set(“SIP/192.168.9.21-00000399”, “__DIRECTION=INBOUND”) in new stack
– Executing [s@ext-did:2] Gosub(“SIP/192.168.9.21-00000399”, “sub-record-check,s,1(in,s,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/192.168.9.21-00000399”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/192.168.9.21-00000399”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/192.168.9.21-00000399”, “NOW=1686655475”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/192.168.9.21-00000399”, “__DAY=13”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/192.168.9.21-00000399”, “__MONTH=06”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/192.168.9.21-00000399”, “__YEAR=2023”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/192.168.9.21-00000399”, “__TIMESTR=20230613-165435”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/192.168.9.21-00000399”, “__FROMEXTEN=unknown”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/192.168.9.21-00000399”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/192.168.9.21-00000399”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/192.168.9.21-00000399”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/192.168.9.21-00000399”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/192.168.9.21-00000399”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/192.168.9.21-00000399”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/192.168.9.21-00000399”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [in@sub-record-check:1] NoOp(“SIP/192.168.9.21-00000399”, “Inbound Recording Check to s”) in new stack
– Executing [in@sub-record-check:2] Set(“SIP/192.168.9.21-00000399”, “FROMEXTEN=unknown”) in new stack
– Executing [in@sub-record-check:3] ExecIf(“SIP/192.168.9.21-00000399”, “13?Set(FROMEXTEN=+914222351131)”) in new stack
– Executing [in@sub-record-check:4] Gosub(“SIP/192.168.9.21-00000399”, “recordcheck,1(dontcare,in,s)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/192.168.9.21-00000399”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/192.168.9.21-00000399”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/192.168.9.21-00000399”, “”) in new stack
– Executing [in@sub-record-check:5] Return(“SIP/192.168.9.21-00000399”, “”) in new stack
– Executing [s@ext-did:3] Set(“SIP/192.168.9.21-00000399”, “CHANNEL(tonezone)=us”) in new stack
– Executing [s@ext-did:4] ExecIf(“SIP/192.168.9.21-00000399”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [s@ext-did:5] Set(“SIP/192.168.9.21-00000399”, “returnhere=1”) in new stack
– Executing [s@ext-did:6] Gosub(“SIP/192.168.9.21-00000399”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/192.168.9.21-00000399”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/192.168.9.21-00000399”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/192.168.9.21-00000399”, “”) in new stack
– Executing [s@ext-did:7] Set(“SIP/192.168.9.21-00000399”, “CDR(did)=08667732259”) in new stack
– Executing [s@ext-did:8] GotoIf(“SIP/192.168.9.21-00000399”, “0?”) in new stack
– Executing [s@ext-did:9] ExecIf(“SIP/192.168.9.21-00000399”, “0 ?Set(CALLERID(name)=+914222351131)”) in new stack
– Executing [s@ext-did:10] Set(“SIP/192.168.9.21-00000399”, “__MOHCLASS=”) in new stack
– Executing [s@ext-did:11] Set(“SIP/192.168.9.21-00000399”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [s@ext-did:12] GotoIf(“SIP/192.168.9.21-00000399”, “1?post-reverse-charge”) in new stack
– Goto (ext-did,s,14)
– Executing [s@ext-did:14] NoOp(“SIP/192.168.9.21-00000399”, “”) in new stack
– Executing [s@ext-did:15] Set(“SIP/192.168.9.21-00000399”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:16] Set(“SIP/192.168.9.21-00000399”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:17] Set(“SIP/192.168.9.21-00000399”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:18] Set(“SIP/192.168.9.21-00000399”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:19] NoOp(“SIP/192.168.9.21-00000399”, “CallerID Entry Point”) in new stack
– Executing [s@ext-did:20] Goto(“SIP/192.168.9.21-00000399”, “ext-trunk,1,1”) in new stack
– Goto (ext-trunk,1,1)
– Executing [1@ext-trunk:1] Set(“SIP/192.168.9.21-00000399”, “TDIAL_SUFFIX=@KGFL”) in new stack
– Executing [1@ext-trunk:2] Set(“SIP/192.168.9.21-00000399”, “TDIAL_STRING=PJSIP”) in new stack
– Executing [1@ext-trunk:3] Set(“SIP/192.168.9.21-00000399”, “DIAL_TRUNK=1”) in new stack
– Executing [1@ext-trunk:4] Goto(“SIP/192.168.9.21-00000399”, “ext-trunk,tdial,1”) in new stack
– Goto (ext-trunk,tdial,1)
– Executing [tdial@ext-trunk:1] Set(“SIP/192.168.9.21-00000399”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [tdial@ext-trunk:2] GotoIf(“SIP/192.168.9.21-00000399”, “1?nomax”) in new stack
– Goto (ext-trunk,tdial,4)
– Executing [tdial@ext-trunk:4] ExecIf(“SIP/192.168.9.21-00000399”, “1?Set(CALLERID(name-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:5] ExecIf(“SIP/192.168.9.21-00000399”, “1?Set(CALLERID(num-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:6] Set(“SIP/192.168.9.21-00000399”, “DIAL_NUMBER=08667732259”) in new stack
– Executing [tdial@ext-trunk:7] GosubIf(“SIP/192.168.9.21-00000399”, “0?sub-flp-1,s,1()”) in new stack
– Executing [tdial@ext-trunk:8] Set(“SIP/192.168.9.21-00000399”, “OUTNUM=08667732259”) in new stack
– Executing [tdial@ext-trunk:9] Set(“SIP/192.168.9.21-00000399”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [tdial@ext-trunk:10] Dial(“SIP/192.168.9.21-00000399”, “PJSIP/08667732259@KGFL,300,T”) in new stack
– Called PJSIP/08667732259@KGFL
– No one is available to answer at this time (1:0/0/0)
– Executing [tdial@ext-trunk:11] Set(“SIP/192.168.9.21-00000399”, “CALLERID(number)=+914222351131”) in new stack
– Executing [tdial@ext-trunk:12] Set(“SIP/192.168.9.21-00000399”, “CALLERID(name)=+914222351131”) in new stack
– Executing [tdial@ext-trunk:13] Hangup(“SIP/192.168.9.21-00000399”, “”) in new stack
== Spawn extension (ext-trunk, tdial, 13) exited non-zero on ‘SIP/192.168.9.21-00000399’