Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jonathanv@rokk3rlabs.com

Pages: [1]
1
I change
yate.conf  --> modload=no. and the IVR not work  ???

2
Script:

function MakeCall() {
        global $saved_ev;
        global $partycallid;

        $called = $saved_ev->GetValue("sip_uri");
        $this->log->set(" partycallid -------> : " . $partycallid . "\n");

        $m = new Yate("chan.masquerade");

        $m->params = $saved_ev->params;

        $m->params["message"] = "call.execute";
        $route = "line/+5717455171";

        $m->params["callto"] = $called; //"sip:5717455171@104.130.240.10"; //sip:5717455171@104.130.240.10
        $m->params["id"] = $partycallid;
        $m->params["line"] = "sapo";

        $this->log->set(" params -------> : " . var_export($m, true) . "\n");
        $m->Dispatch();
}


Log:
IVR::InitIVR()
login::OnEnter('')
login::OnEvent(incoming 'call.execute')
login::OnMessage('call.execute')
login::SetState('Welcome')
login::OnExecute()
login: Found table operation 'answered'
login::OnEvent(installed 'chan.dtmf')
login::OnEvent(setlocal 'id')
login::OnSetting('id','ivr/39518406654f8771a663351.72944684',true)
login::OnEvent(installed 'chan.dtmf')
login::OnEvent(installed 'chan.notify')
20150305153405.432564 <sip:WARN> SIP line 'sapo' logon failure 401: Unauthorized
20150305153906.394980 <sip:WARN> SIP line 'sapo' logon failure 401: Unauthorized

accfile.conf:

[sapo]
enabled=yes
protocol=sip
username=+57174551**
description=CLIENT SIP
;interval=600
formats=ulaw
authname=+57174551**
password=
number=+57174551**
-- I'm not sure this configuration ---
domain=voip.sapo.pt
registrar=voip.sapo.pt:5070
outbound=proxy.voip.sapo.pt
-----
localaddress=auto


regexroute.conf:
^\+571.*$=sip/sip:;line=sapo;caller=+57174551**


3
Hi Monica, We try this option but not works .. other idea ? sorry but We need this functionality urgently, Thanks Monica....

4
We use the following method to detect this event:
OnUnhandled

we have been guided according to the following documentation:
http://sourcecodebrowser.com/yate/2.1.0-1~dfsg/class_i_v_r.html#aa82401c24af3ed6ab0ead1c5cd04eaa6

but it not works, please we need your help.. Thanks!

5
Yate IVR / How to make calls from IVR to external phone number (PHP)
« on: March 03, 2015, 04:33:34 PM »
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: [Select]
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();
}

Can you help us with any ideas to resolve this, thanks in advance

Pages: [1]