[Freeswitch-users] Dialplan: destination_number: regex question
Nandy Dagondon
nandy1925 at gmail.com
Thu Jul 6 04:01:54 UTC 2017
I can cite the recommendation of mod_lcr, convert all numbers to the
International format starting with +64 or 64. IMO, the location of proxy
will determine what numbers to include.
In your example, a proxy in HK, CC (64) and AC (22) are needed to call NZ
phone.
So, you're asking for the regex .... How about this?
<condition field="destination_number" expression="(\+?64\d{9})"/>
Nandy Dagondon <https://camiguintelekom.wordpress.com/about-the-author/>
On Fri, Jun 30, 2017 at 9:17 PM, <royj at yandex.ru> wrote:
> Not quite clear. What are you trying to achieve?
>
> 30.06.2017, 11:11, "Nate" <nathan.port at gmail.com>:
>
> Good day/evening everyone,
>
> Apologies for not being able to figure this out on my own. I've been
> searching and trying for several days to get inbound/outbound working but
> have yet to see success.
>
> At this stage I need help determining a proper regex expression for
> handling New Zealand phone numbers.
>
> For instance, there are three different ways of expressing numbers here in
> NZ:
>
> International: +64 22 333 4444 <+64%2022%20333%204444>
> non-local: 022 333 4444
> local: 333 4444
>
> A couple questions related to the SIP proxy:
>
> If the SIP proxy is located in Hong Kong, but the phone number is a New
> Zealand number, does the location of the proxy have any impact on the
> number of characters in the string for inbound/outbound calls?
>
> Again, apologies for the rudimentary nature of these questions, but having
> nearly exhausted all other options (docs, searches, IRC), I am now spending
> a large amount of time guessing and trial and error without any progress.
>
> Many thanks for any feedback at all.
>
> Nate
> ,
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170706/5268e26a/attachment.html>
More information about the FreeSWITCH-users
mailing list