DID not following designated route **RESOLVED**

Thanks for the info, I completely forgot about using ssh to log in.

i did so, and here is the results. I dont think there is a security risk on posting this.

Results =

Verbosity was 3 and is now 5

-- Executing [s@from-trunk:1] Set("SIP/6066204338-09011b60", "__FROM_DID=s")                                                                              in new stack
-- Executing [s@from-trunk:2] Gosub("SIP/6066204338-09011b60", "app-blacklis                                                                             t-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("SIP/6066204338-09011                                                                             b60", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("SIP/6066204338-09011b60", "0?                                                                             blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/6066204338-09011b60", "")                                                                              in new stack
-- Executing [s@from-trunk:3] GotoIf("SIP/6066204338-09011b60", "1 ?cidok")                                                                              in new stack
-- Goto (from-trunk,s,5)
-- Executing [s@from-trunk:5] NoOp("SIP/6066204338-09011b60", "CallerID is "                                                                             Bowman Jerry   " <+16065283607>") in new stack
-- Executing [s@from-trunk:6] Set("SIP/6066204338-09011b60", "_RGPREFIX=Any-                                                                             ") in new stack
-- Executing [s@from-trunk:7] Set("SIP/6066204338-09011b60", "CALLERID(name)                                                                             =Any-Bowman Jerry   ") in new stack
-- Executing [s@from-trunk:8] Goto("SIP/6066204338-09011b60", "ivr-2|s|1") i                                                                             n new stack
-- Goto (ivr-2,s,1)
-- Executing [s@ivr-2:1] Set("SIP/6066204338-09011b60", "LOOPCOUNT=0") in ne                                                                             w stack
-- Executing [s@ivr-2:2] Set("SIP/6066204338-09011b60", "__DIR-CONTEXT=defau                                                                             lt") in new stack
-- Executing [s@ivr-2:3] Set("SIP/6066204338-09011b60", "_IVR_CONTEXT_ivr-2=                                                                             ") in new stack
-- Executing [s@ivr-2:4] Set("SIP/6066204338-09011b60", "_IVR_CONTEXT=ivr-2"                                                                             ) in new stack
-- Executing [s@ivr-2:5] GotoIf("SIP/6066204338-09011b60", "0?begin") in new                                                                              stack
-- Executing [s@ivr-2:6] Answer("SIP/6066204338-09011b60", "") in new stack
-- Executing [s@ivr-2:7] Wait("SIP/6066204338-09011b60", "1") in new stack
-- Executing [s@ivr-2:8] Set("SIP/6066204338-09011b60", "TIMEOUT(digit)=3")                                                                              in new stack
-- Digit timeout set to 3
-- Executing [s@ivr-2:9] Set("SIP/6066204338-09011b60", "TIMEOUT(response)=1                                                                             0") in new stack
-- Response timeout set to 10
-- Executing [s@ivr-2:10] BackGround("SIP/6066204338-09011b60", "custom/swit                                                                             chboard1") in new stack
-- <SIP/6066204338-09011b60> Playing 'custom/switchboard1' (language 'en')

== Spawn extension (ivr-2, s, 10) exited non-zero on ‘SIP/6066204338-09011b60’
– Executing [h@ivr-2:1] Hangup(“SIP/6066204338-09011b60”, “”) in new stack
== Spawn extension (ivr-2, h, 1) exited non-zero on 'SIP/6066204338-09011b60’
asterisk*CLI>


I have researched, and went by this article.

http://freepbx.org/support/documentation/howtos/how-to-get-the-did-of-a-sip-trunk

and tried the ideals contained there, including this.

[custom-get-did-from-sip]
exten => _.,1,Noop(Fixing DID using information from SIP TO header)
exten => _.,n,Set(pseudodid=${CUT(CUT(SIP_HEADER(To),@,1),:,2)})
exten => _.,n,Set(pseudodid=${IF($["${pseudodid}"=“s”]?6066204338:${pseudodid})})
exten => _.,n,Goto(from-trunk,${pseudodid},1)

which still resulted in the call falling to the Any/Any route.

Now I can hard code it in with this.

[custom-stupid-provider]
exten => _.,1,Noop(Fixing DID to 6066204338)
exten => _.,n,Goto(from-trunk,6066204338,1)

but would like to get it to actually take care of it with detection as apposed to hardcode.

Any further ideals what I am missing or miss understanding?

also, the incomming coller id on this route shows up as +1 in front of the 10 digit phone numbers, is there a way to strip that down ?

Thanks
Sam