[Freeswitch-users] Dialplan in a muddle
lloyd thomas
lloydie.t at gmail.com
Thu Mar 3 23:06:42 MSK 2011
EXECUTE sofia/internal/200 at companya.tele.co.ukbridge(sofia/gateway/soho66/07973323260)
2011-03-03 19:57:22.189028 [ERR] mod_sofia.c:3891 Invalid Gateway
So it looks as though my gateway does not register. The file is in
conf/sip_profiles/external/01_companya_soho66.xml
Don't understand what the problem is
Help
<include>
<gateway name="soho66">
<param name="username" value="1000022541" />
<param name="realm" value="sip.soho66.co.uk:8060" />
<param name="password" value="5J8D139O" />
</gateway>
</include>
sofia status
Name
Type Data State
=================================================================================================
internal profile
sip:mod_sofia at 188.222.84.32:5060 RUNNING (0)
external profile
sip:mod_sofia at 188.222.84.32:5080 RUNNING (0)
external::example.com gateway
sip:joeuser at example.com NOREG
companyb.tele.co.uk alias
internal ALIASED
internal-ipv6 profile
sip:mod_sofia@[::1]:5060
RUNNING (0)
companya.tele.co.uk alias
internal ALIASED
188.222.85.33 alias
internal ALIASED
=================================================================================================
3 profiles 3 aliases
On 3 March 2011 18:58, lloyd thomas <lloydie.t at gmail.com> wrote:
> 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
>
>
> ---------- Forwarded message ----------
> From: Garry Matthews <garry.matthews at ethermagic.co.uk>
> Date: 3 March 2011 18:08
> Subject: RE: [Freeswitch-users] Dialplan in a muddle
> To: lloyd thomas <lloydie.t at gmail.com>
>
>
> *-* <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 at 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 at 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 at 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 at companya.tele.co.uk to enum[
> 907973323260 at 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 at 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
> -----------------------
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110303/90204722/attachment-0001.html
More information about the FreeSWITCH-users
mailing list