You ar making this a lot harder than it is.  If your incomming trunk is in the same context and there is an extension that matches the DID the did will route to the correct place.  Matter of fact I always try to match DID to extension.  Usually I have the telco only send me the last 4 of the DID number and I make that the persons extension.
 
or another way would be like this.
[ext-did-in] ; context of did lines
exten => 999,1,Goto(ext-local,227,1)    ;
 
[ext-local] ; local extensions

exten => 227,hint,SIP/227
exten => 227,1,Dial(SIP/227&SIP/228)
 
----- Original Message -----
Sent: Thursday, April 28, 2005 7:16 PM
Subject: [Asterisk-Users] Assigning DID and Extension with similar value

Hi, just wanted to ask if there is anyone here ever tried creating an extension, then get a did from a pstn network, route the call to that extension.  The catch is, the extension and did is of similar value.

 

Example: extension = 6945192

               did = 6945192

 

Please help me find out how I could implement this.

 

Thanks.

 

Cheers,

Angelo


_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to