Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Dialplan XML phone number match


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
larclap at yahoo.com
Guest





PostPosted: Thu Jun 11, 2009 2:57 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with 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.

There’s got to be a better way. Any suggestions?

Thanks, Lars
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Jun 11, 2009 2:59 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with quote

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





PostPosted: Thu Jun 11, 2009 4:21 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with quote

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





PostPosted: Thu Jun 11, 2009 6:03 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with 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.

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





PostPosted: Thu Jun 11, 2009 6:05 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with quote

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





PostPosted: Thu Jun 11, 2009 7:33 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with quote

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





PostPosted: Thu Jun 11, 2009 7:40 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with quote

What firmware?

/b

On Jun 11, 2009, at 7:30 PM, Lars Zeb wrote:
Quote:
It’s a SNOM 320.



Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us at ClueCon! http://www.cluecon.com
Back to top
larclap at yahoo.com
Guest





PostPosted: Thu Jun 11, 2009 8:38 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with quote

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 (brian@freeswitch.org)




-- Meet us at ClueCon! http://www.cluecon.com
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Jun 11, 2009 8:42 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with quote

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





PostPosted: Thu Jun 11, 2009 9:23 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with quote

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 (brian@freeswitch.org)




-- Meet us at ClueCon! http://www.cluecon.com
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Jun 11, 2009 9:28 pm    Post subject: [Freeswitch-users] Dialplan XML phone number match Reply with quote

See I knew that was a bit of crack Razz, 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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services