Nathaniel Angelo A. Torres (247talk)
2005-Apr-28 17:16 UTC
[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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050428/8ea22a8a/attachment.htm
Henry Devito
2005-Apr-28 20:27 UTC
[Asterisk-Users] Assigning DID and Extension with similar value
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 -----
From: Nathaniel Angelo A. Torres (247talk)
To: Asterisk Users Mailing List - Non-Commercial Discussion
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
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050428/9e6b3dd4/attachment.htm