Yate server > Yate IVR
How to make calls from IVR to external phone number (PHP)
jonathanv@rokk3rlabs.com:
We found the following information related to how make call from IVR to external phone number:
- http://yate.null.ro/archive/?action=show_msg&actionargs%5B%5D=53&actionargs%5B%5D=53
- http://yate.null.ro/archive/?action=show_msg&actionargs%5B%5D=58&actionargs%5B%5D=14
We already made the changes mentioned in the links, but they are not working and they are not showing any logs information.
We create the following function to call.
--- Code: ---function MakeCall($route) {
global $saved_ev;
$called = $saved_ev->GetValue("sip_from");
$partycallid = $saved_ev->GetValue("id");
$m = new Yate("chan.masquerade");
$m->params = $saved_ev->params;
$m->params["message"] = "call.execute";
$m->params["callto"] = "5717455171";
$m->params["id"] = $partycallid;
$m->Dispatch();
}
--- End code ---
Can you help us with any ideas to resolve this, thanks in advance
Monica Tepelus:
Hi,
Callto is the resource to call not the phone number.
Ex: callto = sip/sip:404040@ip.port not just 404040. If you don't have this info in the script then you must send a call.route message and set in callto the retval of that message if it was handled.
To have logs: use "sniffer on" from telnet console.
jonathanv@rokk3rlabs.com:
Hi Monica, We try this option but not works .. other idea ? sorry but We need this functionality urgently, Thanks Monica....
Monica Tepelus:
Hi,
Please paste the relevant code a sniffer log.
Monica Tepelus:
This is how to enable message sniffer in yate
http://docs.yate.ro/wiki/Debugging_and,_or_Investigation_of_messages
Navigation
[0] Message Index
[#] Next page
Go to full version