[Freeswitch-users] prefix on exten

Bob Coleman bobc at panztel.biz
Thu Jan 28 14:28:30 PST 2010


In your dialplan do something like this:

<include>
  <extension name="remotefs">
    <condition field="destination_number" expression="^1234(\d+)$">
     <action application="bridge" data="
sofia/internal/$1 at 192.168.50.195:5080"/<sofia/internal/$1 at 192.168.50.195:5080%22/>
>
    </condition>
  </extension>
</include>

The $1 variable has the number without the prefix of 1234.

I am sending the call to another FS box in this example

Bob

On Fri, Jan 29, 2010 at 10:14 AM, FERNANDO VILLARROEL <fvillarroel at yahoo.com
> wrote:

> Dear.
>
> If i receive a call from a customer with some prefx like 1234
>
> How i can do in order to forward this call with out prefix like Asterisk
>
> {ENTEN:4}
>
> Regards.
>
>
>
>
> _______________________________________________
> 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/20100129/7635a953/attachment-0002.html 


More information about the FreeSWITCH-users mailing list