alex at sinapticode.ro Guest
|
Posted: Fri Feb 13, 2009 6:38 am Post subject: [Freeswitch-users] Problems with Originate |
|
|
Hi all,
I'm using "originate" to initiate calls, and streamFile to play audio
files on the answered sessions. All the logic was encapsulated in a
Javascript file.
The problem with this setup is that origination_caller_id_number doesn't
work from inside the JS file (when calling session.originate). My setup
only works when doing a direct originate command, with the JS script
attached as an application to it, i.e...
originate
{ignore_early_media=true}sofia/gateway/myprovider/873040711222222
'&javascript(dialer.js <params>)'
Now, my next problem ... this doesn't work properly because with
"ignore_early_media=true" then "dialer.js" isn't executed on FAIL. And I
need that. If "ignore_early_media" is not specified, then "dialer.js"
executes, but the recording starts before the phone is answered.
Can you give me any tips?
Thanks,
--
Alexandru Nedelcu
Software Developer, Sinapticode
_______________________________________________
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 |
|