Hi, I'm running FreeSWITCH Version 1.0.trunk (498:8901) on Suse 10.0 (x86_64). I'm a novice in setting up the configuration, so sorry if this is a trivial one. I'm trying to get the following test setup to work: 1. SIP desktop phone 2. -> Asterisk on risk.westhawk.co.uk 3. -> FreeSWITCH on apso.westhawk.co.uk (using xml_curl to get a dialplan) 4. -> Asterisk on risk.westhawk.co.uk 5. -> another SIP desktop phone I'm fine up to (and including) step 3: - I can see the incoming call - I can see the dialplan being accessed - I can see the dialplan being matched - I can see from the freeswitch log it's trying to bridge I'm stuck going to step 4: - I cannot see any SIP packets going out back to risk We checked our firewall log files, but no packets are dropped to risk (as far as we can tell). What I've configured is: - a user in directory/ so the incoming call works - an external gateway, called 'doneright', for the outgoing leg Below are - snippets from the freeswitch.log file, - some 'sofia status' commands on the console, - the content of my doneright.xml external gateway file The 'doneright' gateway doesn't currently register at risk, because we don't think we need to. When we omitted the 'register' setting by accident in the doneright.xml file, we noticed sip registration requests coming in at risk. I'm very puzzled by this all. On a different machine, we've done SIP routing to an external (then called 'outbound') SIP provider without a problem. Does anyone have a clue or some pointers how I can approach this problem? Thanks, Birgit *** Freeswitch log file: * (incoming call): 2008-07-09 11:36:00 [NOTICE] sofia.c:1514 config_sofia() Adding Alias [apso.westhawk.co.uk] for profile [internal] 2008-07-09 11:46:24 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/apso@192.67.4.83[466eaeee-4da4-11dd-b14f-7bc0d4e408b2] 2008-07-09 11:46:24 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state() Channel sofia/internal/apso@192.67.4.83 entering state [received] * (dialplan): 2008-07-09 11:35:34 [NOTICE] mod_xml_curl.c:300 do_config() Binding [doneright-voipuri] XML Fetch Function [http://apso.westhawk.co.uk/test_dialplan/static_dialplan.xml][dialplan] 2008-07-09 11:46:24 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing Birgit Arkesteijn->801@default 2008-07-09 11:46:24 [DEBUG] mod_dialplan_xml.c:107 parse_exten() test conditions destination_number(801) =~ /^801$/ * (bridge): 2008-07-09 11:46:24 [DEBUG] switch_core_state_machine.c:140 switch_core_standard_on_execute() sofia/internal/apso@192.67.4.83 Execute bridge(sofia/gateway/doneright/1234) * (external gateway): 2008-07-09 11:46:24 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/external/1234 [467a1040-4da4-11dd-b14f-7bc0d4e408b2] 2008-07-09 11:46:24 [DEBUG] mod_sofia.c:1870 sofia_outgoing_channel() sofia/external/1234 State Change CS_NEW -> CS_INIT 2008-07-09 11:46:24 [DEBUG] switch_core_session.c:720 switch_core_session_signal_state_change() Kill sofia/external/1234 [BREAK] 2008-07-09 11:46:24 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() sofia/external/1234 Running State Change CS_INIT 2008-07-09 11:46:24 [DEBUG] switch_core_state_machine.c:415 switch_core_session_run() (sofia/external/1234) State INIT 2008-07-09 11:46:24 [DEBUG] mod_sofia.c:80 sofia_on_init() sofia/external/1234 SOFIA INIT 2008-07-09 11:46:44 [DEBUG] sofia.c:194 sofia_event_callback() event [nua_i_state] status [487][Request Terminated] session: sofia/internal/apso@192.67.4.83 *** Console:
sofia status API CALL [sofia(status)] output: Name Type Data State ========================================================================== external profile sip:mod_sofia@192.67.4.56:5080 RUNNING (0) internal profile sip:mod_sofia@192.67.4.56:5060 RUNNING (0) nat profile sip:mod_sofia@192.67.4.56:5070 RUNNING (0) doneright gateway sip:apso@risk.westhawk.co.uk NOREG default alias internal ALIASED apso.westhawk.co.uk alias internal ALIASED outbound alias external ALIASED ========================================================================== 3 profiles 3 aliases
sofia status profile external API CALL [sofia(status profile external)] output: ========================================================================== Name external Domain Name external DBName sofia_reg_external Dialplan XML RTP-IP 192.67.4.56 Ext-RTP-IP stun:stun.freeswitch.org SIP-IP 192.67.4.56 Ext-SIP-IP 192.67.4.56 URL sip:mod_sofia@192.67.4.56:5080 BIND-URL sip:mod_sofia@192.67.4.56:5080;maddr=192.67.4.56 HOLD-MUSIC local_stream://moh CODECS PCMU,PCMA,GSM TEL-EVENT 101 CNG 13 SESSION-TO 0 MAX-DIALOG 0
Registrations: ========================================================================== ==========================================================================
sofia status gateway doneright API CALL [sofia(status gateway doneright)] output: ========================================================================== Name doneright Scheme Digest Realm risk.westhawk.co.uk Username apso Password yes From <sip:apso@risk.westhawk.co.uk;transport=udp> Contact <sip:apso@192.67.4.56:5080;transport=udp> To sip:apso@risk.westhawk.co.uk Proxy sip:risk.westhawk.co.uk Context default Expires 600 Freq 598 Ping 0 PingFreq 0 State NOREG Status UP ==========================================================================
*** /usr/local/freeswitch/conf/sip_profiles/external/doneright.xml: <include> <gateway name="doneright"> <param name="username" value="apso"/> <param name="password" value="xxxxxxx"/> <param name="realm" value="risk.westhawk.co.uk"/> <param name="proxy" value="risk.westhawk.co.uk"/> <param name="register" value="false"/> <param name="expire-seconds" value="600"/> </gateway> </include> -- -- Birgit Arkesteijn, birgit@westhawk.co.uk, -- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK -- Company no: 1769350 -- Registered Office: -- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK. -- tel.: +44 (0)161 237 0660 -- <URL: http://www.westhawk.co.uk>