neil,<br><br>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:<br> session:execute("bridge","sessiondata")<br>
<br>for flexibility, it's better to pass the URI to the lua script at the dialplan.<br><br>-nandy<br><br><div class="gmail_quote">On Fri, Apr 23, 2010 at 6:16 AM, Neil Patel <span dir="ltr"><<a href="mailto:neilp@cs.stanford.edu">neilp@cs.stanford.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Thanks for clarifying.<div><br></div><div>Here's the output (with siptrace on) when trying to dial out over the gateway:</div>
<div><br></div><div><div>2010-04-22 15:13:10.104866 [NOTICE] switch_channel.c:669 New Channel sofia/internal/<a href="mailto:1001@server.com" target="_blank">1001@server.com</a> [a6aac86b-4a40-41f3-8968-f9b37501483a]</div>
<div>2010-04-22 15:13:10.112850 [INFO] mod_dialplan_xml.c:418 Processing neilp->5001 in context default</div><div>2010-04-22 15:13:10.120874 [INFO] switch_core_session.c:1750 Sending early media</div><div>2010-04-22 15:13:10.122856 [NOTICE] mod_sofia.c:1907 Pre-Answer sofia/internal/<a href="mailto:1001@server.com" target="_blank">1001@server.com</a>!</div>
<div>2010-04-22 15:13:10.123810 [NOTICE] switch_channel.c:669 New Channel sofia/internal/<a href="mailto:1234@conference.freeswitch.org" target="_blank">1234@conference.freeswitch.org</a> [af13cf37-eb6a-4e9f-b1cc-366b6a24aec5]</div>
<div>
2010-04-22 15:13:10.386879 [INFO] switch_rtp.c:2049 Auto Changing port from IP1 to IP2</div><div>2010-04-22 15:13:10.697870 [NOTICE] sofia.c:4789 Hangup sofia/internal/<a href="mailto:1234@conference.freeswitch.org" target="_blank">1234@conference.freeswitch.org</a> [CS_CONSUME_MEDIA] [NO_USER_RESPONSE]</div>
<div>2010-04-22 15:13:10.706880 [ERR] mod_conference.c:4563 Cannot create outgoing channel, cause: NO_USER_RESPONSE</div><div>2010-04-22 15:13:10.706880 [NOTICE] mod_conference.c:4566 Hangup sofia/internal/<a href="mailto:1001@server.com" target="_blank">1001@server.com</a> [CS_EXECUTE] [NO_USER_RESPONSE]</div>
<div>2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1179 Session 2 (sofia/internal/<a href="mailto:1234@conference.freeswitch.org" target="_blank">1234@conference.freeswitch.org</a>) Ended</div><div>2010-04-22 15:13:10.706880 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/<a href="mailto:1234@conference.freeswitch.org" target="_blank">1234@conference.freeswitch.org</a> [CS_DESTROY]</div>
<div>2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1179 Session 1 (sofia/internal/<a href="mailto:1001@server.com" target="_blank">1001@server.com</a>) Ended</div><div>2010-04-22 15:13:10.714854 [NOTICE] switch_core_session.c:1181 Close Channel sofia/internal/<a href="mailto:1001@server.com" target="_blank">1001@server.com</a> [CS_DESTROY]</div>
</div><div><br></div><div><br></div><div> 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:</div>
<div><div> <extension name="gizmo"></div><div> <condition field="destination_number" expression="^5001$"></div><div> <action application="lua" data="makecall.lua"/></div>
<div> </condition></div><div> </extension></div></div><div><br></div><div>makecall.lua:</div><div><div>function make_call()</div><div class="im"><div> sessiondata = "sofia/gateway/gizmo/<num>"</div>
<div>
new_session = freeswitch.Session(sessiondata)</div>
</div><div>end</div><div>make_call()</div></div><div><br></div><div><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Thu, Apr 22, 2010 at 2:58 PM, William Suffill <span dir="ltr"><<a href="mailto:william.suffill@gmail.com" target="_blank">william.suffill@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">gizmo is your gateway.<br><br><br>siptrace is by profile. <br>
<br><br>sofia status in the cli will list your profiles/gateways (default cfgs use internal/external)<br>
<br>so in that case sofia profile external siptrace on
<br></div></div><div class="im">_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></div><br></div>
<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></blockquote></div><br>