[Freeswitch-users] LUA Callback - Help

Vitalii Colosov vetali100 at gmail.com
Thu Jun 10 04:17:51 PDT 2010


It looks OK what you wrote - we have almost same lua code.

The only thing that I have in addition in my script is "if
 (session:answered())" construction.

Try to write it like this:
...

if ( session:ready() ) then
        session:sleep(1000);
        if (session:answered()) then
           session:sleep(1000);
           session:streamFile(message_dir.."enter-dest.wav");
        end

end
...

Not sure why this should work and that does not, but this is how it works
for me - worth trying at lest.


Regards,
Vitalie


10 июня 2010 г. 9:07 пользователь Aloysius Lloyd <
lloyd.aloysius at sunteltech.ca> написал:

>
> without bypass_media_after_bridge=true same results.
>
> Lloyd
>
>
>
> 2010/6/10 Aloysius Lloyd <lloyd.aloysius at sunteltech.ca>
>
> I try the bypass_media_after_bridge=true  .. same results.
>>
>> Thanks
>> Lloyd
>>
>>
>>
>>
>> On Thu, Jun 10, 2010 at 2:00 AM, Sergey Scheglov <sid at eltc.ru> wrote:
>>
>>> В Thu, 10 Jun 2010 01:26:51 -0400
>>> Aloysius Lloyd <lloyd.aloysius at gmail.com> wrote:
>>>
>>>
>>> > session =
>>> >
>>> freeswitch.Session("{bypass_media_after_bridge=true,ignore_early_media=true,originate_timeout=40}"..out_gateway1..number_to_call);
>>> > session:setAutoHangup(false);
>>> >
>>> > Thanks
>>> > Lloyd
>>>
>>> Try without bypass_media_after_bridge=true
>>>
>>> Regard
>>> Sergey Scheglov
>>>
>>> _______________________________________________
>>> 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/20100610/a465ccad/attachment.html 


More information about the FreeSWITCH-users mailing list