Hi there, I`m trying to add some prefix before my local extensions, when my calls are routed to ZAP trunk. (i.e.: my local extension is 3333, and i would like to send request to my telco provider with source phone number 5555553333) Is there any way to do this ? I just know to add prefix (via prefix application) to the called number (but not calling). Thanks, barney PS: sorry for my poor english -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050428/cf14f593/attachment.htm
On Thursday 28 April 2005 11:07 am, barney wrote:> Hi there, > > I`m trying to add some prefix before my local extensions, when my calls are > routed to ZAP trunk. > > (i.e.: my local extension is 3333, and i would like to send request to my > telco provider with source phone number 5555553333) > > Is there any way to do this ? I just know to add prefix (via prefix > application) to the called number (but not calling). >Thread on this 2 days ago..... Serach the archives. See footer on every message in this list. For those who dont want to google archives, here ya go: exten => 3333,1,Dial(Zap/g1/55555${EXTEN}/); Just put the number to add before the number to dial: For example, to dial XXX-XXX and put a '9w' before the number when sending to a zap trunk: exten => _NXXXXX,1,Dial(Zap/g1/9w${EXTEN}) Cheers! -josiah
In article <06f801c54c03$f7035210$cc04330a@NTBBRN>, barney <barney@spirit.bentel.sk> wrote:> > I`m trying to add some prefix before my local extensions, when my calls are routed to ZAP trunk. > > (i.e.: my local extension is 3333, and i would like to send request to my telco provider > with source phone number 5555553333) > > Is there any way to do this ? I just know to add prefix (via prefix application) to the > called number (but not calling).I haven't tried this, but the first thing I would try is this (replace xxxx with the extension pattern you are using): exten => xxxx,1,SetCIDNum(${PREFIX}${CALLERIDNUM}) exten => xxxx,2,Dial(.....) where PREFIX is a global variable containing the prefix you want to prepend. See http://www.voip-info.org/wiki-Asterisk+cmd+SetCIDNum You may need the 'a' flag to SetCIDNum too, depending on your application.> PS: sorry for my poor englishIt's much better than my non-existent Slovakian! Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org