How to transfer a call from iframe?
Posted: Wed Sep 26, 2012 2:12 am
Hi,
I'm building a contact management system to be run in an iframe within ViciDial agent screen.
The idea is that an incoming call launches the contact management system which then fetches the needed data (answering phrase, relevant contact info, etc) by the ingroup the call was received to.
This works fine, now I need to make the call transfers to work in a way or another from my application.
Looking at the agc/vicidial.php, it seems that it could be possible to launch the javascript to open the "transfer conference functions" form and then fill the "number to call" field, but I'm not quite sure which javascript function(s) to call?
I gave a quick try to call the function custom_button_transfer(), it did not seem to do the trick..
Any ideas on this?
Thanks in advance!
I'm building a contact management system to be run in an iframe within ViciDial agent screen.
The idea is that an incoming call launches the contact management system which then fetches the needed data (answering phrase, relevant contact info, etc) by the ingroup the call was received to.
This works fine, now I need to make the call transfers to work in a way or another from my application.
Looking at the agc/vicidial.php, it seems that it could be possible to launch the javascript to open the "transfer conference functions" form and then fill the "number to call" field, but I'm not quite sure which javascript function(s) to call?
I gave a quick try to call the function custom_button_transfer(), it did not seem to do the trick..
Any ideas on this?
Thanks in advance!