Inbound routes doesn't work, pls help

Hello everybody.

I am having some problems with my inbound routes. I have two trunks and therefore two external numbers.
I want one of the external numbers to goto to a queue and the other directly to my own extension. Then I add an inbound route with DID 36927581 and set the destination to the queue and then another inbound route with DID 36927583 and the destination to core extension 3164. I can only get the inbound route working if I leave DID and CID blank, so they match all. But what am I missing when I create the routes?

When I have a match all DID and CID route and call 36927581 from an external phone, asterisk says the following:

– Executing Set(“SIP/36927583-0a0efe68”, “FROM_DID=s”) in new stack
– Executing Set(“SIP/36927583-0a0efe68”, “FAX_RX=disabled”) in new stack
– Executing Goto(“SIP/36927583-0a0efe68”, “ext-queues|3160|1”) in new stack
– Goto (ext-queues,3160,1)
– Executing Answer(“SIP/36927583-0a0efe68”, “”) in new stack
– Executing Set(“SIP/36927583-0a0efe68”, “__BLKVM_OVERRIDE=BLKVM/3160/SIP/36927583-0a0efe68”) in new stack
– Executing Set(“SIP/36927583-0a0efe68”, “__BLKVM_BASE=3160”) in new stack
– Executing Set(“SIP/36927583-0a0efe68”, “DB(BLKVM/3160/SIP/36927583-0a0efe68)=TRUE”) in new stack
– Executing Set(“SIP/36927583-0a0efe68”, “_DIAL_OPTIONS=trM(auto-blkvm)”) in new stack
– Executing Set(“SIP/36927583-0a0efe68”, “__NODEST=3160”) in new stack
– Executing GotoIf(“SIP/36927583-0a0efe68”, “0?USERCID:SETCID”) in new stack
– Goto (ext-queues,3160,9)

But why the Executing Set("SIP/36927583 when I call the 36927581? And why FROM_DID=s - I thought that DID was the external phone number? In my case 36927581/83.

I hope that someone can help me out here.

Thank you.

the any/any route will overwrite the did. You need to have a specific route for your did. See the following post for a bit of background on this:

http://www.freepbx.org/forums/viewtopic.php?t=2184