[Freeswitch-users] session.originate requires existing call leg?

James Green james.green at stealthnet.net
Tue Aug 19 03:56:22 PDT 2008


I am attempting to programatically call out from FreeSWITCH to my office
phone as a test and simply play some music using Javascript.

session.originate() looks closest but the first argument is an existing
session (A-leg).

But what if I'm creating the A-leg of the call? Do I just:

session = new Session();
session.originate(session, my_destination); ?

Or does 'session' exist even though there are no channels connected and
if so can it act as the A-leg?

Thanks,

James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: james_green.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080819/3e2e8037/attachment-0002.vcf 


More information about the FreeSWITCH-users mailing list