you can always try using the internal profile unaltered. It's been known to work from behind nat just fine. The external profile is just there to demonstrate the stun feature. None of the default config is written in stone.<br>
<br><br><div class="gmail_quote">On Mon, Jul 14, 2008 at 5:34 AM, Tim Panton <<a href="mailto:thp@westhawk.co.uk">thp@westhawk.co.uk</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ha, think we cracked it.<br>
Looks like our FS really sulks if it can't get to a stun server.<br>
so even on an isolated net with firewalling NAT or external connections<br>
we still need to provide a stun service for the 'external' sip profile<br>
to work.<br>
<font color="#888888"><br>
Tim.<br>
</font><div><div></div><div class="Wj3C7c"><br>
On 10 Jul 2008, at 17:46, Birgit Arkesteijn wrote:<br>
<br>
> Hi guys,<br>
><br>
> I'm still struggling with this.<br>
><br>
> I've tried various things with the dialplan, see if that makes a<br>
> difference. I'll only show the bridge line:<br>
><br>
> ===== This is the one I was using originally:<br>
> <action application="bridge" data="sofia/gateway/doneright/1234"/><br>
><br>
> This should use the configuration in<br>
> /usr/local/freeswitch/conf/sip_profiles/external/doneright.xml<br>
> (see below)<br>
><br>
><br>
> ===== When I try not to use the gateway, but the 'internal' profile,<br>
> for<br>
> example:<br>
> <action application="bridge"<br>
> data="sofia/internal/<a href="mailto:1234@risk.westhawk.co.uk">1234@risk.westhawk.co.uk</a>"/><br>
><br>
> I see SIP INVITE packets from <a href="http://aspo.westhawk.co.uk" target="_blank">aspo.westhawk.co.uk</a> to<br>
> <a href="http://risk.westhawk.co.uk" target="_blank">risk.westhawk.co.uk</a><br>
><br>
> The call still fails, but at least something is happening.<br>
> It fails because of<br>
> 2008-07-10 17:32:24 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel<br>
> sofia/internal/<a href="mailto:apso@192.67.4.83">apso@192.67.4.83</a> hanging up, cause:<br>
> MANDATORY_IE_MISSING<br>
><br>
> (<a href="http://192.67.4.83" target="_blank">192.67.4.83</a> == <a href="http://risk.westhawk.co.uk" target="_blank">risk.westhawk.co.uk</a>)<br>
><br>
><br>
> ==== When I use the 'external' profile, for example:<br>
> <action application="bridge"<br>
> data="sofia/external/<a href="mailto:1234@risk.westhawk.co.uk">1234@risk.westhawk.co.uk</a>"/><br>
><br>
> No outbound SIP packets are sent.<br>
><br>
><br>
> Does anyone have a clue about this one, or how to investigate this<br>
> problem further?<br>
><br>
> Thanks, Birgit<br>
><br>
><br>
><br>
><br>
> On 09/07/08 12:25, Birgit Arkesteijn wrote:<br>
>> Hi,<br>
>><br>
>> I'm running FreeSWITCH Version 1.0.trunk (498:8901) on Suse 10.0<br>
>> (x86_64).<br>
>><br>
>> I'm a novice in setting up the configuration, so sorry if this is a<br>
>> trivial one.<br>
>><br>
>> I'm trying to get the following test setup to work:<br>
>> 1. SIP desktop phone<br>
>> 2. -> Asterisk on <a href="http://risk.westhawk.co.uk" target="_blank">risk.westhawk.co.uk</a><br>
>> 3. -> FreeSWITCH on <a href="http://apso.westhawk.co.uk" target="_blank">apso.westhawk.co.uk</a><br>
>> (using xml_curl to get a dialplan)<br>
>> 4. -> Asterisk on <a href="http://risk.westhawk.co.uk" target="_blank">risk.westhawk.co.uk</a><br>
>> 5. -> another SIP desktop phone<br>
>><br>
>> I'm fine up to (and including) step 3:<br>
>> - I can see the incoming call<br>
>> - I can see the dialplan being accessed<br>
>> - I can see the dialplan being matched<br>
>> - I can see from the freeswitch log it's trying to bridge<br>
>><br>
>> I'm stuck going to step 4:<br>
>> - I cannot see any SIP packets going out back to risk<br>
>><br>
>> We checked our firewall log files, but no packets are dropped to risk<br>
>> (as far as we can tell).<br>
>><br>
>> What I've configured is:<br>
>> - a user in directory/ so the incoming call works<br>
>> - an external gateway, called 'doneright', for the outgoing leg<br>
>><br>
>> Below are<br>
>> - snippets from the freeswitch.log file,<br>
>> - some 'sofia status' commands on the console,<br>
>> - the content of my doneright.xml external gateway file<br>
>><br>
>> The 'doneright' gateway doesn't currently register at risk, because<br>
>> we<br>
>> don't think we need to.<br>
>> When we omitted the 'register' setting by accident in the<br>
>> doneright.xml<br>
>> file, we noticed sip registration requests coming in at risk.<br>
>><br>
>> I'm very puzzled by this all. On a different machine, we've done SIP<br>
>> routing to an external (then called 'outbound') SIP provider<br>
>> without a<br>
>> problem.<br>
>><br>
>> Does anyone have a clue or some pointers how I can approach this<br>
>> problem?<br>
>><br>
>> Thanks, Birgit<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> *** Freeswitch log file:<br>
>> * (incoming call):<br>
>> 2008-07-09 11:36:00 [NOTICE] sofia.c:1514 config_sofia() Adding Alias<br>
>> [<a href="http://apso.westhawk.co.uk" target="_blank">apso.westhawk.co.uk</a>] for profile [internal]<br>
>><br>
>> 2008-07-09 11:46:24 [NOTICE] switch_channel.c:534<br>
>> switch_channel_set_name() New Channel<br>
>> sofia/internal/<a href="mailto:apso@192.67.4.83">apso@192.67.4.83</a>[466eaeee-4da4-11dd-b14f-7bc0d4e408b2]<br>
>><br>
>> 2008-07-09 11:46:24 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()<br>
>> Channel sofia/internal/<a href="mailto:apso@192.67.4.83">apso@192.67.4.83</a> entering state [received]<br>
>><br>
>><br>
>> * (dialplan):<br>
>> 2008-07-09 11:35:34 [NOTICE] mod_xml_curl.c:300 do_config() Binding<br>
>> [doneright-voipuri] XML Fetch Function<br>
>> [<a href="http://apso.westhawk.co.uk/test_dialplan/static_dialplan.xml" target="_blank">http://apso.westhawk.co.uk/test_dialplan/static_dialplan.xml</a>]<br>
>> [dialplan]<br>
>><br>
>> 2008-07-09 11:46:24 [INFO] mod_dialplan_xml.c:222 dialplan_hunt()<br>
>> Processing Birgit Arkesteijn->801@default<br>
>><br>
>> 2008-07-09 11:46:24 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test<br>
>> conditions destination_number(801) =~ /^801$/<br>
>><br>
>> * (bridge):<br>
>> 2008-07-09 11:46:24 [DEBUG] switch_core_state_machine.c:140<br>
>> switch_core_standard_on_execute() sofia/internal/<a href="mailto:apso@192.67.4.83">apso@192.67.4.83</a><br>
>> Execute bridge(sofia/gateway/doneright/1234)<br>
>><br>
>> * (external gateway):<br>
>> 2008-07-09 11:46:24 [NOTICE] switch_channel.c:534<br>
>> switch_channel_set_name()<br>
>> New Channel sofia/external/1234 [467a1040-4da4-11dd-<br>
>> b14f-7bc0d4e408b2]<br>
>><br>
>> 2008-07-09 11:46:24 [DEBUG] mod_sofia.c:1870 sofia_outgoing_channel()<br>
>> sofia/external/1234 State Change CS_NEW -> CS_INIT<br>
>><br>
>> 2008-07-09 11:46:24 [DEBUG] switch_core_session.c:720<br>
>> switch_core_session_signal_state_change() Kill sofia/external/1234<br>
>> [BREAK]<br>
>><br>
>> 2008-07-09 11:46:24 [DEBUG] switch_core_state_machine.c:365<br>
>> switch_core_session_run() sofia/external/1234 Running State Change<br>
>> CS_INIT<br>
>><br>
>> 2008-07-09 11:46:24 [DEBUG] switch_core_state_machine.c:415<br>
>> switch_core_session_run() (sofia/external/1234) State INIT<br>
>><br>
>> 2008-07-09 11:46:24 [DEBUG] mod_sofia.c:80 sofia_on_init()<br>
>> sofia/external/1234 SOFIA INIT<br>
>><br>
>> 2008-07-09 11:46:44 [DEBUG] sofia.c:194 sofia_event_callback() event<br>
>> [nua_i_state] status [487][Request Terminated] session:<br>
>> sofia/internal/<a href="mailto:apso@192.67.4.83">apso@192.67.4.83</a><br>
>><br>
>><br>
>><br>
>><br>
>> *** Console:<br>
>>> sofia status<br>
>> API CALL [sofia(status)] output:<br>
>> Name Type<br>
>> Data State<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =====================================================================<br>
>> external profile <a href="http://sip:mod_sofia@192.67.4.56:5080" target="_blank">sip:mod_sofia@192.67.4.56:5080</a><br>
>> RUNNING (0)<br>
>> internal profile <a href="http://sip:mod_sofia@192.67.4.56:5060" target="_blank">sip:mod_sofia@192.67.4.56:5060</a><br>
>> RUNNING (0)<br>
>> nat profile <a href="http://sip:mod_sofia@192.67.4.56:5070" target="_blank">sip:mod_sofia@192.67.4.56:5070</a><br>
>> RUNNING (0)<br>
>> doneright gateway <a href="mailto:sip%3Aapso@risk.westhawk.co.uk">sip:apso@risk.westhawk.co.uk</a> NOREG<br>
>> default alias internal ALIASED<br>
>> <a href="http://apso.westhawk.co.uk" target="_blank">apso.westhawk.co.uk</a> alias internal ALIASED<br>
>> outbound alias external ALIASED<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =====================================================================<br>
>> 3 profiles 3 aliases<br>
>><br>
>><br>
>>> sofia status profile external<br>
>> API CALL [sofia(status profile external)] output:<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =====================================================================<br>
>> Name external<br>
>> Domain Name external<br>
>> DBName sofia_reg_external<br>
>> Dialplan XML<br>
>> RTP-IP <a href="http://192.67.4.56" target="_blank">192.67.4.56</a><br>
>> Ext-RTP-IP stun:<a href="http://stun.freeswitch.org" target="_blank">stun.freeswitch.org</a><br>
>> SIP-IP <a href="http://192.67.4.56" target="_blank">192.67.4.56</a><br>
>> Ext-SIP-IP <a href="http://192.67.4.56" target="_blank">192.67.4.56</a><br>
>> URL <a href="http://sip:mod_sofia@192.67.4.56:5080" target="_blank">sip:mod_sofia@192.67.4.56:5080</a><br>
>> BIND-URL sip:mod_sofia@192.67.4.56:5080;maddr=<a href="http://192.67.4.56" target="_blank">192.67.4.56</a><br>
>> HOLD-MUSIC local_stream://moh<br>
>> CODECS PCMU,PCMA,GSM<br>
>> TEL-EVENT 101<br>
>> CNG 13<br>
>> SESSION-TO 0<br>
>> MAX-DIALOG 0<br>
>><br>
>> Registrations:<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =====================================================================<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =====================================================================<br>
>><br>
>><br>
>>> sofia status gateway doneright<br>
>> API CALL [sofia(status gateway doneright)] output:<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =====================================================================<br>
>> Name doneright<br>
>> Scheme Digest<br>
>> Realm <a href="http://risk.westhawk.co.uk" target="_blank">risk.westhawk.co.uk</a><br>
>> Username apso<br>
>> Password yes<br>
>> From <<a href="mailto:sip%3Aapso@risk.westhawk.co.uk">sip:apso@risk.westhawk.co.uk</a>;transport=udp><br>
>> Contact <sip:apso@192.67.4.56:5080;transport=udp><br>
>> To <a href="mailto:sip%3Aapso@risk.westhawk.co.uk">sip:apso@risk.westhawk.co.uk</a><br>
>> Proxy sip:<a href="http://risk.westhawk.co.uk" target="_blank">risk.westhawk.co.uk</a><br>
>> Context default<br>
>> Expires 600<br>
>> Freq 598<br>
>> Ping 0<br>
>> PingFreq 0<br>
>> State NOREG<br>
>> Status UP<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =<br>
>> =====================================================================<br>
>><br>
>><br>
>> *** /usr/local/freeswitch/conf/sip_profiles/external/doneright.xml:<br>
>> <include><br>
>> <gateway name="doneright"><br>
>> <param name="username" value="apso"/><br>
>> <param name="password" value="xxxxxxx"/><br>
>> <param name="realm" value="<a href="http://risk.westhawk.co.uk" target="_blank">risk.westhawk.co.uk</a>"/><br>
>> <param name="proxy" value="<a href="http://risk.westhawk.co.uk" target="_blank">risk.westhawk.co.uk</a>"/><br>
>> <param name="register" value="false"/><br>
>> <param name="expire-seconds" value="600"/><br>
>> </gateway><br>
>> </include><br>
>><br>
>><br>
>><br>
><br>
> --<br>
> -- Birgit Arkesteijn, <a href="mailto:birgit@westhawk.co.uk">birgit@westhawk.co.uk</a>,<br>
> -- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK<br>
> -- Company no: 1769350<br>
> -- Registered Office:<br>
> -- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.<br>
> -- tel.: +44 (0)161 237 0660<br>
> -- <URL: <a href="http://www.westhawk.co.uk" target="_blank">http://www.westhawk.co.uk</a>><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400