No Joy. Looks like the may be something wrong with the initial companya.tele.co.uk.xml file.<br>Have a look<br><br><a href="http://pastebin.freeswitch.org/15539">http://pastebin.freeswitch.org/15539</a><br><br><br><div class="gmail_quote">
---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Garry Matthews</b> <span dir="ltr"><<a href="mailto:garry.matthews@ethermagic.co.uk">garry.matthews@ethermagic.co.uk</a>></span><br>Date: 3 March 2011 18:08<br>
Subject: RE: [Freeswitch-users] Dialplan in a muddle<br>To: lloyd thomas <<a href="mailto:lloydie.t@gmail.com">lloydie.t@gmail.com</a>><br><br><br><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">
<span style="font-size: 10pt;"><b><u><span style="font-family: "Courier New"; color: red;">-</span></u></b> </span><span style="font-size: 10pt; color: blue;"><</span><span style="font-size: 10pt; color: rgb(153, 0, 0);">include</span><span style="font-size: 10pt; color: blue;">></span><span style="font-size: 10pt; color: rgb(153, 0, 0);"></span></p>
<p class="MsoNormal"><span style="font-size: 10pt;"><b><u><span style="font-family: "Courier New"; color: red;">-</span></u></b> </span><span style="font-size: 10pt; color: blue;"><</span><span style="font-size: 10pt; color: rgb(153, 0, 0);">gateway name</span><span style="font-size: 10pt; color: blue;">="</span><b><span style="font-size: 10pt;">soho66</span></b><span style="font-size: 10pt; color: blue;">"></span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Courier New"; color: red;"> </span></b><span style="font-size: 10pt;"> </span><span style="font-size: 10pt; color: blue;"><</span><span style="font-size: 10pt; color: rgb(153, 0, 0);">param</span><span style="font-size: 10pt;"> </span><span style="font-size: 10pt; color: rgb(153, 0, 0);">name</span><span style="font-size: 10pt; color: blue;">="</span><b><span style="font-size: 10pt;">username</span></b><span style="font-size: 10pt; color: blue;">"</span><span style="font-size: 10pt; color: rgb(153, 0, 0);"> value</span><span style="font-size: 10pt; color: blue;">="</span><b><span style="font-size: 10pt;">1000014877</span></b><span style="font-size: 10pt; color: blue;">" /></span><span style="font-size: 10pt;"> </span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Courier New"; color: red;"> </span></b><span style="font-size: 10pt;"> </span><span style="font-size: 10pt; color: blue;"><</span><span style="font-size: 10pt; color: rgb(153, 0, 0);">param</span><span style="font-size: 10pt;"> </span><span style="font-size: 10pt; color: rgb(153, 0, 0);">name</span><span style="font-size: 10pt; color: blue;">="</span><b><span style="font-size: 10pt;">realm</span></b><span style="font-size: 10pt; color: blue;">"</span><span style="font-size: 10pt; color: rgb(153, 0, 0);"> value</span><span style="font-size: 10pt; color: blue;">="</span><b><span style="font-size: 10pt;"><a href="http://sip.soho66.co.uk:8060" target="_blank">sip.soho66.co.uk:8060</a></span></b><span style="font-size: 10pt; color: blue;">" /></span><span style="font-size: 10pt;"> </span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Courier New"; color: red;"> </span></b><span style="font-size: 10pt;"> </span><span style="font-size: 10pt; color: blue;"><</span><span style="font-size: 10pt; color: rgb(153, 0, 0);">param</span><span style="font-size: 10pt;"> </span><span style="font-size: 10pt; color: rgb(153, 0, 0);">name</span><span style="font-size: 10pt; color: blue;">="</span><b><span style="font-size: 10pt;">password</span></b><span style="font-size: 10pt; color: blue;">"</span><span style="font-size: 10pt; color: rgb(153, 0, 0);"> value</span><span style="font-size: 10pt; color: blue;">="</span><b><span style="font-size: 10pt;">C9J6U0LO</span></b><span style="font-size: 10pt; color: blue;">" /></span><span style="font-size: 10pt;"> </span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Courier New"; color: red;"> </span></b><span style="font-size: 10pt;"> </span><span style="font-size: 10pt; color: blue;"></</span><span style="font-size: 10pt; color: rgb(153, 0, 0);">gateway</span><span style="font-size: 10pt; color: blue;">></span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Courier New"; color: red;"> </span></b><span style="font-size: 10pt;"> </span><span style="font-size: 10pt; color: blue;"></</span><span style="font-size: 10pt; color: rgb(153, 0, 0);">include</span><span style="font-size: 10pt; color: blue;">></span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I’ve made a few changes for security reasons, but it should give you the idea !</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">If you type >sofia status</span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Then you should see REGED to show that you have registered.</span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Any luck?</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Garry.</span></p><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> lloyd thomas [mailto:<a href="mailto:lloydie.t@gmail.com" target="_blank">lloydie.t@gmail.com</a>] <br><b>Sent:</b> 03 March 2011 18:02<br>
<b>To:</b> Garry Matthews<br><b>Subject:</b> Re: [Freeswitch-users] Dialplan in a muddle</span></p></div><div><div></div><div class="h5"><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom: 12pt;">Ah Ha, what is your gateway settings (roughly)?</p>
<div><p class="MsoNormal">On 3 March 2011 17:51, Garry Matthews <<a href="mailto:garry.matthews@ethermagic.co.uk" target="_blank">garry.matthews@ethermagic.co.uk</a>> wrote:</p><div><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">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.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">However, I can get calls out using the following file -</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">conf/dialplan/default/01_custom.xml</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);"><include></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> <extension name="Dial Out Custom Gateway"></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> <condition field="destination_number" </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> expression="^9(0\d{10})$"></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> <action application="bridge"</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> data="sofia/gateway/soho66/$1"/></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </condition></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </extension></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"></include></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">You then need to -</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">reloadxml</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">This may give you something to compare with.</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I hope this helps.</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Garry.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-color: -moz-use-text-color;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> lloyd thomas [mailto:<a href="mailto:lloydie.t@gmail.com" target="_blank">lloydie.t@gmail.com</a>] <br><b>Sent:</b> 03 March 2011 17:04<br>
<b>To:</b> freeswitch-users<br><b>Subject:</b> [Freeswitch-users] Dialplan in a muddle</span></p></div><div><div><p class="MsoNormal"> </p><p class="MsoNormal">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.<br>
<br>The first company xml file is conf/dialplan/companya.tele.co.uk.xml<br><br>which has the line<br><X-PRE-PROCESS cmd="include" data="<a href="http://companya.tele.co.uk/*.xml" target="_blank">companya.tele.co.uk/*.xml</a>"/><br>
to include xml files in that conf/dialplan/<a href="http://companya.tele.co.uk" target="_blank">companya.tele.co.uk</a> folder<br><br>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.<br>
<br>I think problem is to do with this<br><br>2011-03-03 17:00:23.089153 [NOTICE] switch_ivr.c:1606 Transfer sofia/internal/<a href="mailto:200@companya.tele.co.uk" target="_blank">200@companya.tele.co.uk</a> to enum[<a href="mailto:907973323260@companya.tele.co.uk" target="_blank">907973323260@companya.tele.co.uk</a>]<br>
<br>help me please!<br><br>----------------- soho66.co.uk.xml----------------------------<br><include><br><extension name="Local Dial"><br> <condition field="destination_number" expression="^9?([2-9]{6})$"><br>
<action application="set" data="effective_caller_id_name=12345678"/><br> <action application="set" data="effective_caller_id_number=12345678"/><br> <action application="bridge" data="sofia/gateway/<a href="http://sip.soho66.co.uk/01869$1@sip.soho66.co.uk" target="_blank">sip.soho66.co.uk/01869$1@sip.soho66.co.uk</a>"/><br>
</condition><br></extension><br><br><extension name="Regional 01"><br> <condition field="destination_number" expression="^9?(01\d{9})$"><br> <action application="set" data="effective_caller_id_name=12345678"/><br>
<action application="set" data="effective_caller_id_number=12345678"/><br> <action application="bridge" data="sofia/gateway/<a href="http://sip.soho66.co.uk/$1" target="_blank">sip.soho66.co.uk/$1</a>"/><br>
</condition><br></extension><br><br><extension name="Regional 02"><br> <condition field="destination_number" expression="^9?(02\d{9})$$"><br> <action application="set" data="effective_caller_id_name=12345678"/><br>
<action application="set" data="effective_caller_id_number=123456781"/><br> <action application="bridge" data="sofia/gateway/<a href="http://sip.soho66.co.uk/$1" target="_blank">sip.soho66.co.uk/$1</a>"/><br>
</condition><br></extension><br><br><extension name="Mobile"><br> <condition field="destination_number" expression="^9?(07\d{9})$"><br> <action application="set" data="effective_caller_id_name=12345678"/><br>
<action application="set" data="effective_caller_id_number=12345678"/><br> <action application="bridge" data="sofia/gateway/<a href="http://sip.soho66.co.uk/$1" target="_blank">sip.soho66.co.uk/$1</a>"/><br>
</condition><br></extension><br><br><extension name="International"><br> <condition field="destination_number" expression="^9?(00\d*))$"><br> <action application="set" data="effective_caller_id_name=12345678"/><br>
<action application="set" data="effective_caller_id_number=12345678"/><br> <action application="bridge" data="sofia/gateway/<a href="http://sip.soho66.co.uk/$1" target="_blank">sip.soho66.co.uk/$1</a>"/><br>
</condition><br></extension><br></include><br>-----------------eof soho66.co.uk.xml-------------------------<br><br>-------------conf/sip_profiles/external/companya_soho66.xml -----------------------<br>
<include><br> <gateway name="<a href="http://sip.soho66.co.uk" target="_blank">sip.soho66.co.uk</a>"><br> <param name="username" value="12345678"/><br> <param name="from-user" value="12345678"/><br>
<param name="password" value="ABCDEFGH"/><br> <param name="expire-seconds" value="600"/><br> <param name="register" value="true"/><br>
<param name="retry-seconds" value="30"/><br> </gateway><br></include><br>------------- eof conf/sip_profiles/external/companya_soho66.xml -----------------------</p></div></div>
</div></div></div><p class="MsoNormal"> </p></div></div></div></div></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>