outbound sip call: NO_USER_RESPONSE
I'm trying to make a sip call using Gizmo. I set up the profile as specified here <http://wiki.freeswitch.org/wiki/Provider_Configuration:_Gizmo> and dropped it into /conf/sip_profiles/external/. I can see that the profile is registered when I check sofia status from CLI: Name Type Data State ================================================================================================= ... external::gizmo gateway sip:otalo@proxy01.sipphone.com<sip%3Aotalo@proxy01.sipphone.com> REGED ... ================================================================================================= On a call event, I invoke the lua commands: sessiondata = "sofia/gateway/gizmo/<num>" new_session = freeswitch.Session(sessiondata)
From this I'm getting a NO_USER_RESPONSE error:
2010-04-21 11:31:16.169900 [DEBUG] sofia.c:4153 Channel sofia/internal/ 1234@conference.freeswitch.org entering state [terminated][480] 2010-04-21 11:31:16.169900 [NOTICE] sofia.c:4789 Hangup sofia/internal/ 1234@conference.freeswitch.org [CS_CONSUME_MEDIA] [NO_USER_RESPONSE] 2010-04-21 11:31:16.169900 [DEBUG] switch_channel.c:2071 Send signal sofia/internal/1234@conference.freeswitch.org [KILL] 2010-04-21 11:31:16.169900 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1234@conference.freeswitch.org [BREAK] 2010-04-21 11:31:16.169900 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1234@conference.freeswitch.org) Running State Change CS_HANGUP 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/1234@conference.freeswitch.org) State HANGUP 2010-04-21 11:31:16.170748 [DEBUG] mod_sofia.c:408 sofia/internal/ 1234@conference.freeswitch.org Overriding SIP cause 408 with 480 from the other leg 2010-04-21 11:31:16.170748 [DEBUG] mod_sofia.c:414 Channel sofia/internal/ 1234@conference.freeswitch.org hanging up, cause: NO_USER_RESPONSE 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:46 sofia/internal/1234@conference.freeswitch.org Standard HANGUP, cause: NO_USER_RESPONSE 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/1234@conference.freeswitch.org) State HANGUP going to sleep 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:333 (sofia/internal/1234@conference.freeswitch.org) State Change CS_HANGUP -> CS_REPORTING 2010-04-21 11:31:16.170748 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1234@conference.freeswitch.org [BREAK] 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1234@conference.freeswitch.org) Running State Change CS_REPORTING 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1234@conference.freeswitch.org) State REPORTING 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:53 sofia/internal/1234@conference.freeswitch.org Standard REPORTING, cause: NO_USER_RESPONSE 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1234@conference.freeswitch.org) State REPORTING going to sleep 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:327 (sofia/internal/1234@conference.freeswitch.org) State Change CS_REPORTING -> CS_DESTROY 2010-04-21 11:31:16.171750 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1234@conference.freeswitch.org [BREAK] 2010-04-21 11:31:16.171750 [DEBUG] switch_core_session.c:1161 Session 4 (sofia/internal/1234@conference.freeswitch.org) Locked, Waiting on external entities 2010-04-21 11:31:16.177790 [DEBUG] switch_ivr_originate.c:3228 Originate Resulted in Error Cause: 18 [NO_USER_RESPONSE] *2010-04-21 11:31:16.177790 [ERR] mod_conference.c:4563 Cannot create outgoing channel, cause: NO_USER_RESPONSE* 2010-04-21 11:31:16.177790 [NOTICE] mod_conference.c:4566 Hangup sofia/internal/1001@server.IP [CS_EXECUTE] [NO_USER_RESPONSE] 2010-04-21 11:31:16.177790 [NOTICE] switch_core_session.c:1179 Session 4 (sofia/internal/1234@conference.freeswitch.org) Ended 2010-04-21 11:31:16.177790 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1234@conference.freeswitch.org [CS_DESTROY] 2010-04-21 11:31:16.177790 [DEBUG] switch_core_state_machine.c:428 (sofia/internal/1234@conference.freeswitch.org) Running State Change CS_DESTROY 2010-04-21 11:31:16.177790 [DEBUG] switch_channel.c:2071 Send signal sofia/internal/1001@server.IP [KILL] 2010-04-21 11:31:16.177790 [DEBUG] switch_core_state_machine.c:439 (sofia/internal/1234@conference.freeswitch.org) State DESTROY 2010-04-21 11:31:16.177790 [DEBUG] mod_sofia.c:341 sofia/internal/ 1234@conference.freeswitch.org SOFIA DESTROY 2010-04-21 11:31:16.177790 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1001@server.IP [BREAK] Strangely, I get the same error even if I put in some arbitrary gateway name in the lua code, so it seems like possibly the profile isn't being properly read. I also thought that perhaps I should be using "sofia/gateway/external::gizmo/<num>" instead of "../gizmo/..", but that didn't seem to work. I haven't made any other changes to conf files, though perhaps I'm missing something? Thanks in advance, Neil
On Wed, Apr 21, 2010 at 3:10 PM, Neil Patel <neilp@cs.stanford.edu> wrote:
I'm trying to make a sip call using Gizmo. I set up the profile as specified here<http://wiki.freeswitch.org/wiki/Provider_Configuration:_Gizmo>and dropped it into /conf/sip_profiles/external/. I can see that the profile is registered when I check sofia status from CLI: Name Type Data State
================================================================================================= ... external::gizmo gateway sip:otalo@proxy01.sipphone.com<sip%3Aotalo@proxy01.sipphone.com> REGED ...
=================================================================================================
On a call event, I invoke the lua commands:
sessiondata = "sofia/gateway/gizmo/<num>" new_session = freeswitch.Session(sessiondata)
What happens if you do something like this at the CLI: originate sofia/gateway/gizmo/<num> <target ext>
Be sure to turn on sip trace for the external profile to see if anything interesting is happening. -MC
From this I'm getting a NO_USER_RESPONSE error:
2010-04-21 11:31:16.169900 [DEBUG] sofia.c:4153 Channel sofia/internal/ 1234@conference.freeswitch.org entering state [terminated][480] 2010-04-21 11:31:16.169900 [NOTICE] sofia.c:4789 Hangup sofia/internal/ 1234@conference.freeswitch.org [CS_CONSUME_MEDIA] [NO_USER_RESPONSE] 2010-04-21 11:31:16.169900 [DEBUG] switch_channel.c:2071 Send signal sofia/internal/1234@conference.freeswitch.org [KILL] 2010-04-21 11:31:16.169900 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1234@conference.freeswitch.org [BREAK] 2010-04-21 11:31:16.169900 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1234@conference.freeswitch.org) Running State Change CS_HANGUP 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/1234@conference.freeswitch.org) State HANGUP 2010-04-21 11:31:16.170748 [DEBUG] mod_sofia.c:408 sofia/internal/ 1234@conference.freeswitch.org Overriding SIP cause 408 with 480 from the other leg 2010-04-21 11:31:16.170748 [DEBUG] mod_sofia.c:414 Channel sofia/internal/ 1234@conference.freeswitch.org hanging up, cause: NO_USER_RESPONSE 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:46 sofia/internal/1234@conference.freeswitch.org Standard HANGUP, cause: NO_USER_RESPONSE 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/1234@conference.freeswitch.org) State HANGUP going to sleep 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:333 (sofia/internal/1234@conference.freeswitch.org) State Change CS_HANGUP -> CS_REPORTING 2010-04-21 11:31:16.170748 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1234@conference.freeswitch.org [BREAK] 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1234@conference.freeswitch.org) Running State Change CS_REPORTING 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1234@conference.freeswitch.org) State REPORTING 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:53 sofia/internal/1234@conference.freeswitch.org Standard REPORTING, cause: NO_USER_RESPONSE 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1234@conference.freeswitch.org) State REPORTING going to sleep 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:327 (sofia/internal/1234@conference.freeswitch.org) State Change CS_REPORTING -> CS_DESTROY 2010-04-21 11:31:16.171750 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1234@conference.freeswitch.org [BREAK] 2010-04-21 11:31:16.171750 [DEBUG] switch_core_session.c:1161 Session 4 (sofia/internal/1234@conference.freeswitch.org) Locked, Waiting on external entities 2010-04-21 11:31:16.177790 [DEBUG] switch_ivr_originate.c:3228 Originate Resulted in Error Cause: 18 [NO_USER_RESPONSE] *2010-04-21 11:31:16.177790 [ERR] mod_conference.c:4563 Cannot create outgoing channel, cause: NO_USER_RESPONSE* 2010-04-21 11:31:16.177790 [NOTICE] mod_conference.c:4566 Hangup sofia/internal/1001@server.IP [CS_EXECUTE] [NO_USER_RESPONSE] 2010-04-21 11:31:16.177790 [NOTICE] switch_core_session.c:1179 Session 4 (sofia/internal/1234@conference.freeswitch.org) Ended 2010-04-21 11:31:16.177790 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1234@conference.freeswitch.org [CS_DESTROY] 2010-04-21 11:31:16.177790 [DEBUG] switch_core_state_machine.c:428 (sofia/internal/1234@conference.freeswitch.org) Running State Change CS_DESTROY 2010-04-21 11:31:16.177790 [DEBUG] switch_channel.c:2071 Send signal sofia/internal/1001@server.IP [KILL] 2010-04-21 11:31:16.177790 [DEBUG] switch_core_state_machine.c:439 (sofia/internal/1234@conference.freeswitch.org) State DESTROY 2010-04-21 11:31:16.177790 [DEBUG] mod_sofia.c:341 sofia/internal/ 1234@conference.freeswitch.org SOFIA DESTROY 2010-04-21 11:31:16.177790 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1001@server.IP [BREAK]
Strangely, I get the same error even if I put in some arbitrary gateway name in the lua code, so it seems like possibly the profile isn't being properly read. I also thought that perhaps I should be using "sofia/gateway/external::gizmo/<num>" instead of "../gizmo/..", but that didn't seem to work. I haven't made any other changes to conf files, though perhaps I'm missing something?
Thanks in advance, Neil
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hey Michael, What happens if you do something like this at the CLI:
originate sofia/gateway/gizmo/<num> <target ext>
This works! Although I got "command not found" when I did this from fs_cli... why's that?
Be sure to turn on sip trace for the external profile to see if anything interesting is happening.
Weird. When I execute: sofia profile gizmo siptrace on I get: Invalid Profile [gizmo] This is the contents of /freeswitch/conf/sip_profiles/external/gizmo.xml: <include> <gateway name="gizmo"> <param name="username" value=UNAME/> <param name="realm" value="proxy01.sipphone.com"/> <param name="from-user" value=UNAME/> <param name="from-domain" value="proxy01.sipphone.com"/> <param name="password" value=PWD/> <param name="caller-id-in-from" value="false"/> <param name="extension" value="cluecon"/> <param name="proxy" value="proxy01.sipphone.com"/> <param name="register-proxy" value="proxy01.sipphone.com"/> <param name="expire-seconds" value="3600"/> <param name="register" value="true"/> <param name="register-transport" value="udp"/> <param name="retry_seconds" value="30"/> <param name="caller-id-in-from" value="false"/> </gateway> </include> -Neil -MC
From this I'm getting a NO_USER_RESPONSE error:
2010-04-21 11:31:16.169900 [DEBUG] sofia.c:4153 Channel sofia/internal/ 1234@conference.freeswitch.org entering state [terminated][480] 2010-04-21 11:31:16.169900 [NOTICE] sofia.c:4789 Hangup sofia/internal/ 1234@conference.freeswitch.org [CS_CONSUME_MEDIA] [NO_USER_RESPONSE] 2010-04-21 11:31:16.169900 [DEBUG] switch_channel.c:2071 Send signal sofia/internal/1234@conference.freeswitch.org [KILL] 2010-04-21 11:31:16.169900 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1234@conference.freeswitch.org [BREAK] 2010-04-21 11:31:16.169900 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1234@conference.freeswitch.org) Running State Change CS_HANGUP 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/1234@conference.freeswitch.org) State HANGUP 2010-04-21 11:31:16.170748 [DEBUG] mod_sofia.c:408 sofia/internal/ 1234@conference.freeswitch.org Overriding SIP cause 408 with 480 from the other leg 2010-04-21 11:31:16.170748 [DEBUG] mod_sofia.c:414 Channel sofia/internal/ 1234@conference.freeswitch.org hanging up, cause: NO_USER_RESPONSE 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:46 sofia/internal/1234@conference.freeswitch.org Standard HANGUP, cause: NO_USER_RESPONSE 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/1234@conference.freeswitch.org) State HANGUP going to sleep 2010-04-21 11:31:16.170748 [DEBUG] switch_core_state_machine.c:333 (sofia/internal/1234@conference.freeswitch.org) State Change CS_HANGUP -> CS_REPORTING 2010-04-21 11:31:16.170748 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1234@conference.freeswitch.org [BREAK] 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:314 (sofia/internal/1234@conference.freeswitch.org) Running State Change CS_REPORTING 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1234@conference.freeswitch.org) State REPORTING 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:53 sofia/internal/1234@conference.freeswitch.org Standard REPORTING, cause: NO_USER_RESPONSE 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:590 (sofia/internal/1234@conference.freeswitch.org) State REPORTING going to sleep 2010-04-21 11:31:16.171750 [DEBUG] switch_core_state_machine.c:327 (sofia/internal/1234@conference.freeswitch.org) State Change CS_REPORTING -> CS_DESTROY 2010-04-21 11:31:16.171750 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1234@conference.freeswitch.org [BREAK] 2010-04-21 11:31:16.171750 [DEBUG] switch_core_session.c:1161 Session 4 (sofia/internal/1234@conference.freeswitch.org) Locked, Waiting on external entities 2010-04-21 11:31:16.177790 [DEBUG] switch_ivr_originate.c:3228 Originate Resulted in Error Cause: 18 [NO_USER_RESPONSE] *2010-04-21 11:31:16.177790 [ERR] mod_conference.c:4563 Cannot create outgoing channel, cause: NO_USER_RESPONSE* 2010-04-21 11:31:16.177790 [NOTICE] mod_conference.c:4566 Hangup sofia/internal/1001@server.IP [CS_EXECUTE] [NO_USER_RESPONSE] 2010-04-21 11:31:16.177790 [NOTICE] switch_core_session.c:1179 Session 4 (sofia/internal/1234@conference.freeswitch.org) Ended 2010-04-21 11:31:16.177790 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1234@conference.freeswitch.org [CS_DESTROY] 2010-04-21 11:31:16.177790 [DEBUG] switch_core_state_machine.c:428 (sofia/internal/1234@conference.freeswitch.org) Running State Change CS_DESTROY 2010-04-21 11:31:16.177790 [DEBUG] switch_channel.c:2071 Send signal sofia/internal/1001@server.IP [KILL] 2010-04-21 11:31:16.177790 [DEBUG] switch_core_state_machine.c:439 (sofia/internal/1234@conference.freeswitch.org) State DESTROY 2010-04-21 11:31:16.177790 [DEBUG] mod_sofia.c:341 sofia/internal/ 1234@conference.freeswitch.org SOFIA DESTROY 2010-04-21 11:31:16.177790 [DEBUG] switch_core_session.c:1018 Send signal sofia/internal/1001@server.IP [BREAK]
Strangely, I get the same error even if I put in some arbitrary gateway name in the lua code, so it seems like possibly the profile isn't being properly read. I also thought that perhaps I should be using "sofia/gateway/external::gizmo/<num>" instead of "../gizmo/..", but that didn't seem to work. I haven't made any other changes to conf files, though perhaps I'm missing something?
Thanks in advance, Neil
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
gizmo is your gateway. siptrace is by profile. sofia status in the cli will list your profiles/gateways (default cfgs use internal/external) so in that case sofia profile external siptrace on
Thanks for clarifying. Here's the output (with siptrace on) when trying to dial out over the gateway: 2010-04-22 15:13:10.104866 [NOTICE] switch_channel.c:669 New Channel sofia/internal/1001@server.com [a6aac86b-4a40-41f3-8968-f9b37501483a] 2010-04-22 15:13:10.112850 [INFO] mod_dialplan_xml.c:418 Processing neilp->5001 in context default 2010-04-22 15:13:10.120874 [INFO] switch_core_session.c:1750 Sending early media 2010-04-22 15:13:10.122856 [NOTICE] mod_sofia.c:1907 Pre-Answer sofia/internal/1001@server.com! 2010-04-22 15:13:10.123810 [NOTICE] switch_channel.c:669 New Channel sofia/internal/1234@conference.freeswitch.org[af13cf37-eb6a-4e9f-b1cc-366b6a24aec5] 2010-04-22 15:13:10.386879 [INFO] switch_rtp.c:2049 Auto Changing port from IP1 to IP2 2010-04-22 15:13:10.697870 [NOTICE] sofia.c:4789 Hangup sofia/internal/ 1234@conference.freeswitch.org [CS_CONSUME_MEDIA] [NO_USER_RESPONSE] 2010-04-22 15:13:10.706880 [ERR] mod_conference.c:4563 Cannot create outgoing channel, cause: NO_USER_RESPONSE 2010-04-22 15:13:10.706880 [NOTICE] mod_conference.c:4566 Hangup sofia/internal/1001@server.com [CS_EXECUTE] [NO_USER_RESPONSE] 2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1179 Session 2 (sofia/internal/1234@conference.freeswitch.org) Ended 2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1234@conference.freeswitch.org [CS_DESTROY] 2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1179 Session 1 (sofia/internal/1001@server.com) Ended 2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1001@server.com [CS_DESTROY] In case it is relevant, the call is triggered in a lua script which is executed by dialing a extension 5001. The dialplan in freeswitch/conf/dialplan/default/5001_gizmo.xml: <extension name="gizmo"> <condition field="destination_number" expression="^5001$"> <action application="lua" data="makecall.lua"/> </condition> </extension> makecall.lua: function make_call() sessiondata = "sofia/gateway/gizmo/<num>" new_session = freeswitch.Session(sessiondata) end make_call() On Thu, Apr 22, 2010 at 2:58 PM, William Suffill <william.suffill@gmail.com>wrote:
gizmo is your gateway.
siptrace is by profile.
sofia status in the cli will list your profiles/gateways (default cfgs use internal/external)
so in that case sofia profile external siptrace on _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
There's no siptrace in that... On 22 April 2010 23:16, Neil Patel <neilp@cs.stanford.edu> wrote:
Thanks for clarifying. Here's the output (with siptrace on) when trying to dial out over the gateway: 2010-04-22 15:13:10.104866 [NOTICE] switch_channel.c:669 New Channel sofia/internal/1001@server.com [a6aac86b-4a40-41f3-8968-f9b37501483a] 2010-04-22 15:13:10.112850 [INFO] mod_dialplan_xml.c:418 Processing neilp->5001 in context default 2010-04-22 15:13:10.120874 [INFO] switch_core_session.c:1750 Sending early media 2010-04-22 15:13:10.122856 [NOTICE] mod_sofia.c:1907 Pre-Answer sofia/internal/1001@server.com! 2010-04-22 15:13:10.123810 [NOTICE] switch_channel.c:669 New Channel sofia/internal/1234@conference.freeswitch.org [af13cf37-eb6a-4e9f-b1cc-366b6a24aec5] 2010-04-22 15:13:10.386879 [INFO] switch_rtp.c:2049 Auto Changing port from IP1 to IP2 2010-04-22 15:13:10.697870 [NOTICE] sofia.c:4789 Hangup sofia/internal/1234@conference.freeswitch.org [CS_CONSUME_MEDIA] [NO_USER_RESPONSE] 2010-04-22 15:13:10.706880 [ERR] mod_conference.c:4563 Cannot create outgoing channel, cause: NO_USER_RESPONSE 2010-04-22 15:13:10.706880 [NOTICE] mod_conference.c:4566 Hangup sofia/internal/1001@server.com [CS_EXECUTE] [NO_USER_RESPONSE] 2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1179 Session 2 (sofia/internal/1234@conference.freeswitch.org) Ended 2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1234@conference.freeswitch.org [CS_DESTROY] 2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1179 Session 1 (sofia/internal/1001@server.com) Ended 2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1001@server.com [CS_DESTROY]
In case it is relevant, the call is triggered in a lua script which is executed by dialing a extension 5001. The dialplan in freeswitch/conf/dialplan/default/5001_gizmo.xml: <extension name="gizmo"> <condition field="destination_number" expression="^5001$"> <action application="lua" data="makecall.lua"/> </condition> </extension> makecall.lua: function make_call() sessiondata = "sofia/gateway/gizmo/<num>" new_session = freeswitch.Session(sessiondata) end make_call()
On Thu, Apr 22, 2010 at 2:58 PM, William Suffill <william.suffill@gmail.com> wrote:
gizmo is your gateway.
siptrace is by profile.
sofia status in the cli will list your profiles/gateways (default cfgs use internal/external)
so in that case sofia profile external siptrace on _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
neil, in makecall.lua, you're creating a new session. don't. when makecall.lua is called, it's already in a session. try this one: session:execute("bridge","sessiondata") for flexibility, it's better to pass the URI to the lua script at the dialplan. -nandy On Fri, Apr 23, 2010 at 6:16 AM, Neil Patel <neilp@cs.stanford.edu> wrote:
Thanks for clarifying.
Here's the output (with siptrace on) when trying to dial out over the gateway:
2010-04-22 15:13:10.104866 [NOTICE] switch_channel.c:669 New Channel sofia/internal/1001@server.com [a6aac86b-4a40-41f3-8968-f9b37501483a] 2010-04-22 15:13:10.112850 [INFO] mod_dialplan_xml.c:418 Processing neilp->5001 in context default 2010-04-22 15:13:10.120874 [INFO] switch_core_session.c:1750 Sending early media 2010-04-22 15:13:10.122856 [NOTICE] mod_sofia.c:1907 Pre-Answer sofia/internal/1001@server.com! 2010-04-22 15:13:10.123810 [NOTICE] switch_channel.c:669 New Channel sofia/internal/1234@conference.freeswitch.org[af13cf37-eb6a-4e9f-b1cc-366b6a24aec5] 2010-04-22 15:13:10.386879 [INFO] switch_rtp.c:2049 Auto Changing port from IP1 to IP2 2010-04-22 15:13:10.697870 [NOTICE] sofia.c:4789 Hangup sofia/internal/ 1234@conference.freeswitch.org [CS_CONSUME_MEDIA] [NO_USER_RESPONSE] 2010-04-22 15:13:10.706880 [ERR] mod_conference.c:4563 Cannot create outgoing channel, cause: NO_USER_RESPONSE 2010-04-22 15:13:10.706880 [NOTICE] mod_conference.c:4566 Hangup sofia/internal/1001@server.com [CS_EXECUTE] [NO_USER_RESPONSE] 2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1179 Session 2 (sofia/internal/1234@conference.freeswitch.org) Ended 2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1234@conference.freeswitch.org [CS_DESTROY] 2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1179 Session 1 (sofia/internal/1001@server.com) Ended 2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1001@server.com [CS_DESTROY]
In case it is relevant, the call is triggered in a lua script which is executed by dialing a extension 5001. The dialplan in freeswitch/conf/dialplan/default/5001_gizmo.xml: <extension name="gizmo"> <condition field="destination_number" expression="^5001$"> <action application="lua" data="makecall.lua"/> </condition> </extension>
makecall.lua: function make_call() sessiondata = "sofia/gateway/gizmo/<num>" new_session = freeswitch.Session(sessiondata) end make_call()
On Thu, Apr 22, 2010 at 2:58 PM, William Suffill < william.suffill@gmail.com> wrote:
gizmo is your gateway.
siptrace is by profile.
sofia status in the cli will list your profiles/gateways (default cfgs use internal/external)
so in that case sofia profile external siptrace on _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
As I suspected, the problem was a silly one. Extension 5001 is reserved by dynamic_conference in the default dialplan. Once I changed to an unused extension it works fine. Nandy, once I bridge a call, how do I stream audio to the external number? When I try session:streamfile (after checking session:ready() == true), the file plays to the initiating FS extension, but not out to the external number. Any suggestions? Thanks, Neil On Fri, Apr 23, 2010 at 4:27 PM, Nandy Dagondon <nandy1925@gmail.com> wrote:
neil,
in makecall.lua, you're creating a new session. don't. when makecall.lua is called, it's already in a session. try this one: session:execute("bridge","sessiondata")
for flexibility, it's better to pass the URI to the lua script at the dialplan.
-nandy
On Fri, Apr 23, 2010 at 6:16 AM, Neil Patel <neilp@cs.stanford.edu> wrote:
Thanks for clarifying.
Here's the output (with siptrace on) when trying to dial out over the gateway:
2010-04-22 15:13:10.104866 [NOTICE] switch_channel.c:669 New Channel sofia/internal/1001@server.com [a6aac86b-4a40-41f3-8968-f9b37501483a] 2010-04-22 15:13:10.112850 [INFO] mod_dialplan_xml.c:418 Processing neilp->5001 in context default 2010-04-22 15:13:10.120874 [INFO] switch_core_session.c:1750 Sending early media 2010-04-22 15:13:10.122856 [NOTICE] mod_sofia.c:1907 Pre-Answer sofia/internal/1001@server.com! 2010-04-22 15:13:10.123810 [NOTICE] switch_channel.c:669 New Channel sofia/internal/1234@conference.freeswitch.org[af13cf37-eb6a-4e9f-b1cc-366b6a24aec5] 2010-04-22 15:13:10.386879 [INFO] switch_rtp.c:2049 Auto Changing port from IP1 to IP2 2010-04-22 15:13:10.697870 [NOTICE] sofia.c:4789 Hangup sofia/internal/ 1234@conference.freeswitch.org [CS_CONSUME_MEDIA] [NO_USER_RESPONSE] 2010-04-22 15:13:10.706880 [ERR] mod_conference.c:4563 Cannot create outgoing channel, cause: NO_USER_RESPONSE 2010-04-22 15:13:10.706880 [NOTICE] mod_conference.c:4566 Hangup sofia/internal/1001@server.com [CS_EXECUTE] [NO_USER_RESPONSE] 2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1179 Session 2 (sofia/internal/1234@conference.freeswitch.org) Ended 2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1234@conference.freeswitch.org [CS_DESTROY] 2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1179 Session 1 (sofia/internal/1001@server.com) Ended 2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/1001@server.com [CS_DESTROY]
In case it is relevant, the call is triggered in a lua script which is executed by dialing a extension 5001. The dialplan in freeswitch/conf/dialplan/default/5001_gizmo.xml: <extension name="gizmo"> <condition field="destination_number" expression="^5001$"> <action application="lua" data="makecall.lua"/> </condition> </extension>
makecall.lua: function make_call() sessiondata = "sofia/gateway/gizmo/<num>" new_session = freeswitch.Session(sessiondata) end make_call()
On Thu, Apr 22, 2010 at 2:58 PM, William Suffill < william.suffill@gmail.com> wrote:
gizmo is your gateway.
siptrace is by profile.
sofia status in the cli will list your profiles/gateways (default cfgs use internal/external)
so in that case sofia profile external siptrace on _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (5)
-
Michael Collins
-
Nandy Dagondon
-
Neil Patel
-
Steven Ayre
-
William Suffill