Hi, I am using Freeswitch with Sangoma A102 and Openzap. I have configured the extension in default.xml as *default.xml* <extension name="Long Distance - wanpipe"> <condition field="destination_number" expression="^0([0-9]+)$"> <action application="set" data="dialed_ext=$1"/> <action application="bridge" data="openzap/${dialed_ext}"/> </condition> </extension> * openzap.conf* [span wanpipe] trunk_type => e1 b-channel => 1:1-15 d-channel=> 1:16 b-channel => 1:17-31 *openzap.conf.xml* <configuration name="*openzap.conf*" description="*OpenZAP Configuration*"> <settings> <param name="*debug*" value="*0*" /> </settings> <pri_spans> <span id="*1*"> <param name="*mode*" value="*user*" /> <param name="*dialect*" value="*euro*" /> <param name="*dialplan*" value="*XML*" /> <param name="*context*" value="*default*" /> </span> </pri_spans> </configuration> Whenever I am dialing thru my softphone i get the no route in freeswitch console as 2008-09-17 17:46:13 [INFO] mod_dialplan_xml.c:228 dialplan_hunt() Processing FreeSwitch->9894929942 in context default 2008-09-17 17:46:13 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Transfer sofia/internal/1001@172.20.176.32 to enum[9894929942@default] 2008-09-17 17:46:13 [INFO] switch_core_state_machine.c:114 switch_core_standard_on_routing() No Route, Aborting 2008-09-17 17:46:13 [NOTICE] switch_core_state_machine.c:115 switch_core_standard_on_routing() Hangup sofia/internal/1001@172.20.176.32[CS_ROUTING] [NO_ROUTE_DESTINATION] 2008-09-17 17:46:13 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 2 (sofia/internal/1001@172.20.176.32) Ended 2008-09-17 17:46:13 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel sofia/internal/1001@172.20.176.32[CS_HANGUP] Any help would be appreciated. On Thu, Aug 28, 2008 at 11:52 PM, Cliconnect <cliconnect@cliconnect.com>wrote:
Thank you Brian,
it worked.
regards
Duan
-----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:
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 sip:brian@freeswitch.org
_______________________________________________ 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
-- Thank you with regards, Gopal,