No Joy. Looks like the may be something wrong with the initial companya.tele.co.uk.xml file.
Have a look
http://pastebin.freeswitch.org/15539
- <include>
- <gateway name="soho66">
<param name="username" value="1000014877" />
<param name="realm" value="sip.soho66.co.uk:8060" />
<param name="password" value="C9J6U0LO" />
</gateway>
</include>
I’ve made a few changes for security reasons, but it should give you the idea !
If you type >sofia status
Then you should see REGED to show that you have registered.
Any luck?
Garry.
From: lloyd thomas [mailto:lloydie.t@gmail.com]
Sent: 03 March 2011 18:02
To: Garry Matthews
Subject: Re: [Freeswitch-users] Dialplan in a muddle
Ah Ha, what is your gateway settings (roughly)?
On 3 March 2011 17:51, Garry Matthews <garry.matthews@ethermagic.co.uk> wrote:
I’m not sure if this helps – I just started with Freeswicth and Soho 66 today. I’m a total beginner and have been working from the book.
However, I can get calls out using the following file -
conf/dialplan/default/01_custom.xml
<include>
<extension name="Dial Out Custom Gateway">
<condition field="destination_number"
expression="^9(0\d{10})$">
<action application="bridge"
data="sofia/gateway/soho66/$1"/>
</condition>
</extension>
</include>
You then need to -
reloadxml
This may give you something to compare with.
I hope this helps.
Garry.
From: lloyd thomas [mailto:lloydie.t@gmail.com]
Sent: 03 March 2011 17:04
To: freeswitch-users
Subject: [Freeswitch-users] Dialplan in a muddle
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 -----------------------