Originating an outbound call with a trunk

When I originate a call with another number out of my server, i configure a trunk pjsip and all but it does’nt work.

This is my CLI
Remote UNIX connection disconnected

Executing [failed@from-pstn:1] NoOp (" PJSIP/ahmed-0000003f ", " Catch-All DID Match - Found failed - You probably want a DID for this. ") in new stack

Executing [failed@from-pstn:2] Set (" PJSIP/ahmed-0000003f ", " __FROM_DID=failed ") in new stack

Executing [failed@from-pstn:3] Goto (" PJSIP/ahmed-0000003f ", " ext-did,s,1 ") in new stack

Goto (ext-did,s,1)

Executing [s@ext-did:1] Set (" PJSIP/ahmed-0000003f ", " __DIRECTION=INBOUND ") in new stack

Executing [s@ext-did:2] Set (" PJSIP/ahmed-0000003f ", " CHANNEL(tonezone)=us ") in new stack

Executing [s@ext-did:3] ExecIf (" PJSIP/ahmed-0000003f ", " 0?Set(__FROM_DID=s) ") in new stack

Executing [s@ext-did:4] Set (" PJSIP/ahmed-0000003f ", " returnhere=1 ") in new stack

Executing [s@ext-did:5] Gosub (" PJSIP/ahmed-0000003f ", " app-blacklist-check,s,1() ") in new stack

Executing [s@app-blacklist-check:1] GotoIf (" PJSIP/ahmed-0000003f ", " 0?blacklisted ") in new stack

Executing [s@app-blacklist-check:2] Set (" PJSIP/ahmed-0000003f ", " CALLED_BLACKLIST=1 ") in new stack

Executing [s@app-blacklist-check:3] Return (" PJSIP/ahmed-0000003f ", “”) in new stack

Executing [s@ext-did:6] Set (" PJSIP/ahmed-0000003f ", " CDR(did)=failed ") in new stack

Executing [s@ext-did:7] GotoIf (" PJSIP/ahmed-0000003f ", " 0? ") in new stack

Executing [s@ext-did:8] ExecIf (" PJSIP/ahmed-0000003f ", " 0 ?Set(CALLERID(name)=) ") in new stack

Executing [s@ext-did:9] Set (" PJSIP/ahmed-0000003f ", " __MOHCLASS= ") in new stack

Executing [s@ext-did:10] Set (" PJSIP/ahmed-0000003f ", " __REVERSAL_REJECT=FALSE ") in new stack

Executing [s@ext-did:11] GotoIf (" PJSIP/ahmed-0000003f ", " 1?post-reverse-charge ") in new stack

Goto (ext-did,s,13)

Executing [s@ext-did:13] NoOp (" PJSIP/ahmed-0000003f ", “”) in new stack

Executing [s@ext-did:14] Set (" PJSIP/ahmed-0000003f ", " __CALLINGNAMEPRES_SV=allowed_not_screened ") in new stack

Executing [s@ext-did:15] Set (" PJSIP/ahmed-0000003f ", " __CALLINGNUMPRES_SV=allowed_not_screened ") in new stack

Executing [s@ext-did:16] Set (" PJSIP/ahmed-0000003f ", " CALLERID(name-pres)=allowed_not_screened ") in new stack

Executing [s@ext-did:17] Set (" PJSIP/ahmed-0000003f ", " CALLERID(num-pres)=allowed_not_screened ") in new stack

Executing [s@ext-did:18] NoOp (" PJSIP/ahmed-0000003f ", " CallerID Entry Point ") in new stack

Executing [s@ext-did:19] Set (" PJSIP/ahmed-0000003f ", " __CRM_DIRECTION=INBOUND ") in new stack

Executing [s@ext-did:20] Set (" PJSIP/ahmed-0000003f ", " __CRM_SOURCE= ") in new stack

Executing [s@ext-did:21] Set (" PJSIP/ahmed-0000003f ", " __CRM_LINKEDID=1654866072.63 ") in new stack

Executing [s@ext-did:22] AGI (" PJSIP/ahmed-0000003f ", " agi://127.0.0.1/sangomacrm.agi,true ") in new stack

<PJSIP/ahmed-0000003f>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 4

This is a partial trace and it looks like an incoming call

Pest post a full call trace via pastebin Providing Great Debug - Support Services - Documentation

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