Maybe getting a bit ahead of myself but I am trying to set up a multi-company dial plan. Things are working fine internally, but I am not getting the grasp for external calls. The first company xml file is conf/dialplan/companya.tele.co.uk.xml which has the line <X-PRE-PROCESS cmd="include" data="companya.tele.co.uk/*.xml"/> to include xml files in that conf/dialplan/companya.tele.co.uk folder In this folder I have the xml file soho66.co.uk.xml which includes the regex to remove the initial 9 when dialling and extenal number. I cant seem to be able to get a call to go anywhere near connecting to the soho gateway. I think problem is to do with this 2011-03-03 17:00:23.089153 [NOTICE] switch_ivr.c:1606 Transfer sofia/internal/200@companya.tele.co.uk to enum[ 907973323260@companya.tele.co.uk] help me please! ----------------- soho66.co.uk.xml---------------------------- <include> <extension name="Local Dial"> <condition field="destination_number" expression="^9?([2-9]{6})$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=12345678"/> <action application="bridge" data="sofia/gateway/ sip.soho66.co.uk/01869$1@sip.soho66.co.uk"/> </condition> </extension> <extension name="Regional 01"> <condition field="destination_number" expression="^9?(01\d{9})$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=12345678"/> <action application="bridge" data="sofia/gateway/sip.soho66.co.uk/$1"/> </condition> </extension> <extension name="Regional 02"> <condition field="destination_number" expression="^9?(02\d{9})$$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=123456781"/> <action application="bridge" data="sofia/gateway/sip.soho66.co.uk/$1"/> </condition> </extension> <extension name="Mobile"> <condition field="destination_number" expression="^9?(07\d{9})$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=12345678"/> <action application="bridge" data="sofia/gateway/sip.soho66.co.uk/$1"/> </condition> </extension> <extension name="International"> <condition field="destination_number" expression="^9?(00\d*))$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=12345678"/> <action application="bridge" data="sofia/gateway/sip.soho66.co.uk/$1"/> </condition> </extension> </include> -----------------eof soho66.co.uk.xml------------------------- -------------conf/sip_profiles/external/companya_soho66.xml ----------------------- <include> <gateway name="sip.soho66.co.uk"> <param name="username" value="12345678"/> <param name="from-user" value="12345678"/> <param name="password" value="ABCDEFGH"/> <param name="expire-seconds" value="600"/> <param name="register" value="true"/> <param name="retry-seconds" value="30"/> </gateway> </include> ------------- eof conf/sip_profiles/external/companya_soho66.xml -----------------------
Can you post your conf/dialplan/companya.tele.co.uk.xml I think there is a problem in the above file. Do you have a <extension name="enum"> <condition field="${module_exists(mod_enum)}" expression="true"/> <condition field="destination_number" expression="^(.*)$"> <action application="transfer" data="$1 enum"/> </condition> </extension> and the line <X-PRE-PROCESS cmd="include" data="companya.tele.co.uk/*.xml"/> below? THanks Lloyd On Thu, Mar 3, 2011 at 12:03 PM, lloyd thomas <lloydie.t@gmail.com> wrote:
Maybe getting a bit ahead of myself but I am trying to set up a multi-company dial plan. Things are working fine internally, but I am not getting the grasp for external calls.
The first company xml file is conf/dialplan/companya.tele.co.uk.xml
which has the line <X-PRE-PROCESS cmd="include" data="companya.tele.co.uk/*.xml"/> to include xml files in that conf/dialplan/companya.tele.co.uk folder
In this folder I have the xml file soho66.co.uk.xml which includes the regex to remove the initial 9 when dialling and extenal number. I cant seem to be able to get a call to go anywhere near connecting to the soho gateway.
I think problem is to do with this
2011-03-03 17:00:23.089153 [NOTICE] switch_ivr.c:1606 Transfer sofia/internal/200@companya.tele.co.uk to enum[ 907973323260@companya.tele.co.uk]
help me please!
----------------- soho66.co.uk.xml---------------------------- <include> <extension name="Local Dial"> <condition field="destination_number" expression="^9?([2-9]{6})$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=12345678"/> <action application="bridge" data="sofia/gateway/ sip.soho66.co.uk/01869$1@sip.soho66.co.uk"/> </condition> </extension>
<extension name="Regional 01"> <condition field="destination_number" expression="^9?(01\d{9})$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=12345678"/> <action application="bridge" data="sofia/gateway/sip.soho66.co.uk/$1 "/> </condition> </extension>
<extension name="Regional 02"> <condition field="destination_number" expression="^9?(02\d{9})$$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=123456781"/> <action application="bridge" data="sofia/gateway/sip.soho66.co.uk/$1 "/> </condition> </extension>
<extension name="Mobile"> <condition field="destination_number" expression="^9?(07\d{9})$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=12345678"/> <action application="bridge" data="sofia/gateway/sip.soho66.co.uk/$1 "/> </condition> </extension>
<extension name="International"> <condition field="destination_number" expression="^9?(00\d*))$"> <action application="set" data="effective_caller_id_name=12345678"/> <action application="set" data="effective_caller_id_number=12345678"/> <action application="bridge" data="sofia/gateway/sip.soho66.co.uk/$1 "/> </condition> </extension> </include> -----------------eof soho66.co.uk.xml-------------------------
-------------conf/sip_profiles/external/companya_soho66.xml ----------------------- <include> <gateway name="sip.soho66.co.uk"> <param name="username" value="12345678"/> <param name="from-user" value="12345678"/> <param name="password" value="ABCDEFGH"/> <param name="expire-seconds" value="600"/> <param name="register" value="true"/> <param name="retry-seconds" value="30"/> </gateway> </include> ------------- eof conf/sip_profiles/external/companya_soho66.xml -----------------------
_______________________________________________ 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
participants (2)
-
Aloysius Lloyd
-
lloyd thomas