[Freeswitch-users] Add country code if it aren't dialled.

Michael Nielsen mic.niel84 at gmail.com
Sun Sep 6 22:23:37 MSD 2015


Is such possible with FreeSWITCH?

On Sat, Sep 5, 2015 at 11:05 AM, Michael Nielsen <mic.niel84 at gmail.com>
wrote:

> I would like my dial plan in FS to automatically add a country code (from
> the users variable "country_code") if no country code has been dialled.
>
> This is part of my dial plan:
>
>     <condition field="destination_number" expression="^\+(\d{3,20})$">
>
>       <action application="export" data="dialed_extension=$1"/>
>
> Is it possible to automatically check if either + or 00 is dialled, if not
> then add + <user country_code>. If 00 is dialled then this should be
> replaced with a +.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150906/0548a9e7/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list