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
Don't do it! Doing that stuff is highly silly. /b On Jun 11, 2009, at 2:49 PM, Lars Zeb wrote:
There’s got to be a better way. Any suggestions?
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
On Thu, Jun 11, 2009 at 12:49 PM, Lars Zeb <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
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> 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
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 -- Meet us at ClueCon! http://www.cluecon.com
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 -- Meet us at ClueCon! http://www.cluecon.com <http://www.cluecon.com/>
What firmware? /b On Jun 11, 2009, at 7:30 PM, Lars Zeb wrote:
It’s a SNOM 320.
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
snom320-SIP 6.5.17. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Thursday, June 11, 2009 5:40 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Dialplan XML phone number match What firmware? /b On Jun 11, 2009, at 7:30 PM, Lars Zeb wrote: It's a SNOM 320. Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com <http://www.cluecon.com/>
You should be running 7.1.35 or higher. /b On Jun 11, 2009, at 8:34 PM, Lars Zeb wrote:
snom320-SIP 6.5.17.
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
snom320-SIP 7.3.14 14953 fixed it. The phonebook stores XXX-XXX-XXXX but delivers XXXXXXXXXX to FS. Thanks Brian From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Thursday, June 11, 2009 6:41 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [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: snom320-SIP 6.5.17. Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com <http://www.cluecon.com/>
See I knew that was a bit of crack :P, Good to hear its working like it SHOULD now! /b On Jun 11, 2009, at 9:21 PM, Lars Zeb wrote:
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 -- Meet us at ClueCon! http://www.cluecon.com
participants (3)
-
Brian West
-
Lars Zeb
-
Michael Collins