[Freeswitch-users] dialpaln

Cliconnect cliconnect at cliconnect.com
Thu Aug 28 11:22:26 PDT 2008

Thank you Brian,
it worked.


-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian
Sent: Thursday, August 28, 2008 11:07 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] dialpaln

For extensions you usually have a 4 digit number so you would do this:
^(\d{4})$  then for the pstn you would not want to match just all digits
like that.  ^(\d{7,15})$


On Aug 28, 2008, at 1:01 PM, Cliconnect wrote:

 I can call extensions like 1000 with
<extension name="extensions">
     <condition field="destination_number" expression="^(\d+)$">
        <action application="bridge" data="sofia/doublenat/$1%voipclic.com
and I can call PSTN with
<extension name="PSTN">
     <condition field="destination_number" expression="^(\d+)$">
      <action application="bridge" data="sofia/gateway/inphonex/$0"/>

Both config being in the same default.xml dialplan  but I must use one or
the other config. What I have to do in order to have them working at the
same time. In other words the same  user can call PSTN and the extension.

Brian West
sip:brian at freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080828/c9d33396/attachment-0002.html 

More information about the FreeSWITCH-users mailing list