Is there a way to match the last 7 digits of an extension?
So that 1008014445454
8014445454
4445454
Would all match?
I have looked at extension matching and I can't figure out how to do this:-)
Thanks in advance!
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050629/8dc9b029/attachment.htm
Try _.4445454
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Chris
Modesitt
Sent: Wednesday, June 29, 2005 4:17 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Extension Matching.
Is there a way to match the last 7 digits of an extension?
So that 1008014445454
8014445454
4445454
Would all match?
I have looked at extension matching and I can't figure out how to do
this:-)
Thanks in advance!
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050629/a827c0dc/attachment.htm
Chris Modesitt wrote:> Is there a way to match the last 7 digits of an extension? > > > > So that 1008014445454 > > 8014445454 > > 4445454 > > > > Would all match? > >http://www.voip-info.org/tiki-index.php?page=Asterisk%20config%20extensions.conf%20sorting Doug
My suggestion would be to basically strip the first digits down until you get to the 7 digit extension. Unless someone else has a better idea, that's how we do it, storing the first part in a variable in case we need it. Aaron Daniel Chris Modesitt wrote:> Is there a way to match the last 7 digits of an extension? > > > > So that 1008014445454 > > 8014445454 > > 4445454 > > > > Would all match? > > > > I have looked at extension matching and I can?t figure out how to do thisJ > > > > Thanks in advance! > > > > Chris > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
Glad I could help
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Chris
Modesitt
Sent: Wednesday, June 29, 2005 4:44 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Extension Matching.
That worked perfectly, this behavior must have changed recently because
I tried that 6 months ago and it did not work:-)
________________________________
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Alexander
Lopez
Sent: Wednesday, June 29, 2005 2:30 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Extension Matching.
Try _.4445454
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Chris
Modesitt
Sent: Wednesday, June 29, 2005 4:17 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Extension Matching.
Is there a way to match the last 7 digits of an extension?
So that 1008014445454
8014445454
4445454
Would all match?
I have looked at extension matching and I can't figure out how to do
this:-)
Thanks in advance!
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050629/6c83f9fa/attachment.htm
What are you trying to do???
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Chris
Modesitt
Sent: Wednesday, June 29, 2005 4:54 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Extension Matching.
Okay I take that back it kinda works, but the behavior is erratic.
Sometimes it matches just the 7 digits and sometimes it matches every
number that enters the context :-)
Chris
________________________________
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Alexander
Lopez
Sent: Wednesday, June 29, 2005 2:30 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Extension Matching.
Try _.4445454
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Chris
Modesitt
Sent: Wednesday, June 29, 2005 4:17 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Extension Matching.
Is there a way to match the last 7 digits of an extension?
So that 1008014445454
8014445454
4445454
Would all match?
I have looked at extension matching and I can't figure out how to do
this:-)
Thanks in advance!
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050629/b50e75eb/attachment.htm