LUA transfer result:0
Hi, I have tried two different ways of transfer in LUA: session:transfer(number,"XML","default") And Session:execute("transfer","12345 XML default") And I can't make it working. I get "switch_cpp.cpp:797 transfer result: 0" The same transfer from within the dialplan works fine The call is not answered before the transfer. Does anybody have an idea? Thanks Anestis
Don't forget that in a Lua dp script the script must "end" before the transfer takes place. Make sure that there isn't a logic loop or something in your code preventing it from ending. If you pastebin your script we'll take a look. -MC On Thu, Oct 20, 2011 at 2:27 PM, Anestis Mavro <devel@omninet.eu> wrote:
Hi,****
** **
I have tried two different ways of transfer in LUA:****
session:transfer(number,”XML”,”default”)****
** **
And ****
** **
Session:execute(“transfer”,”12345 XML default”)****
** **
And I can’t make it working.****
** **
I get “switch_cpp.cpp:797 transfer result: 0”****
** **
The same transfer from within the dialplan works fine****
** **
The call is not answered before the transfer.****
** **
Does anybody have an idea?****
** **
Thanks****
Anestis****
** **
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5054 (20100423) __________
The message was checked by ESET NOD32 Antivirus.
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
Hi, I'm facing same situation. I read the Lua transfer page: http://wiki.freeswitch.org/wiki/Mod_lua#session:transfer which states that I need to set AutoHangup to false. I did that too but my transfer command still fails :( I've to do looping between a list of numbers and each number could have different XML script to be run.So as soon as I parse CSV I find out the XML context on which to transfer the call and do a transfer, but it fails immediately. Hope to hear from you soon. Regards, Sammy On Sat, Oct 22, 2011 at 3:35 AM, Michael Collins <msc@freeswitch.org> wrote:
Don't forget that in a Lua dp script the script must "end" before the transfer takes place. Make sure that there isn't a logic loop or something in your code preventing it from ending. If you pastebin your script we'll take a look. -MC
On Thu, Oct 20, 2011 at 2:27 PM, Anestis Mavro <devel@omninet.eu> wrote:
Hi,****
** **
I have tried two different ways of transfer in LUA:****
session:transfer(number,”XML”,”default”)****
** **
And ****
** **
Session:execute(“transfer”,”12345 XML default”)****
** **
And I can’t make it working.****
** **
I get “switch_cpp.cpp:797 transfer result: 0”****
** **
The same transfer from within the dialplan works fine****
** **
The call is not answered before the transfer.****
** **
Does anybody have an idea?****
** **
Thanks****
Anestis****
** **
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5054 (20100423) __________
The message was checked by ESET NOD32 Antivirus.
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
I got it working, FS requires a "return 0" in LUA script just after session:transfer() command. On Sat, Dec 24, 2011 at 6:22 PM, Sammy Govind <govoiper@gmail.com> wrote:
Hi, I'm facing same situation. I read the Lua transfer page: http://wiki.freeswitch.org/wiki/Mod_lua#session:transfer which states that I need to set AutoHangup to false. I did that too but my transfer command still fails :(
I've to do looping between a list of numbers and each number could have different XML script to be run.So as soon as I parse CSV I find out the XML context on which to transfer the call and do a transfer, but it fails immediately.
Hope to hear from you soon. Regards, Sammy
On Sat, Oct 22, 2011 at 3:35 AM, Michael Collins <msc@freeswitch.org>wrote:
Don't forget that in a Lua dp script the script must "end" before the transfer takes place. Make sure that there isn't a logic loop or something in your code preventing it from ending. If you pastebin your script we'll take a look. -MC
On Thu, Oct 20, 2011 at 2:27 PM, Anestis Mavro <devel@omninet.eu> wrote:
Hi,****
** **
I have tried two different ways of transfer in LUA:****
session:transfer(number,”XML”,”default”)****
** **
And ****
** **
Session:execute(“transfer”,”12345 XML default”)****
** **
And I can’t make it working.****
** **
I get “switch_cpp.cpp:797 transfer result: 0”****
** **
The same transfer from within the dialplan works fine****
** **
The call is not answered before the transfer.****
** **
Does anybody have an idea?****
** **
Thanks****
Anestis****
** **
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5054 (20100423) __________
The message was checked by ESET NOD32 Antivirus.
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
Hi, I want to create a loopback number but dont know how. Could any body tell me please? I installed bluebox and this resulted in having the default configurations overwritten. Any help is appreciated kind regards, Sherif
participants (4)
-
Anestis Mavro
-
Michael Collins
-
Sammy Govind
-
Sherif Omran