Using trixbox (or a custom dialplan if needed) has anyone been able to convert a number dialled like +612421100000 to something like 024221100000 ie (remove the +61 and replace with 0) i just dont know how to set it up, there seems to be no dialplan wildcard i can use to match +. I was thinking of something like .61XXXXXXXXXX but that still seems wrong to me. it could match other numbers. anyone had to do this in the past ? thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070622/02587595/attachment.htm
This is the required dial plan: 0+61|XXX. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Kevin Withnall Sent: Friday, June 22, 2007 5:11 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] international numbers... Using trixbox (or a custom dialplan if needed) has anyone been able to convert a number dialled like +612421100000 to something like 024221100000 ie (remove the +61 and replace with 0) i just dont know how to set it up, there seems to be no dialplan wildcard i can use to match +. I was thinking of something like .61XXXXXXXXXX but that still seems wrong to me. it could match other numbers. anyone had to do this in the past ? thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070622/ae84ad71/attachment.htm
Try 00 as a sub for the + in the search. That's how the chan_skype dials it so possibly your dial range becomes: 0061|0+. on the outgoing route. Just guessing Let me know if it works D Dave Bour Desktop Solution Center 905.381.0077 dcbour at desktopsolutioncenter.ca For those who just want it to work... Giving you complete IT peace of mind. (Sent via Blackberry - hence message may be shorter than my usual verbose responses) PIN 4cc364db (as of March 24, 2007) ----- Original Message ----- From: asterisk-users-bounces at lists.digium.com <asterisk-users-bounces at lists.digium.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Sent: Fri Jun 22 05:10:46 2007 Subject: [asterisk-users] international numbers... Using trixbox (or a custom dialplan if needed) has anyone been able to convert a number dialled like +612421100000 to something like 024221100000 ie (remove the +61 and replace with 0) i just dont know how to set it up, there seems to be no dialplan wildcard i can use to match +. I was thinking of something like .61XXXXXXXXXX but that still seems wrong to me. it could match other numbers. anyone had to do this in the past ? thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070622/ecc99f16/attachment.htm
>>>>> "KW" == Kevin Withnall <kevin at ilb.com.au> writes:KW> Using trixbox (or a custom dialplan if needed) has anyone been KW> able to convert a number dialled like +612421100000 to something KW> like 024221100000 ie (remove the +61 and replace with 0) KW> i just dont know how to set it up, there seems to be no dialplan KW> wildcard i can use to match +. The easy way out has served me well in the past. Something like: _+61!,1,Goto(0${EXTEN:3},2) _+!,1,Goto(00${EXTEN},2) _X.,1,NoOp _X.,2,... Notice that the extension reordering that asterisk does can easily mess you up. It's important to do show dialplan afterwards, to see what asterisk came up with this time. The above is untested. /Benny
exten => +612421100000,1,Goto(0${EXTEN:3},1)) Gary Mensenares wrote:> This is the required dial plan: > > > > 0+61|XXX. > > > > > > ------------------------------------------------------------------------ > > *From:* asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] *On Behalf Of *Kevin > Withnall > *Sent:* Friday, June 22, 2007 5:11 PM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* [asterisk-users] international numbers... > > > > Using trixbox (or a custom dialplan if needed) has anyone been able to > convert a number dialled like > > +612421100000 to something like 024221100000 ie (remove the +61 and > replace with 0) > > > > i just dont know how to set it up, there seems to be no dialplan > wildcard i can use to match +. > > > > I was thinking of something like .61XXXXXXXXXX but that still seems > wrong to me. it could match other numbers. > > > > anyone had to do this in the past ? > > > > thanks. > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >