View previous topic :: View next topic |
Author |
Message |
larclap at yahoo.com Guest
|
Posted: Thu Jun 11, 2009 2:57 pm Post subject: [Freeswitch-users] Dialplan XML phone number match |
|
|
I have a match expression for outbound calls as “\d{10}”. It’s fine for unformatted numbers. Not knowing any better, I created another extension to handle numbers formatted like XXX-XXX-XXXX, which is easier to read and exists in one hard phone’s phonebook.
It looks like: “^1?(\d{3})-(\d{3})-(\d{4})$”. But I can see making many extensions for different formats.
There’s got to be a better way. Any suggestions?
Thanks, Lars |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Jun 11, 2009 2:59 pm Post subject: [Freeswitch-users] Dialplan XML phone number match |
|
|
Don't do it! Doing that stuff is highly silly.
/b
On Jun 11, 2009, at 2:49 PM, Lars Zeb wrote:
Quote: | There’s got to be a better way. Any suggestions? |
Brian West
brian@freeswitch.org (brian@freeswitch.org)
-- Meet us at ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Thu Jun 11, 2009 4:21 pm Post subject: [Freeswitch-users] Dialplan XML phone number match |
|
|
On Thu, Jun 11, 2009 at 12:49 PM, Lars Zeb <larclap@yahoo.com (larclap@yahoo.com)> wrote:
Quote: |
I have a match expression for outbound calls as “\d{10}”. It’s fine for unformatted numbers. Not knowing any better, I created another extension to handle numbers formatted like XXX-XXX-XXXX, which is easier to read and exists in one hard phone’s phonebook.
It looks like: “^1?(\d{3})-(\d{3})-(\d{4})$”. But I can see making many extensions for different formats.
|
Out of curiosity, what benefit does having all these formats get you?
-MC |
|
Back to top |
|
|
larclap at yahoo.com Guest
|
Posted: Thu Jun 11, 2009 6:03 pm Post subject: [Freeswitch-users] Dialplan XML phone number match |
|
|
The users entering numbers into their phonebooks are able to recognize the number more easily.
I will tell them to forget it and make the phone numbers numeric only.
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins
Sent: Thursday, June 11, 2009 2:21 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Dialplan XML phone number match
On Thu, Jun 11, 2009 at 12:49 PM, Lars Zeb <larclap@yahoo.com (larclap@yahoo.com)> wrote:
I have a match expression for outbound calls as “\d{10}”. It’s fine for unformatted numbers. Not knowing any better, I created another extension to handle numbers formatted like XXX-XXX-XXXX, which is easier to read and exists in one hard phone’s phonebook.
It looks like: “^1?(\d{3})-(\d{3})-(\d{4})$”. But I can see making many extensions for different formats.
Out of curiosity, what benefit does having all these formats get you?
-MC |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Jun 11, 2009 6:05 pm Post subject: [Freeswitch-users] Dialplan XML phone number match |
|
|
If the phone sends them with dashes in them the phone IS BROKEN and should be smashed with a hammer.
/b
On Jun 11, 2009, at 5:57 PM, Lars Zeb wrote:
Quote: | The users entering numbers into their phonebooks are able to recognize the number more easily.
I will tell them to forget it and make the phone numbers numeric only.
|
Brian West
brian@freeswitch.org (brian@freeswitch.org)
-- Meet us at ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
larclap at yahoo.com Guest
|
Posted: Thu Jun 11, 2009 7:33 pm Post subject: [Freeswitch-users] Dialplan XML phone number match |
|
|
It’s a SNOM 320.
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Thursday, June 11, 2009 4:05 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Dialplan XML phone number match
If the phone sends them with dashes in them the phone IS BROKEN and should be smashed with a hammer.
/b
On Jun 11, 2009, at 5:57 PM, Lars Zeb wrote:
The users entering numbers into their phonebooks are able to recognize the number more easily.
I will tell them to forget it and make the phone numbers numeric only.
Brian West
brian@freeswitch.org (brian@freeswitch.org)
-- Meet us at ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
larclap at yahoo.com Guest
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Jun 11, 2009 8:42 pm Post subject: [Freeswitch-users] Dialplan XML phone number match |
|
|
You should be running 7.1.35 or higher.
/b
On Jun 11, 2009, at 8:34 PM, Lars Zeb wrote:
Quote: | snom320-SIP 6.5.17. |
Brian West
brian@freeswitch.org (brian@freeswitch.org)
-- Meet us at ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
larclap at yahoo.com Guest
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Jun 11, 2009 9:28 pm Post subject: [Freeswitch-users] Dialplan XML phone number match |
|
|
See I knew that was a bit of crack , Good to hear its working like it SHOULD now!
/b
On Jun 11, 2009, at 9:21 PM, Lars Zeb wrote:
Quote: | snom320-SIP 7.3.14 14953 fixed it. The phonebook stores XXX-XXX-XXXX but delivers XXXXXXXXXX to FS.
Thanks Brian
|
Brian West
brian@freeswitch.org (brian@freeswitch.org)
-- Meet us at ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
|