[Freeswitch-users] How do I originiate new session from within LUA script?
Peter Olsson
peter.olsson at visionutveckling.se
Sat Mar 5 23:48:04 MSK 2011
This should work, last parameter is the originate timeout in seconds.
s = freeswitch.Session();
s:originate(session, "sofia/internal/1000 at 192.168.1.1", 10);
/Peter
________________________________________
Från: freeswitch-users-bounces at lists.freeswitch.org [freeswitch-users-bounces at lists.freeswitch.org] för Dmitry Saratsky [simpot at simpot.com]
Skickat: den 5 mars 2011 20:53
Till: freeswitch-users at lists.freeswitch.org
Ämne: [Freeswitch-users] How do I originiate new session from within LUA script?
Hello all,
According to wiki:
http://wiki.freeswitch.org/wiki/Mod_lua#session:originate
I can use: “session:originate” command in LUA script to originate new session, but I can’t understand how should I do it and can’t find any example how I use this command.
Can you help, guys?
Thanks,
Dmitry.
!DSPAM:4d72960532761307510204!
More information about the FreeSWITCH-users
mailing list