sdcharly@gmail.com
2006-Oct-20 05:09 UTC
[asterisk-users] Linksys PAP2 dial plan help please
Hi, I have a Linksys PAP2-NA connectd to my asterisk. I would like the device to add 2 characters in front of the dialled number always when it send the call to my asterisk. I dont know how to do that. I will summarise my requirement. My friend dials 1-210-1234345, i want the asterisk to get 55-1-210-1234345. Can someone help me to add this dialplan. Thanks in advance Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061020/919bac53/attachment.htm
Tijl Van den Broeck
2006-Oct-20 05:18 UTC
[asterisk-users] Linksys PAP2 dial plan help please
Just adapt the Dial line you use like this Dial(SIP/22${EXTEN}) On 10/20/06, sdcharly@gmail.com <sdcharly@gmail.com> wrote:> Hi, > > I have a Linksys PAP2-NA connectd to my asterisk. I would like the device to > add 2 characters in front of the dialled number always when it send the call > to my asterisk. I dont know how to do that. I will summarise my requirement. > > My friend dials 1-210-1234345, i want the asterisk to get 55-1-210-1234345. > > Can someone help me to add this dialplan. > > Thanks in advance > > Dan > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > >
Friday, October 20, 2006, 2:09:56 PM, sdcharly@gmail.com wrote:> My friend dials 1-210-1234345, i want the asterisk to get 55-1-210-1234345.> Can someone help me to add this dialplan.you must add <:55> before every rule, where you want to add 55. eg. this rule matches your example 1-210-1234345 and adds 55 before the dialed number: <:55>1210xxxxxxx -- Best regards, Csibra Gergo mailto:gergo@csibra.hu
On Fri, Oct 20, 2006 at 03:09:56PM +0300, sdcharly@gmail.com wrote:> I have a Linksys PAP2-NA connectd to my asterisk. I would like the > device to add 2 characters in front of the dialled number always when > it send the call to my asterisk. I dont know how to do that. I will > summarise my requirement. > My friend dials 1-210-1234345, i want the asterisk to get > 55-1-210-1234345.What actual problem are you trying to solve? It's very likely that you can solve it better in Asterisk without touching the ATA. For example, if what you actually want is for calls from the PAP2 which Asterisk routes outwards via a POTS card to be prefixed with 55, you can do that in your dialplan (extensions.conf) by modifying the rule for placing outbound calls. [internal] exten => _1.,1,Dial(Zap/4/55${EXTEN}) ^^^^^^^^^^ Brian.