sip.conf location

Hi guys… Can anyone assist me with loaction of sip.conf file… My inbound calls are not working bit work perfectly on a freepbx box… So want to copy sip.conf from working freepbx trunk into sip.conf of VitalPBX to see of this works… Outbound working perfectly.

  1. Don’t use Chan_SIP use PJSIP
  2. VitalPBX has nothing in common with FreePBX other than the fact that it uses the same telophony engine.
  3. Don’t modify the conf files directly, they’ll get overwritten. It’s better if you just create a PJSIP Trunk and report back what’s but working.
1 Like

I tried PJSIP but this also does not work and seems like call then is not even reaching box. I reverted to SIP and seems call is getting to box but tries going out outbound route again, see here what happens when calling in:

– Executing [s@sub-set-global-vars:7] Set(“SIP/0130101736-0000003b”, “ICALL=no”) in new stack
– Executing [s@sub-set-global-vars:8] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@cos-all:4] Gosub(“SIP/0130101736-0000003b”, “sub-set-call-vars,s,1(db84fd969bbb2beb,0130101736,1,cos-all,ARS-all)”) in new stack
– Executing [s@sub-set-call-vars:1] NoOp(“SIP/0130101736-0000003b”, “Setting Call Vars”) in new stack
– Executing [s@sub-set-call-vars:2] Set(“SIP/0130101736-0000003b”, “_TENANT=db84fd969bbb2beb”) in new stack
– Executing [s@sub-set-call-vars:3] Set(“SIP/0130101736-0000003b”, “_CALL_DESTINATION=0130101736”) in new stack
– Executing [s@sub-set-call-vars:4] Set(“SIP/0130101736-0000003b”, “_COS_ID=1”) in new stack
– Executing [s@sub-set-call-vars:5] Set(“SIP/0130101736-0000003b”, “_COS_NAME=cos-all”) in new stack
– Executing [s@sub-set-call-vars:6] Set(“SIP/0130101736-0000003b”, “__TRANSFER_CONTEXT=cos-all”) in new stack
– Executing [s@sub-set-call-vars:7] Set(“SIP/0130101736-0000003b”, “_ARS=ARS-all”) in new stack
– Executing [s@sub-set-call-vars:8] Set(“SIP/0130101736-0000003b”, “CDR(tenant)=vitalpbx”) in new stack
– Executing [s@sub-set-call-vars:9] Set(“SIP/0130101736-0000003b”, “CDR(destination)=0130101736”) in new stack
– Executing [s@sub-set-call-vars:10] Set(“SIP/0130101736-0000003b”, “CDR(trunk)=1”) in new stack
– Executing [s@sub-set-call-vars:11] Set(“SIP/0130101736-0000003b”, “CDR(did)=0130101736”) in new stack
– Executing [s@sub-set-call-vars:12] Set(“SIP/0130101736-0000003b”, “__CALLID=1649596892.91”) in new stack
– Executing [s@sub-set-call-vars:13] ExecIf(“SIP/0130101736-0000003b”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@sub-set-call-vars:14] ExecIf(“SIP/0130101736-0000003b”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@sub-set-call-vars:15] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@cos-all:5] Gosub(“SIP/0130101736-0000003b”, “sub-construct-cid,s,1”) in new stack
– Executing [s@sub-construct-cid:1] NoOp(“SIP/0130101736-0000003b”, “Building CID”) in new stack
– Executing [s@sub-construct-cid:2] Set(“SIP/0130101736-0000003b”, “_CALL_SOURCE=0130101736”) in new stack
– Executing [s@sub-construct-cid:3] Set(“SIP/0130101736-0000003b”, “_CS=0130101736”) in new stack
– Executing [s@sub-construct-cid:4] GotoIf(“SIP/0130101736-0000003b”, “0?return”) in new stack
– Executing [s@sub-construct-cid:5] Gosub(“SIP/0130101736-0000003b”, “sub-get-device-tree,s,1”) in new stack
– Executing [s@sub-get-device-tree:1] NoOp(“SIP/0130101736-0000003b”, “Configuring Device Tree”) in new stack
– Executing [s@sub-get-device-tree:2] Set(“SIP/0130101736-0000003b”, “DEV_TECHNOLOGY=SIP”) in new stack
– Executing [s@sub-get-device-tree:3] GosubIf(“SIP/0130101736-0000003b”, “0?s-local,1”) in new stack
– Executing [s@sub-get-device-tree:4] GotoIf(“SIP/0130101736-0000003b”, “0?return”) in new stack
– Executing [s@sub-get-device-tree:5] GotoIf(“SIP/0130101736-0000003b”, “0?pjsip”) in new stack
– Executing [s@sub-get-device-tree:6] GotoIf(“SIP/0130101736-0000003b”, “0?:digital”) in new stack
– Goto (sub-get-device-tree,s,12)
– Executing [s@sub-get-device-tree:12] Set(“SIP/0130101736-0000003b”, “DEV_USER=0130101736”) in new stack
– Executing [s@sub-get-device-tree:13] Set(“SIP/0130101736-0000003b”, “_INTERFACE=SIP/0130101736”) in new stack
– Executing [s@sub-get-device-tree:14] Set(“SIP/0130101736-0000003b”, “DEV_TREE=devices/SIP/0130101736”) in new stack
– Executing [s@sub-get-device-tree:15] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@sub-construct-cid:6] GotoIf(“SIP/0130101736-0000003b”, “0?return”) in new stack
– Executing [s@sub-construct-cid:7] Set(“SIP/0130101736-0000003b”, “_CALL_SOURCE=0130101736”) in new stack
– Executing [s@sub-construct-cid:8] Set(“SIP/0130101736-0000003b”, “_CS=0130101736”) in new stack
– Executing [s@sub-construct-cid:9] ExecIf(“SIP/0130101736-0000003b”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@sub-construct-cid:10] Set(“SIP/0130101736-0000003b”, “_CID_CONSTRUCTED=yes”) in new stack
– Executing [s@sub-construct-cid:11] NoOp(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@sub-construct-cid:12] Set(“SIP/0130101736-0000003b”, “CDR(source)=0130101736”) in new stack
– Executing [s@sub-construct-cid:13] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@cos-all:6] Gosub(“SIP/0130101736-0000003b”, “set-global-tenant-vars,s,1”) in new stack
– Executing [s@set-global-tenant-vars:1] NoOp(“SIP/0130101736-0000003b”, “Setting Global Vars for vitalpbx Tenant”) in new stack
– Executing [s@set-global-tenant-vars:2] Set(“SIP/0130101736-0000003b”, “__TENANT_PATH=db84fd969bbb2beb”) in new stack
– Executing [s@set-global-tenant-vars:3] Set(“SIP/0130101736-0000003b”, “__TENANT_PREFIX=”) in new stack
– Executing [s@set-global-tenant-vars:4] Set(“SIP/0130101736-0000003b”, “__QUEUE_AGENTS_CONTEXT=queue-call-to-agents”) in new stack
– Executing [s@set-global-tenant-vars:5] Set(“SIP/0130101736-0000003b”, “__FOLLOWME_CONTEXT=ext-followme”) in new stack
– Executing [s@set-global-tenant-vars:6] Set(“SIP/0130101736-0000003b”, “__HINTS_CONTEXT=extension-hints”) in new stack
– Executing [s@set-global-tenant-vars:7] Set(“SIP/0130101736-0000003b”, “__DEFAULT_COS=cos-all”) in new stack
– Executing [s@set-global-tenant-vars:8] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@cos-all:7] GotoIf(“SIP/0130101736-0000003b”, “0?local-dialing”) in new stack
– Executing [s@cos-all:8] NoOp(“SIP/0130101736-0000003b”, “Check if is an Emergency Call”) in new stack
– Executing [s@cos-all:9] GotoIf(“SIP/0130101736-0000003b”, “0?emergency-calls,0130101736,1”) in new stack
– Executing [s@cos-all:10] Gosub(“SIP/0130101736-0000003b”, “sub-lockphone-check,s,1”) in new stack
– Executing [s@sub-lockphone-check:1] NoOp(“SIP/0130101736-0000003b”, “SUB: LOCK PHONE CHECK”) in new stack
– Executing [s@sub-lockphone-check:2] GotoIf(“SIP/0130101736-0000003b”, “1?unlock”) in new stack
– Goto (sub-lockphone-check,s,12)
– Executing [s@sub-lockphone-check:12] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@cos-all:11] Gosub(“SIP/0130101736-0000003b”, “sub-local-dialing,s,1”) in new stack
– Executing [s@sub-local-dialing:1] NoOp(“SIP/0130101736-0000003b”, “Trying to determine if is a local extension”) in new stack
– Executing [s@sub-local-dialing:2] GotoIf(“SIP/0130101736-0000003b”, “0?:return”) in new stack
– Goto (sub-local-dialing,s,5)
– Executing [s@sub-local-dialing:5] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@cos-all:12] GotoIf(“SIP/0130101736-0000003b”, “0?end-call”) in new stack
– Executing [s@cos-all:13] Goto(“SIP/0130101736-0000003b”, “cos-all-post,0130101736,1”) in new stack
– Goto (cos-all-post,0130101736,1)
– Executing [0130101736@cos-all-post:1] NoOp(“SIP/0130101736-0000003b”, “Outbound Route: outbound-route”) in new stack
– Executing [0130101736@cos-all-post:2] Gosub(“SIP/0130101736-0000003b”, “sub-setup-call-type,s,1(outgoing)”) in new stack
– Executing [s@sub-setup-call-type:1] NoOp(“SIP/0130101736-0000003b”, “Determinating Call Type”) in new stack
– Executing [s@sub-setup-call-type:2] GotoIf(“SIP/0130101736-0000003b”, “0?return”) in new stack
– Executing [s@sub-setup-call-type:3] Gosub(“SIP/0130101736-0000003b”, “s-outgoing,1()”) in new stack
– Executing [s-outgoing@sub-setup-call-type:1] NoOp(“SIP/0130101736-0000003b”, “Outgoing Call”) in new stack
– Executing [s-outgoing@sub-setup-call-type:2] Set(“SIP/0130101736-0000003b”, “__CALL_TYPE=3”) in new stack
– Executing [s-outgoing@sub-setup-call-type:3] Set(“SIP/0130101736-0000003b”, “__CALL_TYPE_LABEL=OUT”) in new stack
– Executing [s-outgoing@sub-setup-call-type:4] GosubIf(“SIP/0130101736-0000003b”, “0?s-transit,1”) in new stack
– Executing [s-outgoing@sub-setup-call-type:5] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@sub-setup-call-type:4] Set(“SIP/0130101736-0000003b”, “__CALL_TYPE_CONFIGURED=yes”) in new stack
– Executing [s@sub-setup-call-type:5] Set(“SIP/0130101736-0000003b”, “CDR(calltype)=3”) in new stack
– Executing [s@sub-setup-call-type:6] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [0130101736@cos-all-post:3] Set(“SIP/0130101736-0000003b”, “DNID=0130101736”) in new stack
– Executing [0130101736@cos-all-post:4] NoOp(“SIP/0130101736-0000003b”, “Start to Dial Trunks”) in new stack
– Executing [0130101736@cos-all-post:5] Goto(“SIP/0130101736-0000003b”, “s-1,1”) in new stack
– Goto (cos-all-post,s-1,1)
– Executing [s-1@cos-all-post:1] Set(“SIP/0130101736-0000003b”, “__CONFIGURED_BY_TENANT=yes”) in new stack
– Executing [s-1@cos-all-post:2] Gosub(“SIP/0130101736-0000003b”, “sub-construct-cid,s-external,1”) in new stack
– Executing [s-external@sub-construct-cid:1] NoOp(“SIP/0130101736-0000003b”, “Setting External CID”) in new stack
– Executing [s-external@sub-construct-cid:2] Set(“SIP/0130101736-0000003b”, “EXTENSION_NUMBER=0130101736”) in new stack
– Executing [s-external@sub-construct-cid:3] GotoIf(“SIP/0130101736-0000003b”, “0?return”) in new stack
– Executing [s-external@sub-construct-cid:4] GotoIf(“SIP/0130101736-0000003b”, “0?return”) in new stack
– Executing [s-external@sub-construct-cid:5] Set(“SIP/0130101736-0000003b”, “EMERGENCY_CALL=no”) in new stack
– Executing [s-external@sub-construct-cid:6] Set(“SIP/0130101736-0000003b”, “EXTENSION_EMERGENCY_CID=”) in new stack
– Executing [s-external@sub-construct-cid:7] Set(“SIP/0130101736-0000003b”, “DYNAMIC_EXTERNAL_CID=no”) in new stack
– Executing [s-external@sub-construct-cid:8] ExecIf(“SIP/0130101736-0000003b”, “0?Set(EXTENSION_EMERGENCY_CID=)”) in new stack
– Executing [s-external@sub-construct-cid:9] ExecIf(“SIP/0130101736-0000003b”, “0?Set(DYNAMIC_EXTERNAL_CID=)”) in new stack
– Executing [s-external@sub-construct-cid:10] GotoIf(“SIP/0130101736-0000003b”, “0?check-emergency”) in new stack
– Executing [s-external@sub-construct-cid:11] Set(“SIP/0130101736-0000003b”, “EXTENSION_EXTERNAL_CID=”) in new stack
– Executing [s-external@sub-construct-cid:12] ExecIf(“SIP/0130101736-0000003b”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s-external@sub-construct-cid:13] GotoIf(“SIP/0130101736-0000003b”, “0?:check-emergency”) in new stack
– Goto (sub-construct-cid,s-external,16)
– Executing [s-external@sub-construct-cid:16] GotoIf(“SIP/0130101736-0000003b”, “0?:info”) in new stack
– Goto (sub-construct-cid,s-external,24)
– Executing [s-external@sub-construct-cid:24] NoOp(“SIP/0130101736-0000003b”, “CID Name: +27614683533, CID Number: 0130101736”) in new stack
– Executing [s-external@sub-construct-cid:25] Set(“SIP/0130101736-0000003b”, “SEND_CID=”) in new stack
– Executing [s-external@sub-construct-cid:26] ExecIf(“SIP/0130101736-0000003b”, “0?Set(CALLERID(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s-external@sub-construct-cid:27] ExecIf(“SIP/0130101736-0000003b”, “0?Set(CALLERID(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s-external@sub-construct-cid:28] Set(“SIP/0130101736-0000003b”, “__EXT_CID_CONSTRUCTED=yes”) in new stack
– Executing [s-external@sub-construct-cid:29] Set(“SIP/0130101736-0000003b”, “CDR(source)=0130101736”) in new stack
– Executing [s-external@sub-construct-cid:30] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s-1@cos-all-post:3] Gosub(“SIP/0130101736-0000003b”, “trk-1,0130101736,1(from-trk-grp)”) in new stack
– Executing [0130101736@trk-1:1] Set(“SIP/0130101736-0000003b”, “_NTD=0130101736”) in new stack
– Executing [0130101736@trk-1:2] Gosub(“SIP/0130101736-0000003b”, “trk-1-dial,0130101736,1(from-trk-grp)”) in new stack
– Executing [0130101736@trk-1-dial:1] NoOp(“SIP/0130101736-0000003b”, “Trunk: Main-Trunk”) in new stack
– Executing [0130101736@trk-1-dial:2] NoOp(“SIP/0130101736-0000003b”, “Dialing: 0130101736”) in new stack
– Executing [0130101736@trk-1-dial:3] Set(“SIP/0130101736-0000003b”, “CDR(trunk)=1”) in new stack
– Executing [0130101736@trk-1-dial:4] Set(“SIP/0130101736-0000003b”, “SKIP_HANGUP_AUDIOS=no”) in new stack
– Executing [0130101736@trk-1-dial:5] Gosub(“SIP/0130101736-0000003b”, “sub-setup-call-type,s,1(outgoing,no)”) in new stack
– Executing [s@sub-setup-call-type:1] NoOp(“SIP/0130101736-0000003b”, “Determinating Call Type”) in new stack
– Executing [s@sub-setup-call-type:2] GotoIf(“SIP/0130101736-0000003b”, “0?return”) in new stack
– Executing [s@sub-setup-call-type:3] Gosub(“SIP/0130101736-0000003b”, “s-outgoing,1(no)”) in new stack
– Executing [s-outgoing@sub-setup-call-type:1] NoOp(“SIP/0130101736-0000003b”, “Outgoing Call”) in new stack
– Executing [s-outgoing@sub-setup-call-type:2] Set(“SIP/0130101736-0000003b”, “__CALL_TYPE=3”) in new stack
– Executing [s-outgoing@sub-setup-call-type:3] Set(“SIP/0130101736-0000003b”, “__CALL_TYPE_LABEL=OUT”) in new stack
– Executing [s-outgoing@sub-setup-call-type:4] GosubIf(“SIP/0130101736-0000003b”, “0?s-transit,1”) in new stack
– Executing [s-outgoing@sub-setup-call-type:5] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [s@sub-setup-call-type:4] Set(“SIP/0130101736-0000003b”, “__CALL_TYPE_CONFIGURED=yes”) in new stack
– Executing [s@sub-setup-call-type:5] Set(“SIP/0130101736-0000003b”, “CDR(calltype)=3”) in new stack
– Executing [s@sub-setup-call-type:6] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [0130101736@trk-1-dial:6] ExecIf(“SIP/0130101736-0000003b”, “0?Set(CALLERID(all)=):”) in new stack
– Executing [0130101736@trk-1-dial:7] GotoIf(“SIP/0130101736-0000003b”, “0?:after-val-sim-calls”) in new stack
– Goto (trk-1-dial,0130101736,18)
– Executing [0130101736@trk-1-dial:18] NoOp(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [0130101736@trk-1-dial:19] NoOp(“SIP/0130101736-0000003b”, “Configuring Trunk Parameters”) in new stack
– Executing [0130101736@trk-1-dial:20] ExecIf(“SIP/0130101736-0000003b”, “1?Set(CHANNEL(musicclass)=default):”) in new stack
– Executing [0130101736@trk-1-dial:21] Set(“SIP/0130101736-0000003b”, “__TRUNK_MOH_SET=yes”) in new stack
– Executing [0130101736@trk-1-dial:22] Set(“SIP/0130101736-0000003b”, “DIAL_PREFIX=”) in new stack
– Executing [0130101736@trk-1-dial:23] Set(“SIP/0130101736-0000003b”, “__TRKDIALOPTIONS=kKtr”) in new stack
– Executing [0130101736@trk-1-dial:24] Set(“SIP/0130101736-0000003b”, “ORIGINATOR=0130101736”) in new stack
– Executing [0130101736@trk-1-dial:25] Set(“SIP/0130101736-0000003b”, “RING_TIME=90”) in new stack
– Executing [0130101736@trk-1-dial:26] Set(“SIP/0130101736-0000003b”, “CALLED=0130101736”) in new stack
– Executing [0130101736@trk-1-dial:27] Set(“SIP/0130101736-0000003b”, “TRUNK_ENDPOINT=0130101736”) in new stack
– Executing [0130101736@trk-1-dial:28] Set(“SIP/0130101736-0000003b”, “__CIDNUM=0130101736”) in new stack
– Executing [0130101736@trk-1-dial:29] Set(“SIP/0130101736-0000003b”, “__CIDNAME=+27614683533”) in new stack
– Executing [0130101736@trk-1-dial:30] Set(“SIP/0130101736-0000003b”, “FORCE_RECORDING=no”) in new stack
– Executing [0130101736@trk-1-dial:31] Set(“SIP/0130101736-0000003b”, “FILTERED_NUMBER=0130101736”) in new stack
– Executing [0130101736@trk-1-dial:32] GotoIf(“SIP/0130101736-0000003b”, “0?:post-fax”) in new stack
– Goto (trk-1-dial,0130101736,35)
– Executing [0130101736@trk-1-dial:35] NoOp(“SIP/0130101736-0000003b”, “End Fax Section”) in new stack
– Executing [0130101736@trk-1-dial:36] Dial(“SIP/0130101736-0000003b”, “SIP/0130101736/0130101736,90,kKtrU(sub-call-recording^db84fd969bbb2beb^0130101736^0130101736^no)”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/0130101736/0130101736
– SIP/0130101736-0000003a is making progress passing it to SIP/0130101736-00000039
– SIP/0130101736-0000003c answered SIP/0130101736-0000003b
– SIP/0130101736-0000003c Internal Gosub(sub-call-recording,s,1(db84fd969bbb2beb,0130101736,0130101736,no)) start
– Executing [s@sub-call-recording:1] NoOp(“SIP/0130101736-0000003c”, “Check if call will be recorded on tenant db84fd969bbb2beb”) in new stack
– Executing [s@sub-call-recording:2] NoOp(“SIP/0130101736-0000003c”, "Call Type: 3 ") in new stack
– Executing [s@sub-call-recording:3] Set(“SIP/0130101736-0000003c”, “TENANT=db84fd969bbb2beb”) in new stack
– Executing [s@sub-call-recording:4] Set(“SIP/0130101736-0000003c”, “CALLER=0130101736”) in new stack
– Executing [s@sub-call-recording:5] Set(“SIP/0130101736-0000003c”, “CALLEE=0130101736”) in new stack
– Executing [s@sub-call-recording:6] Set(“SIP/0130101736-0000003c”, “APP_FORCE=no”) in new stack
– Executing [s@sub-call-recording:7] GotoIf(“SIP/0130101736-0000003c”, “1?:rec_no_available”) in new stack
– Executing [s@sub-call-recording:8] GotoIf(“SIP/0130101736-0000003c”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:9] GotoIf(“SIP/0130101736-0000003c”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:10] GotoIf(“SIP/0130101736-0000003c”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:11] GotoIf(“SIP/0130101736-0000003c”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:12] GotoIf(“SIP/0130101736-0000003c”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:13] Goto(“SIP/0130101736-0000003c”, “return”) in new stack
– Goto (sub-call-recording,s,17)
– Executing [s@sub-call-recording:17] Return(“SIP/0130101736-0000003c”, “”) in new stack
== Spawn extension (trk-1-in, , 1) exited non-zero on ‘SIP/0130101736-0000003c’
– SIP/0130101736-0000003c Internal Gosub(sub-call-recording,s,1(db84fd969bbb2beb,0130101736,0130101736,no)) complete GOSUB_RETVAL=
– Channel SIP/0130101736-0000003c joined ‘simple_bridge’ basic-bridge <7d9d663f-1a58-4e58-963f-f3ce0a567935>
– Channel SIP/0130101736-0000003b joined ‘simple_bridge’ basic-bridge <7d9d663f-1a58-4e58-963f-f3ce0a567935>
– SIP/0130101736-0000003a answered SIP/0130101736-00000039
– SIP/0130101736-0000003a Internal Gosub(sub-call-recording,s,1(db84fd969bbb2beb,0614683533,0130101736,no)) start
– Executing [s@sub-call-recording:1] NoOp(“SIP/0130101736-0000003a”, “Check if call will be recorded on tenant db84fd969bbb2beb”) in new stack
– Executing [s@sub-call-recording:2] NoOp(“SIP/0130101736-0000003a”, "Call Type: 3 ") in new stack
– Executing [s@sub-call-recording:3] Set(“SIP/0130101736-0000003a”, “TENANT=db84fd969bbb2beb”) in new stack
– Executing [s@sub-call-recording:4] Set(“SIP/0130101736-0000003a”, “CALLER=0614683533”) in new stack
– Executing [s@sub-call-recording:5] Set(“SIP/0130101736-0000003a”, “CALLEE=0130101736”) in new stack
– Executing [s@sub-call-recording:6] Set(“SIP/0130101736-0000003a”, “APP_FORCE=no”) in new stack
– Executing [s@sub-call-recording:7] GotoIf(“SIP/0130101736-0000003a”, “1?:rec_no_available”) in new stack
– Executing [s@sub-call-recording:8] GotoIf(“SIP/0130101736-0000003a”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:9] GotoIf(“SIP/0130101736-0000003a”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:10] GotoIf(“SIP/0130101736-0000003a”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:11] GotoIf(“SIP/0130101736-0000003a”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:12] GotoIf(“SIP/0130101736-0000003a”, “0?perform-recording”) in new stack
– Executing [s@sub-call-recording:13] Goto(“SIP/0130101736-0000003a”, “return”) in new stack
– Goto (sub-call-recording,s,17)
– Executing [s@sub-call-recording:17] Return(“SIP/0130101736-0000003a”, “”) in new stack
== Spawn extension (trk-1-in, , 1) exited non-zero on ‘SIP/0130101736-0000003a’
– SIP/0130101736-0000003a Internal Gosub(sub-call-recording,s,1(db84fd969bbb2beb,0614683533,0130101736,no)) complete GOSUB_RETVAL=
– Channel SIP/0130101736-0000003a joined ‘simple_bridge’ basic-bridge <277fcc04-6b45-4ce2-8974-d48ccd35e608>
– Channel SIP/0130101736-00000039 joined ‘simple_bridge’ basic-bridge <277fcc04-6b45-4ce2-8974-d48ccd35e608>
– Channel SIP/0130101736-0000003c left ‘simple_bridge’ basic-bridge <7d9d663f-1a58-4e58-963f-f3ce0a567935>
– Channel SIP/0130101736-0000003b left ‘simple_bridge’ basic-bridge <7d9d663f-1a58-4e58-963f-f3ce0a567935>
== Spawn extension (trk-1-dial, 0130101736, 36) exited non-zero on ‘SIP/0130101736-0000003b’
– Executing [h@trk-1-dial:1] GosubIf(“SIP/0130101736-0000003b”, “0?sub-outbound-queue-call,s,1”) in new stack
– Executing [h@trk-1-dial:2] Gosub(“SIP/0130101736-0000003b”, “dynamic-routing-out,s,1(0130101736,0130101736,ANSWER,1)”) in new stack
– Executing [s@dynamic-routing-out:1] NoOp(“SIP/0130101736-0000003b”, “Test if save on dynamic routing list”) in new stack
– Executing [s@dynamic-routing-out:2] Set(“SIP/0130101736-0000003b”, “CALLER=0130101736”) in new stack
– Executing [s@dynamic-routing-out:3] Set(“SIP/0130101736-0000003b”, “CALLED=0130101736”) in new stack
– Executing [s@dynamic-routing-out:4] Set(“SIP/0130101736-0000003b”, “STATUS=ANSWER”) in new stack
– Executing [s@dynamic-routing-out:5] Set(“SIP/0130101736-0000003b”, “TRKID=1”) in new stack
– Executing [s@dynamic-routing-out:6] Set(“SIP/0130101736-0000003b”, “ALLOW_DR=”) in new stack
– Executing [s@dynamic-routing-out:7] Set(“SIP/0130101736-0000003b”, “DYNROUTING_OMC=yes”) in new stack
– Executing [s@dynamic-routing-out:8] GotoIf(“SIP/0130101736-0000003b”, “0?:comeback”) in new stack
– Goto (dynamic-routing-out,s,10)
– Executing [s@dynamic-routing-out:10] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [h@trk-1-dial:3] Gosub(“SIP/0130101736-0000003b”, “notify-trunk-hangup,s,1”) in new stack
– Executing [s@notify-trunk-hangup:1] Verbose(“SIP/0130101736-0000003b”, “0, Trunk Hangup”) in new stack
Trunk Hangup
– Executing [s@notify-trunk-hangup:2] Set(“SIP/0130101736-0000003b”, “CALLER=SIP/0130101736”) in new stack
– Executing [s@notify-trunk-hangup:3] UserEvent(“SIP/0130101736-0000003b”, ““EXTENSIONS_SUMMARY”,“Data: OUTBOUND,SIP/0130101736,0130101736,OUT””) in new stack
– Executing [s@notify-trunk-hangup:4] Return(“SIP/0130101736-0000003b”, “”) in new stack
– Executing [h@trk-1-dial:4] Hangup(“SIP/0130101736-0000003b”, “”) in new stack
== Spawn extension (trk-1-dial, h, 4) exited non-zero on ‘SIP/0130101736-0000003b’
– Channel SIP/0130101736-0000003a left ‘simple_bridge’ basic-bridge <277fcc04-6b45-4ce2-8974-d48ccd35e608>
– Channel SIP/0130101736-00000039 left ‘simple_bridge’ basic-bridge <277fcc04-6b45-4ce2-8974-d48ccd35e608>
== Spawn extension (trk-1-dial, 0130101736, 36) exited non-zero on ‘SIP/0130101736-00000039’
– Executing [h@trk-1-dial:1] GosubIf(“SIP/0130101736-00000039”, “0?sub-outbound-queue-call,s,1”) in new stack
– Executing [h@trk-1-dial:2] Gosub(“SIP/0130101736-00000039”, “dynamic-routing-out,s,1(0614683533,0130101736,ANSWER,1)”) in new stack
– Executing [s@dynamic-routing-out:1] NoOp(“SIP/0130101736-00000039”, “Test if save on dynamic routing list”) in new stack
– Executing [s@dynamic-routing-out:2] Set(“SIP/0130101736-00000039”, “CALLER=0614683533”) in new stack
– Executing [s@dynamic-routing-out:3] Set(“SIP/0130101736-00000039”, “CALLED=0130101736”) in new stack
– Executing [s@dynamic-routing-out:4] Set(“SIP/0130101736-00000039”, “STATUS=ANSWER”) in new stack
– Executing [s@dynamic-routing-out:5] Set(“SIP/0130101736-00000039”, “TRKID=1”) in new stack
– Executing [s@dynamic-routing-out:6] Set(“SIP/0130101736-00000039”, “ALLOW_DR=”) in new stack
– Executing [s@dynamic-routing-out:7] Set(“SIP/0130101736-00000039”, “DYNROUTING_OMC=yes”) in new stack
– Executing [s@dynamic-routing-out:8] GotoIf(“SIP/0130101736-00000039”, “0?:comeback”) in new stack
– Goto (dynamic-routing-out,s,10)
– Executing [s@dynamic-routing-out:10] Return(“SIP/0130101736-00000039”, “”) in new stack
– Executing [h@trk-1-dial:3] Gosub(“SIP/0130101736-00000039”, “notify-trunk-hangup,s,1”) in new stack
– Executing [s@notify-trunk-hangup:1] Verbose(“SIP/0130101736-00000039”, “0, Trunk Hangup”) in new stack
Trunk Hangup
– Executing [s@notify-trunk-hangup:2] Set(“SIP/0130101736-00000039”, “CALLER=SIP/0130101736”) in new stack
– Executing [s@notify-trunk-hangup:3] UserEvent(“SIP/0130101736-00000039”, ““EXTENSIONS_SUMMARY”,“Data: OUTBOUND,SIP/0130101736,0130101736,OUT””) in new stack
– Executing [s@notify-trunk-hangup:4] Return(“SIP/0130101736-00000039”, “”) in new stack
– Executing [h@trk-1-dial:4] Hangup(“SIP/0130101736-00000039”, “”) in new stack
== Spawn extension (trk-1-dial, h, 4) exited non-zero on ‘SIP/0130101736-00000039’

Blockquote

My inbound route is for testing purposes just a catch all to date/clock…

Any suggestions? As mentioned it is not the line cause used on another device it works. Outbound works. This trunk connects to a Fusion PBX if that makes any difference. I tried another trunk to another FreePBX box and then it works… Just this one is giving me hassles on inbound…

Please post your logs via pastebin.com or use preformatted text formatting for easy read.

The log you posted seems like an outgoing call which the callee answered.

Also, it is a little hard to understand the setup there. It seems like you have the same digits for the caller and callee, as well as the trunk is named with those digits?
You will need to explain to us in detail your setup.

Chan_SIP and PJSIP do not run on the same port. And I am not sure either how you configured your PJSIP, nor your Chan_SIP trunk.

Please share your setup and Trunk config in detail

Here is log file again (hope this is correct):`

-- Executing [s@sub-set-call-vars:2] Set("SIP/0130101736-00000047", "_TENANT=db84fd969bbb2beb") in new stack
    -- Executing [s@sub-set-call-vars:3] Set("SIP/0130101736-00000047", "_CALL_DESTINATION=0130101736") in new stack
    -- Executing [s@sub-set-call-vars:4] Set("SIP/0130101736-00000047", "_COS_ID=1") in new stack
    -- Executing [s@sub-set-call-vars:5] Set("SIP/0130101736-00000047", "_COS_NAME=cos-all") in new stack
    -- Executing [s@sub-set-call-vars:6] Set("SIP/0130101736-00000047", "__TRANSFER_CONTEXT=cos-all") in new stack
    -- Executing [s@sub-set-call-vars:7] Set("SIP/0130101736-00000047", "_ARS=ARS-all") in new stack
    -- Executing [s@sub-set-call-vars:8] Set("SIP/0130101736-00000047", "CDR(tenant)=vitalpbx") in new stack
    -- Executing [s@sub-set-call-vars:9] Set("SIP/0130101736-00000047", "CDR(destination)=0130101736") in new stack
    -- Executing [s@sub-set-call-vars:10] Set("SIP/0130101736-00000047", "CDR(trunk)=1") in new stack
    -- Executing [s@sub-set-call-vars:11] Set("SIP/0130101736-00000047", "CDR(did)=0130101736") in new stack
    -- Executing [s@sub-set-call-vars:12] Set("SIP/0130101736-00000047", "__CALLID=1649599801.109") in new stack
    -- Executing [s@sub-set-call-vars:13] ExecIf("SIP/0130101736-00000047", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@sub-set-call-vars:14] ExecIf("SIP/0130101736-00000047", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@sub-set-call-vars:15] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [s@cos-all:5] Gosub("SIP/0130101736-00000047", "sub-construct-cid,s,1") in new stack
    -- Executing [s@sub-construct-cid:1] NoOp("SIP/0130101736-00000047", "Building CID") in new stack
    -- Executing [s@sub-construct-cid:2] Set("SIP/0130101736-00000047", "_CALL_SOURCE=0130101736") in new stack
    -- Executing [s@sub-construct-cid:3] Set("SIP/0130101736-00000047", "_CS=0130101736") in new stack
    -- Executing [s@sub-construct-cid:4] GotoIf("SIP/0130101736-00000047", "0?return") in new stack
    -- Executing [s@sub-construct-cid:5] Gosub("SIP/0130101736-00000047", "sub-get-device-tree,s,1") in new stack
    -- Executing [s@sub-get-device-tree:1] NoOp("SIP/0130101736-00000047", "Configuring Device Tree") in new stack
    -- Executing [s@sub-get-device-tree:2] Set("SIP/0130101736-00000047", "DEV_TECHNOLOGY=SIP") in new stack
    -- Executing [s@sub-get-device-tree:3] GosubIf("SIP/0130101736-00000047", "0?s-local,1") in new stack
    -- Executing [s@sub-get-device-tree:4] GotoIf("SIP/0130101736-00000047", "0?return") in new stack
    -- Executing [s@sub-get-device-tree:5] GotoIf("SIP/0130101736-00000047", "0?pjsip") in new stack
    -- Executing [s@sub-get-device-tree:6] GotoIf("SIP/0130101736-00000047", "0?:digital") in new stack
    -- Goto (sub-get-device-tree,s,12)
    -- Executing [s@sub-get-device-tree:12] Set("SIP/0130101736-00000047", "DEV_USER=0130101736") in new stack
    -- Executing [s@sub-get-device-tree:13] Set("SIP/0130101736-00000047", "_INTERFACE=SIP/0130101736") in new stack
    -- Executing [s@sub-get-device-tree:14] Set("SIP/0130101736-00000047", "DEV_TREE=devices/SIP/0130101736") in new stack
    -- Executing [s@sub-get-device-tree:15] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [s@sub-construct-cid:6] GotoIf("SIP/0130101736-00000047", "0?return") in new stack
    -- Executing [s@sub-construct-cid:7] Set("SIP/0130101736-00000047", "_CALL_SOURCE=0130101736") in new stack
    -- Executing [s@sub-construct-cid:8] Set("SIP/0130101736-00000047", "_CS=0130101736") in new stack
    -- Executing [s@sub-construct-cid:9] ExecIf("SIP/0130101736-00000047", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@sub-construct-cid:10] Set("SIP/0130101736-00000047", "_CID_CONSTRUCTED=yes") in new stack
    -- Executing [s@sub-construct-cid:11] NoOp("SIP/0130101736-00000047", "") in new stack
    -- Executing [s@sub-construct-cid:12] Set("SIP/0130101736-00000047", "CDR(source)=0130101736") in new stack
    -- Executing [s@sub-construct-cid:13] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [s@cos-all:6] Gosub("SIP/0130101736-00000047", "set-global-tenant-vars,s,1") in new stack
    -- Executing [s@set-global-tenant-vars:1] NoOp("SIP/0130101736-00000047", "Setting Global Vars for vitalpbx Tenant") in new stack
    -- Executing [s@set-global-tenant-vars:2] Set("SIP/0130101736-00000047", "__TENANT_PATH=db84fd969bbb2beb") in new stack
    -- Executing [s@set-global-tenant-vars:3] Set("SIP/0130101736-00000047", "__TENANT_PREFIX=") in new stack
    -- Executing [s@set-global-tenant-vars:4] Set("SIP/0130101736-00000047", "__QUEUE_AGENTS_CONTEXT=queue-call-to-agents") in new stack
    -- Executing [s@set-global-tenant-vars:5] Set("SIP/0130101736-00000047", "__FOLLOWME_CONTEXT=ext-followme") in new stack
    -- Executing [s@set-global-tenant-vars:6] Set("SIP/0130101736-00000047", "__HINTS_CONTEXT=extension-hints") in new stack
    -- Executing [s@set-global-tenant-vars:7] Set("SIP/0130101736-00000047", "__DEFAULT_COS=cos-all") in new stack
    -- Executing [s@set-global-tenant-vars:8] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [s@cos-all:7] GotoIf("SIP/0130101736-00000047", "0?local-dialing") in new stack
    -- Executing [s@cos-all:8] NoOp("SIP/0130101736-00000047", "Check if is an Emergency Call") in new stack
    -- Executing [s@cos-all:9] GotoIf("SIP/0130101736-00000047", "0?emergency-calls,0130101736,1") in new stack
    -- Executing [s@cos-all:10] Gosub("SIP/0130101736-00000047", "sub-lockphone-check,s,1") in new stack
    -- Executing [s@sub-lockphone-check:1] NoOp("SIP/0130101736-00000047", "SUB: LOCK PHONE CHECK") in new stack
    -- Executing [s@sub-lockphone-check:2] GotoIf("SIP/0130101736-00000047", "1?unlock") in new stack
    -- Goto (sub-lockphone-check,s,12)
    -- Executing [s@sub-lockphone-check:12] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [s@cos-all:11] Gosub("SIP/0130101736-00000047", "sub-local-dialing,s,1") in new stack
    -- Executing [s@sub-local-dialing:1] NoOp("SIP/0130101736-00000047", "Trying to determine if is a local extension") in new stack
    -- Executing [s@sub-local-dialing:2] GotoIf("SIP/0130101736-00000047", "0?:return") in new stack
    -- Goto (sub-local-dialing,s,5)
    -- Executing [s@sub-local-dialing:5] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [s@cos-all:12] GotoIf("SIP/0130101736-00000047", "0?end-call") in new stack
    -- Executing [s@cos-all:13] Goto("SIP/0130101736-00000047", "cos-all-post,0130101736,1") in new stack
    -- Goto (cos-all-post,0130101736,1)
    -- Executing [0130101736@cos-all-post:1] NoOp("SIP/0130101736-00000047", "Outbound Route: outbound-route") in new stack
    -- Executing [0130101736@cos-all-post:2] Gosub("SIP/0130101736-00000047", "sub-setup-call-type,s,1(outgoing)") in new stack
    -- Executing [s@sub-setup-call-type:1] NoOp("SIP/0130101736-00000047", "Determinating Call Type") in new stack
    -- Executing [s@sub-setup-call-type:2] GotoIf("SIP/0130101736-00000047", "0?return") in new stack
    -- Executing [s@sub-setup-call-type:3] Gosub("SIP/0130101736-00000047", "s-outgoing,1()") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:1] NoOp("SIP/0130101736-00000047", "Outgoing Call") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:2] Set("SIP/0130101736-00000047", "__CALL_TYPE=3") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:3] Set("SIP/0130101736-00000047", "__CALL_TYPE_LABEL=OUT") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:4] GosubIf("SIP/0130101736-00000047", "0?s-transit,1") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:5] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [s@sub-setup-call-type:4] Set("SIP/0130101736-00000047", "__CALL_TYPE_CONFIGURED=yes") in new stack
    -- Executing [s@sub-setup-call-type:5] Set("SIP/0130101736-00000047", "CDR(calltype)=3") in new stack
    -- Executing [s@sub-setup-call-type:6] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [0130101736@cos-all-post:3] Set("SIP/0130101736-00000047", "DNID=0130101736") in new stack
    -- Executing [0130101736@cos-all-post:4] NoOp("SIP/0130101736-00000047", "Start to Dial Trunks") in new stack
    -- Executing [0130101736@cos-all-post:5] Goto("SIP/0130101736-00000047", "s-1,1") in new stack
    -- Goto (cos-all-post,s-1,1)
    -- Executing [s-1@cos-all-post:1] Set("SIP/0130101736-00000047", "__CONFIGURED_BY_TENANT=yes") in new stack
    -- Executing [s-1@cos-all-post:2] Gosub("SIP/0130101736-00000047", "sub-construct-cid,s-external,1") in new stack
    -- Executing [s-external@sub-construct-cid:1] NoOp("SIP/0130101736-00000047", "Setting External CID") in new stack
    -- Executing [s-external@sub-construct-cid:2] Set("SIP/0130101736-00000047", "EXTENSION_NUMBER=0130101736") in new stack
    -- Executing [s-external@sub-construct-cid:3] GotoIf("SIP/0130101736-00000047", "0?return") in new stack
    -- Executing [s-external@sub-construct-cid:4] GotoIf("SIP/0130101736-00000047", "0?return") in new stack
    -- Executing [s-external@sub-construct-cid:5] Set("SIP/0130101736-00000047", "EMERGENCY_CALL=no") in new stack
    -- Executing [s-external@sub-construct-cid:6] Set("SIP/0130101736-00000047", "EXTENSION_EMERGENCY_CID=") in new stack
    -- Executing [s-external@sub-construct-cid:7] Set("SIP/0130101736-00000047", "DYNAMIC_EXTERNAL_CID=no") in new stack
    -- Executing [s-external@sub-construct-cid:8] ExecIf("SIP/0130101736-00000047", "0?Set(EXTENSION_EMERGENCY_CID=)") in new stack
    -- Executing [s-external@sub-construct-cid:9] ExecIf("SIP/0130101736-00000047", "0?Set(DYNAMIC_EXTERNAL_CID=)") in new stack
    -- Executing [s-external@sub-construct-cid:10] GotoIf("SIP/0130101736-00000047", "0?check-emergency") in new stack
    -- Executing [s-external@sub-construct-cid:11] Set("SIP/0130101736-00000047", "EXTENSION_EXTERNAL_CID=") in new stack
    -- Executing [s-external@sub-construct-cid:12] ExecIf("SIP/0130101736-00000047", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s-external@sub-construct-cid:13] GotoIf("SIP/0130101736-00000047", "0?:check-emergency") in new stack
    -- Goto (sub-construct-cid,s-external,16)
    -- Executing [s-external@sub-construct-cid:16] GotoIf("SIP/0130101736-00000047", "0?:info") in new stack
    -- Goto (sub-construct-cid,s-external,24)
    -- Executing [s-external@sub-construct-cid:24] NoOp("SIP/0130101736-00000047", "CID Name: +27614683533, CID Number: 0130101736") in new stack
    -- Executing [s-external@sub-construct-cid:25] Set("SIP/0130101736-00000047", "SEND_CID=") in new stack
    -- Executing [s-external@sub-construct-cid:26] ExecIf("SIP/0130101736-00000047", "0?Set(CALLERID(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s-external@sub-construct-cid:27] ExecIf("SIP/0130101736-00000047", "0?Set(CALLERID(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s-external@sub-construct-cid:28] Set("SIP/0130101736-00000047", "__EXT_CID_CONSTRUCTED=yes") in new stack
    -- Executing [s-external@sub-construct-cid:29] Set("SIP/0130101736-00000047", "CDR(source)=0130101736") in new stack
    -- Executing [s-external@sub-construct-cid:30] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [s-1@cos-all-post:3] Gosub("SIP/0130101736-00000047", "trk-1,0130101736,1(from-trk-grp)") in new stack
    -- Executing [0130101736@trk-1:1] Set("SIP/0130101736-00000047", "_NTD=0130101736") in new stack
    -- Executing [0130101736@trk-1:2] Gosub("SIP/0130101736-00000047", "trk-1-dial,0130101736,1(from-trk-grp)") in new stack
    -- Executing [0130101736@trk-1-dial:1] NoOp("SIP/0130101736-00000047", "Trunk: Main-Trunk") in new stack
    -- Executing [0130101736@trk-1-dial:2] NoOp("SIP/0130101736-00000047", "Dialing: 0130101736") in new stack
    -- Executing [0130101736@trk-1-dial:3] Set("SIP/0130101736-00000047", "CDR(trunk)=1") in new stack
    -- Executing [0130101736@trk-1-dial:4] Set("SIP/0130101736-00000047", "SKIP_HANGUP_AUDIOS=no") in new stack
    -- Executing [0130101736@trk-1-dial:5] Gosub("SIP/0130101736-00000047", "sub-setup-call-type,s,1(outgoing,no)") in new stack
    -- Executing [s@sub-setup-call-type:1] NoOp("SIP/0130101736-00000047", "Determinating Call Type") in new stack
    -- Executing [s@sub-setup-call-type:2] GotoIf("SIP/0130101736-00000047", "0?return") in new stack
    -- Executing [s@sub-setup-call-type:3] Gosub("SIP/0130101736-00000047", "s-outgoing,1(no)") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:1] NoOp("SIP/0130101736-00000047", "Outgoing Call") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:2] Set("SIP/0130101736-00000047", "__CALL_TYPE=3") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:3] Set("SIP/0130101736-00000047", "__CALL_TYPE_LABEL=OUT") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:4] GosubIf("SIP/0130101736-00000047", "0?s-transit,1") in new stack
    -- Executing [s-outgoing@sub-setup-call-type:5] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [s@sub-setup-call-type:4] Set("SIP/0130101736-00000047", "__CALL_TYPE_CONFIGURED=yes") in new stack
    -- Executing [s@sub-setup-call-type:5] Set("SIP/0130101736-00000047", "CDR(calltype)=3") in new stack
    -- Executing [s@sub-setup-call-type:6] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [0130101736@trk-1-dial:6] ExecIf("SIP/0130101736-00000047", "0?Set(CALLERID(all)=):") in new stack
    -- Executing [0130101736@trk-1-dial:7] GotoIf("SIP/0130101736-00000047", "0?:after-val-sim-calls") in new stack
    -- Goto (trk-1-dial,0130101736,18)
    -- Executing [0130101736@trk-1-dial:18] NoOp("SIP/0130101736-00000047", "") in new stack
    -- Executing [0130101736@trk-1-dial:19] NoOp("SIP/0130101736-00000047", "Configuring Trunk Parameters") in new stack
    -- Executing [0130101736@trk-1-dial:20] ExecIf("SIP/0130101736-00000047", "1?Set(CHANNEL(musicclass)=default):") in new stack
    -- Executing [0130101736@trk-1-dial:21] Set("SIP/0130101736-00000047", "__TRUNK_MOH_SET=yes") in new stack
    -- Executing [0130101736@trk-1-dial:22] Set("SIP/0130101736-00000047", "DIAL_PREFIX=") in new stack
    -- Executing [0130101736@trk-1-dial:23] Set("SIP/0130101736-00000047", "__TRKDIALOPTIONS=kKtr") in new stack
    -- Executing [0130101736@trk-1-dial:24] Set("SIP/0130101736-00000047", "ORIGINATOR=0130101736") in new stack
    -- Executing [0130101736@trk-1-dial:25] Set("SIP/0130101736-00000047", "RING_TIME=90") in new stack
    -- Executing [0130101736@trk-1-dial:26] Set("SIP/0130101736-00000047", "CALLED=0130101736") in new stack
    -- Executing [0130101736@trk-1-dial:27] Set("SIP/0130101736-00000047", "TRUNK_ENDPOINT=0130101736") in new stack
    -- Executing [0130101736@trk-1-dial:28] Set("SIP/0130101736-00000047", "__CIDNUM=0130101736") in new stack
    -- Executing [0130101736@trk-1-dial:29] Set("SIP/0130101736-00000047", "__CIDNAME=+27614683533") in new stack
    -- Executing [0130101736@trk-1-dial:30] Set("SIP/0130101736-00000047", "FORCE_RECORDING=no") in new stack
    -- Executing [0130101736@trk-1-dial:31] Set("SIP/0130101736-00000047", "FILTERED_NUMBER=0130101736") in new stack
    -- Executing [0130101736@trk-1-dial:32] GotoIf("SIP/0130101736-00000047", "0?:post-fax") in new stack
    -- Goto (trk-1-dial,0130101736,35)
    -- Executing [0130101736@trk-1-dial:35] NoOp("SIP/0130101736-00000047", "End Fax Section") in new stack
    -- Executing [0130101736@trk-1-dial:36] Dial("SIP/0130101736-00000047", "SIP/0130101736/0130101736,90,kKtrU(sub-call-recording^db84fd969bbb2beb^0130101736^0130101736^no)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/0130101736/0130101736
    -- SIP/0130101736-00000046 is making progress passing it to SIP/0130101736-00000045
    -- SIP/0130101736-00000048 answered SIP/0130101736-00000047
    -- SIP/0130101736-00000048 Internal Gosub(sub-call-recording,s,1(db84fd969bbb2beb,0130101736,0130101736,no)) start
    -- Executing [s@sub-call-recording:1] NoOp("SIP/0130101736-00000048", "Check if call will be recorded on tenant db84fd969bbb2beb") in new stack
    -- Executing [s@sub-call-recording:2] NoOp("SIP/0130101736-00000048", "Call Type: 3 ") in new stack
    -- Executing [s@sub-call-recording:3] Set("SIP/0130101736-00000048", "TENANT=db84fd969bbb2beb") in new stack
    -- Executing [s@sub-call-recording:4] Set("SIP/0130101736-00000048", "CALLER=0130101736") in new stack
    -- Executing [s@sub-call-recording:5] Set("SIP/0130101736-00000048", "CALLEE=0130101736") in new stack
    -- Executing [s@sub-call-recording:6] Set("SIP/0130101736-00000048", "APP_FORCE=no") in new stack
    -- Executing [s@sub-call-recording:7] GotoIf("SIP/0130101736-00000048", "1?:rec_no_available") in new stack
    -- Executing [s@sub-call-recording:8] GotoIf("SIP/0130101736-00000048", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:9] GotoIf("SIP/0130101736-00000048", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:10] GotoIf("SIP/0130101736-00000048", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:11] GotoIf("SIP/0130101736-00000048", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:12] GotoIf("SIP/0130101736-00000048", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:13] Goto("SIP/0130101736-00000048", "return") in new stack
    -- Goto (sub-call-recording,s,17)
    -- Executing [s@sub-call-recording:17] Return("SIP/0130101736-00000048", "") in new stack
  == Spawn extension (trk-1-in, , 1) exited non-zero on 'SIP/0130101736-00000048'
    -- SIP/0130101736-00000048 Internal Gosub(sub-call-recording,s,1(db84fd969bbb2beb,0130101736,0130101736,no)) complete GOSUB_RETVAL=
    -- Channel SIP/0130101736-00000048 joined 'simple_bridge' basic-bridge <443b6a7f-fea1-4732-9a88-c5556a11a71d>
    -- Channel SIP/0130101736-00000047 joined 'simple_bridge' basic-bridge <443b6a7f-fea1-4732-9a88-c5556a11a71d>
    -- SIP/0130101736-00000046 answered SIP/0130101736-00000045
    -- SIP/0130101736-00000046 Internal Gosub(sub-call-recording,s,1(db84fd969bbb2beb,0614683533,0130101736,no)) start
    -- Executing [s@sub-call-recording:1] NoOp("SIP/0130101736-00000046", "Check if call will be recorded on tenant db84fd969bbb2beb") in new stack
    -- Executing [s@sub-call-recording:2] NoOp("SIP/0130101736-00000046", "Call Type: 3 ") in new stack
    -- Executing [s@sub-call-recording:3] Set("SIP/0130101736-00000046", "TENANT=db84fd969bbb2beb") in new stack
    -- Executing [s@sub-call-recording:4] Set("SIP/0130101736-00000046", "CALLER=0614683533") in new stack
    -- Executing [s@sub-call-recording:5] Set("SIP/0130101736-00000046", "CALLEE=0130101736") in new stack
    -- Executing [s@sub-call-recording:6] Set("SIP/0130101736-00000046", "APP_FORCE=no") in new stack
    -- Executing [s@sub-call-recording:7] GotoIf("SIP/0130101736-00000046", "1?:rec_no_available") in new stack
    -- Executing [s@sub-call-recording:8] GotoIf("SIP/0130101736-00000046", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:9] GotoIf("SIP/0130101736-00000046", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:10] GotoIf("SIP/0130101736-00000046", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:11] GotoIf("SIP/0130101736-00000046", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:12] GotoIf("SIP/0130101736-00000046", "0?perform-recording") in new stack
    -- Executing [s@sub-call-recording:13] Goto("SIP/0130101736-00000046", "return") in new stack
    -- Goto (sub-call-recording,s,17)
    -- Executing [s@sub-call-recording:17] Return("SIP/0130101736-00000046", "") in new stack
  == Spawn extension (trk-1-in, , 1) exited non-zero on 'SIP/0130101736-00000046'
    -- SIP/0130101736-00000046 Internal Gosub(sub-call-recording,s,1(db84fd969bbb2beb,0614683533,0130101736,no)) complete GOSUB_RETVAL=
    -- Channel SIP/0130101736-00000046 joined 'simple_bridge' basic-bridge <2f477fd9-1969-4091-affc-6e31fe4bb992>
    -- Channel SIP/0130101736-00000045 joined 'simple_bridge' basic-bridge <2f477fd9-1969-4091-affc-6e31fe4bb992>
    -- Channel SIP/0130101736-00000048 left 'simple_bridge' basic-bridge <443b6a7f-fea1-4732-9a88-c5556a11a71d>
    -- Channel SIP/0130101736-00000047 left 'simple_bridge' basic-bridge <443b6a7f-fea1-4732-9a88-c5556a11a71d>
  == Spawn extension (trk-1-dial, 0130101736, 36) exited non-zero on 'SIP/0130101736-00000047'
    -- Executing [h@trk-1-dial:1] GosubIf("SIP/0130101736-00000047", "0?sub-outbound-queue-call,s,1") in new stack
    -- Executing [h@trk-1-dial:2] Gosub("SIP/0130101736-00000047", "dynamic-routing-out,s,1(0130101736,0130101736,ANSWER,1)") in new stack
    -- Executing [s@dynamic-routing-out:1] NoOp("SIP/0130101736-00000047", "Test if save on dynamic routing list") in new stack
    -- Executing [s@dynamic-routing-out:2] Set("SIP/0130101736-00000047", "CALLER=0130101736") in new stack
    -- Executing [s@dynamic-routing-out:3] Set("SIP/0130101736-00000047", "CALLED=0130101736") in new stack
    -- Executing [s@dynamic-routing-out:4] Set("SIP/0130101736-00000047", "STATUS=ANSWER") in new stack
    -- Executing [s@dynamic-routing-out:5] Set("SIP/0130101736-00000047", "TRKID=1") in new stack
    -- Executing [s@dynamic-routing-out:6] Set("SIP/0130101736-00000047", "ALLOW_DR=") in new stack
    -- Executing [s@dynamic-routing-out:7] Set("SIP/0130101736-00000047", "DYNROUTING_OMC=yes") in new stack
    -- Executing [s@dynamic-routing-out:8] GotoIf("SIP/0130101736-00000047", "0?:comeback") in new stack
    -- Goto (dynamic-routing-out,s,10)
    -- Executing [s@dynamic-routing-out:10] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [h@trk-1-dial:3] Gosub("SIP/0130101736-00000047", "notify-trunk-hangup,s,1") in new stack
    -- Executing [s@notify-trunk-hangup:1] Verbose("SIP/0130101736-00000047", "0, Trunk Hangup") in new stack
 Trunk Hangup
    -- Executing [s@notify-trunk-hangup:2] Set("SIP/0130101736-00000047", "CALLER=SIP/0130101736") in new stack
    -- Executing [s@notify-trunk-hangup:3] UserEvent("SIP/0130101736-00000047", ""EXTENSIONS_SUMMARY","Data: OUTBOUND,SIP/0130101736,0130101736,OUT"") in new stack
    -- Executing [s@notify-trunk-hangup:4] Return("SIP/0130101736-00000047", "") in new stack
    -- Executing [h@trk-1-dial:4] Hangup("SIP/0130101736-00000047", "") in new stack
  == Spawn extension (trk-1-dial, h, 4) exited non-zero on 'SIP/0130101736-00000047'
    -- Channel SIP/0130101736-00000046 left 'simple_bridge' basic-bridge <2f477fd9-1969-4091-affc-6e31fe4bb992>
    -- Channel SIP/0130101736-00000045 left 'simple_bridge' basic-bridge <2f477fd9-1969-4091-affc-6e31fe4bb992>
  == Spawn extension (trk-1-dial, 0130101736, 36) exited non-zero on 'SIP/0130101736-00000045'
    -- Executing [h@trk-1-dial:1] GosubIf("SIP/0130101736-00000045", "0?sub-outbound-queue-call,s,1") in new stack
    -- Executing [h@trk-1-dial:2] Gosub("SIP/0130101736-00000045", "dynamic-routing-out,s,1(0614683533,0130101736,ANSWER,1)") in new stack
    -- Executing [s@dynamic-routing-out:1] NoOp("SIP/0130101736-00000045", "Test if save on dynamic routing list") in new stack
    -- Executing [s@dynamic-routing-out:2] Set("SIP/0130101736-00000045", "CALLER=0614683533") in new stack
    -- Executing [s@dynamic-routing-out:3] Set("SIP/0130101736-00000045", "CALLED=0130101736") in new stack
    -- Executing [s@dynamic-routing-out:4] Set("SIP/0130101736-00000045", "STATUS=ANSWER") in new stack
    -- Executing [s@dynamic-routing-out:5] Set("SIP/0130101736-00000045", "TRKID=1") in new stack
    -- Executing [s@dynamic-routing-out:6] Set("SIP/0130101736-00000045", "ALLOW_DR=") in new stack
    -- Executing [s@dynamic-routing-out:7] Set("SIP/0130101736-00000045", "DYNROUTING_OMC=yes") in new stack
    -- Executing [s@dynamic-routing-out:8] GotoIf("SIP/0130101736-00000045", "0?:comeback") in new stack
    -- Goto (dynamic-routing-out,s,10)
    -- Executing [s@dynamic-routing-out:10] Return("SIP/0130101736-00000045", "") in new stack
    -- Executing [h@trk-1-dial:3] Gosub("SIP/0130101736-00000045", "notify-trunk-hangup,s,1") in new stack
    -- Executing [s@notify-trunk-hangup:1] Verbose("SIP/0130101736-00000045", "0, Trunk Hangup") in new stack
 Trunk Hangup
    -- Executing [s@notify-trunk-hangup:2] Set("SIP/0130101736-00000045", "CALLER=SIP/0130101736") in new stack
    -- Executing [s@notify-trunk-hangup:3] UserEvent("SIP/0130101736-00000045", ""EXTENSIONS_SUMMARY","Data: OUTBOUND,SIP/0130101736,0130101736,OUT"") in new stack
    -- Executing [s@notify-trunk-hangup:4] Return("SIP/0130101736-00000045", "") in new stack
    -- Executing [h@trk-1-dial:4] Hangup("SIP/0130101736-00000045", "") in new stack
  == Spawn extension (trk-1-dial, h, 4) exited non-zero on 'SIP/0130101736-00000045'
`

Here is screenshot of my inbound route:

image

That is what is so strange to me, if I set Insecure in Trunk settings to Port, Invite I get this were it looks like the inbound call goes outbound. But on phone it just drops the call. If I change Insecure to Not Used, the call never gets to my box and nothing shows in logs.

Thank you for your time.

I have tested now also by terminating that number on FreePBX box and then setting up trunk on Vital PBX to Free PBX and then it works. But if I terminate is directly on VitalPBX it does this…

Here is my trunk setup:

image

Here is my sip settings:

image

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.