<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=DA link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US>I have 2 SIP providers, one in Denmark (musimi.dk)
and one in UK (sipgate.co.uk).<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I got each of them working when only one of
them is running, but if I have both of them running inbound is not working,
while outbound works fine.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>When I try to make an inbound call through
the SPI provider, it takes a long time with nothing happening and then it gives
me a busy tone, but as far as I can see the call never reaches my freeswitch
server.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>At the moment both gateways are using the
default external profile (port 5080) , so my guess is that each gateway needs a
unique port when connecting, but I have not tested that as I am having trouble
figuring out how to configure it (Been looking here <a
href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a>
mostly, but it is not clear to me how profiles and gateways are using each
other ). <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>So how do I get each gateway to connect
with different ports, or is the problem something else?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>My conf files:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Directory/default/dk_musimi.xml<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><include><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <user id="USERNAME"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <gateways><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <gateway
name="musimi.dk"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<param name="username" value="USERNAME"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<param name="realm" value="musimi.dk"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<param name="password" value="PASSWORD"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<param name="register" value="true"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </gateway><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </gateways><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <params><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <param
name="password" value="PASSWORD"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </params><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </user><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US></include><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Directory/default/uk_sipgate.xml<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><include><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <user id="USERNAME"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <gateways><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <gateway
name="sipgate.co.uk"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<param name="username" value="USERNAME"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<param name="realm" value="sipgate.co.uk"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<param name="proxy" value="sipgate.co.uk"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<param name="password" value="PASSWORD"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<param name="register" value="true"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
</gateway><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </gateways><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <params><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <param
name="password" value="PASSWORD"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </params><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </user><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US></include><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Dialplan/extensions/dk_musimi.xml<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><extension
name="Musimi_Out"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <condition
field="destination_number"
expression="^(0045)([0-9]{8})$"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <action
application="set" data="effective_caller_id_name=NAME"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <action
application="set" data="effective_caller_id_number=46928525"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <action
application="bridge"
data="sofia/gateway/musimi.dk/$2@musimi.dk"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </condition><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US></extension><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Dialplan/extensions/uk_sipgate.xml<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><extension
name="Sipgate_Out"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <condition
field="destination_number"
expression="^(0044)([0-9]{12})$"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <action
application="set" data="effective_caller_id_name=NAME"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <action
application="set" data="effective_caller_id_number=08709749281"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <action
application="bridge"
data="sofia/gateway/sipgate.co.uk/$2@sipgate.co.uk"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </condition><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US></extension><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>In dialplan/public.xml I have added:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><extension
name="Musimi_In"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<condition field="destination_number"
expression="^46928525$"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<action application="set" data="call_timeout=20"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<action application="bridge"
data="user/1000@$${domain},user/1001@$${domain},user/1002@$${domain}"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
</condition><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </extension><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><extension name="Sipgate_In"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<condition field="destination_number" expression="^08709749281$"><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<action application="set" data="call_timeout=20"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
<action application="bridge"
data="user/1000@$${domain},user/1001@$${domain},user/1002@$${domain}"/><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
</condition><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </extension><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>System is:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>OpenSuse 10.3 64 bit<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>FreeSwitch RC6 (Same with RC5)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>/Sune<o:p></o:p></span></p>
</div>
</body>
</html>