[Freeswitch-users] LUA transfer result:0

Sammy Govind govoiper at gmail.com
Sat Dec 24 19:04:38 MSK 2011


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 at 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 at 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 at 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.
>>>
>>> http://www.eset.com
>>>
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111224/71c17544/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list