Problem with inbound calls with 2 SIP providers
Hi I have 2 SIP providers, one in Denmark (musimi.dk) and one in UK (sipgate.co.uk). 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. 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. 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 http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files mostly, but it is not clear to me how profiles and gateways are using each other ). So how do I get each gateway to connect with different ports, or is the problem something else? My conf files: Directory/default/dk_musimi.xml <include> <user id="USERNAME"> <gateways> <gateway name="musimi.dk"> <param name="username" value="USERNAME"/> <param name="realm" value="musimi.dk"/> <param name="password" value="PASSWORD"/> <param name="register" value="true"/> </gateway> </gateways> <params> <param name="password" value="PASSWORD"/> </params> </user> </include> Directory/default/uk_sipgate.xml <include> <user id="USERNAME"> <gateways> <gateway name="sipgate.co.uk"> <param name="username" value="USERNAME"/> <param name="realm" value="sipgate.co.uk"/> <param name="proxy" value="sipgate.co.uk"/> <param name="password" value="PASSWORD"/> <param name="register" value="true"/> </gateway> </gateways> <params> <param name="password" value="PASSWORD"/> </params> </user> </include> Dialplan/extensions/dk_musimi.xml <extension name="Musimi_Out"> <condition field="destination_number" expression="^(0045)([0-9]{8})$"> <action application="set" data="effective_caller_id_name=NAME"/> <action application="set" data="effective_caller_id_number=46928525"/> <action application="bridge" data="sofia/gateway/musimi.dk/$2@musimi.dk"/> </condition> </extension> Dialplan/extensions/uk_sipgate.xml <extension name="Sipgate_Out"> <condition field="destination_number" expression="^(0044)([0-9]{12})$"> <action application="set" data="effective_caller_id_name=NAME"/> <action application="set" data="effective_caller_id_number=08709749281"/> <action application="bridge" data="sofia/gateway/sipgate.co.uk/$2@sipgate.co.uk"/> </condition> </extension> In dialplan/public.xml I have added: <extension name="Musimi_In"> <condition field="destination_number" expression="^46928525$"> <action application="set" data="call_timeout=20"/> <action application="bridge" data="user/1000@$${domain},user/1001@$${domain},user/1002@$${domain}"/> </condition> </extension> <extension name="Sipgate_In"> <condition field="destination_number" expression="^08709749281$"> <action application="set" data="call_timeout=20"/> <action application="bridge" data="user/1000@$${domain},user/1001@$${domain},user/1002@$${domain}"/> </condition> </extension> System is: OpenSuse 10.3 64 bit FreeSwitch RC6 (Same with RC5) /Sune
participants (1)
-
Sune Kristensen