Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] dialpaln


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
cliconnect at cliconne...
Guest





PostPosted: Thu Aug 28, 2008 1:03 pm    Post subject: [Freeswitch-users] dialpaln Reply with quote

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.

thanks

Duan
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Aug 28, 2008 1:09 pm    Post subject: [Freeswitch-users] dialpaln Reply with quote

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})$


/b





On Aug 28, 2008, at 1:01 PM, Cliconnect wrote:
Quote:
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.

thanks

Duan




Brian West
[url=sip:brian@freeswitch.org]sip:brian@freeswitch.org[/url]
Back to top
cliconnect at cliconne...
Guest





PostPosted: Thu Aug 28, 2008 1:28 pm    Post subject: [Freeswitch-users] dialpaln Reply with quote

Thank you Brian,

it worked.

regards


Duan


Quote:

-----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] 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})$


/b





On Aug 28, 2008, at 1:01 PM, Cliconnect wrote:
Quote:
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.

thanks

Duan




Brian West
[url=sip:brian@freeswitch.org]sip:brian@freeswitch.org[/url]





Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services