Thank you Brian,it worked.regardsDuan
-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Thursday, August 28, 2008 11:07 AM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] dialpalnFor 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})$/b
On Aug 28, 2008, at 1:01 PM, Cliconnect wrote:
Hi,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 "/>
</condition>
</extension>and I can call PSTN with<extension name="PSTN">
<condition field="destination_number" expression="^(\d+)$">
<action application="bridge" data="sofia/gateway/inphonex/$0"/></condition>
</extension>
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.thanksDuan
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org