Your dialstring is invalid. You need to format it properly:<div>sofia/gateway/my_gw/1000</div><div>sofia/internal/1000@host</div><div>user/1000</div><div><br></div><div>It all depends on exactly what you&#39;re doing. Use this wiki page for lots of cool examples:</div>
<div><a href="http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings">http://wiki.freeswitch.org/wiki/Dialplan_XML#SIP-Specific_Dialstrings</a></div><div><br></div><div>-MC<br><br><div class="gmail_quote">On Tue, Jun 14, 2011 at 1:41 PM, <a href="mailto:paul@iamfine.com">paul@iamfine.com</a> <span dir="ltr">&lt;<a href="mailto:paul@iamfine.com">paul@iamfine.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Having problems getting a session created from a lua script - its the latest build on a centos system<br>
<br>
this is the lua code<br>
<br>
-----------------------<br>
freeswitch.console_log(&quot;info&quot;, &quot;Lua in da house!!!\n&quot;);<br>
<br>
local session = freeswitch.Session(&quot;sofia/<a href="http://00.00.127.61/1000" target="_blank">00.00.127.61/1000</a>&quot;);<br>
session:execute(&quot;playback&quot;, &quot;/sr8k.wav&quot;);<br>
session:hangup();<br>
-----------------------<br>
<br>
***** please note i changed the ip address to protect its identity *****<br>
**********<br>
<br>
<br>
<br>
<br>
please help - i am tearing my hair out on this one<br>
<br>
Paul<br>
<br>
<br>
+OK<br>
<br>
freeswitch@internal&gt; 2011-06-14 20:31:01.476406 [INFO] switch_cpp.cpp:1197 Lua in da house!!!<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_ivr_originate.c:1869 Parsing global variables<br>
2011-06-14 20:31:01.476406 [NOTICE] switch_channel.c:833 New Channel sofia/internal/1000 [c9c5d8ec-af7f-4153-a844-5000983170d5]<br>
2011-06-14 20:31:01.476406 [DEBUG] mod_sofia.c:4392 (sofia/internal/1000) State Change CS_NEW -&gt; CS_INIT<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_session.c:1118 Send signal sofia/internal/1000 [BREAK]<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_state_machine.c:325 (sofia/internal/1000) Running State Change CS_INIT<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_state_machine.c:361 (sofia/internal/1000) State INIT<br>
2011-06-14 20:31:01.476406 [DEBUG] mod_sofia.c:85 sofia/internal/1000 SOFIA INIT<br>
2011-06-14 20:31:01.476406 [DEBUG] mod_sofia.c:125 (sofia/internal/1000) State Change CS_INIT -&gt; CS_ROUTING<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_session.c:1118 Send signal sofia/internal/1000 [BREAK]<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_state_machine.c:361 (sofia/internal/1000) State INIT going to sleep<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_state_machine.c:325 (sofia/internal/1000) Running State Change CS_ROUTING<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_channel.c:1736 (sofia/internal/1000) Callstate Change DOWN -&gt; RINGING<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_state_machine.c:364 (sofia/internal/1000) State ROUTING<br>
2011-06-14 20:31:01.476406 [DEBUG] mod_sofia.c:148 sofia/internal/1000 SOFIA ROUTING<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_ivr_originate.c:66 (sofia/internal/1000) State Change CS_ROUTING -&gt; CS_CONSUME_MEDIA<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_session.c:1118 Send signal sofia/internal/1000 [BREAK]<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_state_machine.c:364 (sofia/internal/1000) State ROUTING going to sleep<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_state_machine.c:325 (sofia/internal/1000) Running State Change CS_CONSUME_MEDIA<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_state_machine.c:383 (sofia/internal/1000) State CONSUME_MEDIA<br>
2011-06-14 20:31:01.476406 [DEBUG] switch_core_state_machine.c:383 (sofia/internal/1000) State CONSUME_MEDIA going to sleep<br>
2011-06-14 20:31:01.476406 [DEBUG] sofia.c:4800 Channel sofia/internal/1000 entering state [calling][0]<br>
2011-06-14 20:31:01.638509 [DEBUG] sofia.c:4800 Channel sofia/internal/1000 entering state [terminated][503]<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_channel.c:2641 (sofia/internal/1000) Callstate Change RINGING -&gt; HANGUP<br>
2011-06-14 20:31:01.638509 [NOTICE] sofia.c:5522 Hangup sofia/internal/1000 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_ivr_originate.c:3308 Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE]<br>
2011-06-14 20:31:01.638509 [ERR] switch_cpp.cpp:655 session is not initalized<br>
2011-06-14 20:31:01.638509 [ERR] switch_cpp.cpp:617 session is not initalized<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_channel.c:2657 Send signal sofia/internal/1000 [KILL]<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_core_session.c:1118 Send signal sofia/internal/1000 [BREAK]<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_core_state_machine.c:325 (sofia/internal/1000) Running State Change CS_HANGUP<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_core_state_machine.c:565 (sofia/internal/1000) State HANGUP<br>
2011-06-14 20:31:01.638509 [DEBUG] mod_sofia.c:452 sofia/internal/1000 Overriding SIP cause 503 with 503 from the other leg<br>
2011-06-14 20:31:01.638509 [DEBUG] mod_sofia.c:458 Channel sofia/internal/1000 hanging up, cause: NORMAL_TEMPORARY_FAILURE<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_core_state_machine.c:46 sofia/internal/1000 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_core_state_machine.c:565 (sofia/internal/1000) State HANGUP going to sleep<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_core_state_machine.c:356 (sofia/internal/1000) State Change CS_HANGUP -&gt; CS_REPORTING<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_core_session.c:1118 Send signal sofia/internal/1000 [BREAK]<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_core_state_machine.c:325 (sofia/internal/1000) Running State Change CS_REPORTING<br>
2011-06-14 20:31:01.638509 [DEBUG] switch_core_state_machine.c:625 (sofia/internal/1000) State REPORTING<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_state_machine.c:53 sofia/internal/1000 Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_state_machine.c:625 (sofia/internal/1000) State REPORTING going to sleep<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_state_machine.c:350 (sofia/internal/1000) State Change CS_REPORTING -&gt; CS_DESTROY<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_session.c:1118 Send signal sofia/internal/1000 [BREAK]<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_session.c:1290 Session 8 (sofia/internal/1000) Locked, Waiting on external entities<br>
2011-06-14 20:31:02.631557 [NOTICE] switch_core_session.c:1308 Session 8 (sofia/internal/1000) Ended<br>
2011-06-14 20:31:02.631557 [NOTICE] switch_core_session.c:1310 Close Channel sofia/internal/1000 [CS_DESTROY]<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_state_machine.c:454 (sofia/internal/1000) Callstate Change HANGUP -&gt; DOWN<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_state_machine.c:457 (sofia/internal/1000) Running State Change CS_DESTROY<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_state_machine.c:467 (sofia/internal/1000) State DESTROY<br>
2011-06-14 20:31:02.631557 [DEBUG] mod_sofia.c:363 sofia/internal/1000 SOFIA DESTROY<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_state_machine.c:60 sofia/internal/1000 Standard DESTROY<br>
2011-06-14 20:31:02.631557 [DEBUG] switch_core_state_machine.c:467 (sofia/internal/1000) State DESTROY going to sleep<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>
</blockquote></div><br></div>