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 [[email protected]:1] NoOp (" PJSIP/ahmed-0000003f ", " Catch-All DID Match - Found failed - You probably want a DID for this. ") in new stack

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

Executing [[email protected]:3] Goto (" PJSIP/ahmed-0000003f ", " ext-did,s,1 ") in new stack

Goto (ext-did,s,1)

Executing [[email protected]:1] Set (" PJSIP/ahmed-0000003f ", " __DIRECTION=INBOUND ") in new stack

Executing [[email protected]:2] Set (" PJSIP/ahmed-0000003f ", " CHANNEL(tonezone)=us ") in new stack

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

Executing [[email protected]:4] Set (" PJSIP/ahmed-0000003f ", " returnhere=1 ") in new stack

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

Executing [[email protected]:1] GotoIf (" PJSIP/ahmed-0000003f ", " 0?blacklisted ") in new stack

Executing [[email protected]:2] Set (" PJSIP/ahmed-0000003f ", " CALLED_BLACKLIST=1 ") in new stack

Executing [[email protected]:3] Return (" PJSIP/ahmed-0000003f ", “”) in new stack

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

Executing [[email protected]:7] GotoIf (" PJSIP/ahmed-0000003f ", " 0? ") in new stack

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

Executing [[email protected]:9] Set (" PJSIP/ahmed-0000003f ", " __MOHCLASS= ") in new stack

Executing [[email protected]:10] Set (" PJSIP/ahmed-0000003f ", " __REVERSAL_REJECT=FALSE ") in new stack

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

Goto (ext-did,s,13)

Executing [[email protected]:13] NoOp (" PJSIP/ahmed-0000003f ", “”) in new stack

Executing [[email protected]:14] Set (" PJSIP/ahmed-0000003f ", " __CALLINGNAMEPRES_SV=allowed_not_screened ") in new stack

Executing [[email protected]:15] Set (" PJSIP/ahmed-0000003f ", " __CALLINGNUMPRES_SV=allowed_not_screened ") in new stack

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

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

Executing [[email protected]:18] NoOp (" PJSIP/ahmed-0000003f ", " CallerID Entry Point ") in new stack

Executing [[email protected]:19] Set (" PJSIP/ahmed-0000003f ", " __CRM_DIRECTION=INBOUND ") in new stack

Executing [[email protected]:20] Set (" PJSIP/ahmed-0000003f ", " __CRM_SOURCE= ") in new stack

Executing [[email protected]:21] Set (" PJSIP/ahmed-0000003f ", " __CRM_LINKEDID=1654866072.63 ") in new stack

Executing [[email protected]: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