hi any one tell me how to make a dialplan my extensions.conf exten => _40XXXXXXXXXXXX,1,Dial(OH323/${EXTEN}) i want to dial to 40XXXXXXXXXXXX number. XXXXXXXXXXXX could be any number like 923335224005 or 92512213248 at the moment when i am trying to dial 40923335224005 asterisk is dialing Executing Dial("OH323/R11429", "OH323/40923335224005") but i want him to dial Executing Dial("OH323/R11429", "OH323/923335224005") Kamran Ahmad __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250
On 02:42, Thu 17 Mar 05, Kamran Ahmad wrote:> hi > > any one tell me how to make a dialplan > > my extensions.conf > exten => _40XXXXXXXXXXXX,1,Dial(OH323/${EXTEN}) > > i want to dial to 40XXXXXXXXXXXX number. > XXXXXXXXXXXX could be any number like 923335224005 or > 92512213248 > > at the moment when i am trying to dial 40923335224005 > > asterisk is dialing > > Executing Dial("OH323/R11429", "OH323/40923335224005") > > but i want him to dial > Executing Dial("OH323/R11429", "OH323/923335224005") > > Kamran Ahmaduse this: exten => _40XXXXXXXXXXXX,1,Dial(OH323/${EXTEN:2}) This will strip the first 2 characters -- Michiel van Baak http://lunteren.vanbaak.info michiel@vanbaak.info GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D "Two of the most famous products of Berkeley are LSD and BSD. I don't think that this is a coincidence."
On Thu, 17 Mar 2005 02:42:27 -0800 (PST), Kamran Ahmad <p_kami@yahoo.com> wrote:> hi > > any one tell me how to make a dialplan > > my extensions.conf > exten => _40XXXXXXXXXXXX,1,Dial(OH323/${EXTEN}) > > i want to dial to 40XXXXXXXXXXXX number. > XXXXXXXXXXXX could be any number like 923335224005 or > 92512213248 > > at the moment when i am trying to dial 40923335224005 > > asterisk is dialing > > Executing Dial("OH323/R11429", "OH323/40923335224005") > > but i want him to dial > Executing Dial("OH323/R11429", "OH323/923335224005")You need to change your dial comand to this exten => _40XXXXXXXXXXXX,1,Dial(OH323/${EXTEN:2}) the :2 deletes the first 2 digits and removes the leading 40 Jason
Kamran Ahmad wrote:> hi > > any one tell me how to make a dialplan > > my extensions.conf > exten => _40XXXXXXXXXXXX,1,Dial(OH323/${EXTEN}) > > i want to dial to 40XXXXXXXXXXXX number. > XXXXXXXXXXXX could be any number like 923335224005 or > 92512213248 > > at the moment when i am trying to dial 40923335224005 > > asterisk is dialing > > Executing Dial("OH323/R11429", "OH323/40923335224005") > > but i want him to dial > Executing Dial("OH323/R11429", "OH323/923335224005") >exten => _1XXXX,1,Dial(OH323/${EXTEN:1}) exten => _10XXXX,1,Dial(OH323/${EXTEN:2}) The first one removes the first number and the second one removes the first 2 chars. and so on, and so on. Hope that helps with examples. David> Kamran Ahmad > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Find what you need with new enhanced search. > http://info.mail.yahoo.com/mail_250 > _______________________________________________ > 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 > >