outbound sip call via lua: NORMAL_TEMPORARY_FAILURE
I was testing a luascript that I am using to initiate calls from the command line using luarun. Here is the relevant snippet of the script: -- make the call session = freeswitch.Session(DIALSTRING_PREFIX .. phone_num) session:setVariable("caller_id_number", phone_num) session:setVariable("playback_terminators", "#"); session:setHangupHook("hangup"); session:setInputCallback("my_cb", "arg"); This was working fine earlier today, but now I can't get the call to work: 2010-05-05 18:05:46.051908 [NOTICE] sofia.c:4789 Hangup sofia/internal/ sip:1001@127.0.0.1:61770 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE] 2010-05-05 18:05:46.053759 [ERR] switch_ivr_originate.c:2430 Cannot create outgoing channel of type [user] cause: [NORMAL_TEMPORARY_FAILURE] 2010-05-05 18:05:46.053759 [ERR] switch_cpp.cpp:604 session is not initalized 2010-05-05 18:05:46.053759 [ERR] switch_cpp.cpp:604 session is not initalized 2010-05-05 18:05:46.053759 [ERR] freeswitch_lua.cpp:194 session is not initalized 2010-05-05 18:05:46.053759 [ERR] freeswitch_lua.cpp:222 session is not initalized I can paste more details, but seeing as this was working a short time ago, I'm wondering whether it is something silly. Thanks in advance. -Neil
How are you running this script? /b On May 5, 2010, at 8:13 PM, Neil Patel wrote:
I was testing a luascript that I am using to initiate calls from the command line using luarun. Here is the relevant snippet of the script: -- make the call session = freeswitch.Session(DIALSTRING_PREFIX .. phone_num) session:setVariable("caller_id_number", phone_num) session:setVariable("playback_terminators", "#"); session:setHangupHook("hangup"); session:setInputCallback("my_cb", "arg");
from the CLI:
luarun script.lua
On Wed, May 5, 2010 at 6:17 PM, Brian West <brian@freeswitch.org> wrote:
How are you running this script?
/b
On May 5, 2010, at 8:13 PM, Neil Patel wrote:
I was testing a luascript that I am using to initiate calls from the command line using luarun. Here is the relevant snippet of the script: -- make the call session = freeswitch.Session(DIALSTRING_PREFIX .. phone_num) session:setVariable("caller_id_number", phone_num) session:setVariable("playback_terminators", "#"); session:setHangupHook("hangup"); session:setInputCallback("my_cb", "arg");
_______________________________________________ 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 (2)
-
Brian West
-
Neil Patel