DID Number never matches

I would like to thank you for your reply.

This is the log of a phone call that works ( but with Any DID Number for inbound routes )

– Executing [s@from-pstn:1] Set(“PJSIP/trunk PJSIP-00000003”, “__DIRECTION=INBOUND”) in new stack
– Executing [s@from-pstn:2] Gosub(“PJSIP/trunk PJSIP-00000003”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“PJSIP/trunk PJSIP-00000003”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“PJSIP/trunk PJSIP-00000003”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“PJSIP/trunk PJSIP-00000003”, “”) in new stack
– Executing [s@from-pstn:3] ExecIf(“PJSIP/trunk PJSIP-00000003”, “1?Set(__FROM_DID=s)”) in new stack
– Executing [s@from-pstn:4] Set(“PJSIP/trunk PJSIP-00000003”, “CDR(did)=s”) in new stack
– Executing [s@from-pstn:5] ExecIf(“PJSIP/trunk PJSIP-00000003”, “0 ?Set(CALLERID(name)=mypersonnalNum)”) in new stack

And the log of a inbound call that is not working ( with the DID inbound route specified with my num )

– Executing [s@from-pstn:1] NoOp(“PJSIP/trunk PJSIP-00000005”, “No DID or CID Match”) in new stack
– Executing [s@from-pstn:2] Answer(“PJSIP/trunk PJSIP-00000005”, “”) in new stack
[2016-06-22 16:50:34] WARNING[11145][C-00000005]: chan_sip.c:22377 func_header_read: This function can only be used on SIP channels.
– Executing [s@from-pstn:3] Log(“PJSIP/trunk PJSIP-00000005”, "WARNING,Friendly Scanner from ") in new stack
[2016-06-22 16:50:34] WARNING[11145][C-00000005]: Ext. s:3 @ from-pstn: Friendly Scanner from
– Executing [s@from-pstn:4] Wait(“PJSIP/trunk PJSIP-00000005”, “2”) in new stack
> 0x7f6a608a3e10 – Probation passed - setting RTP source address to X.X.X.X:37792 (trunk of my provider )
== Spawn extension (from-pstn, s, 4) exited non-zero on ‘PJSIP/trunk PJSIP-00000005’
– Executing [h@from-pstn:1] Macro(“PJSIP/trunk PJSIP-00000005”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/trunk PJSIP-00000005”, “1?theend”) in new stack

But at any moment , I can see the DID Number…