Yate Community Forum

Yate server => Other Yate server issues => Topic started by: rodrigopassos on February 05, 2018, 09:23:05 PM

Title: Overlapped - called incomplete
Post by: rodrigopassos on February 05, 2018, 09:23:05 PM
Hi Yate,

I have seen a called number  incomplete after call overlapped script. Initially, i make call overlapped script in regexroute and ffter, trying to use msg.called on javascript message. So, the same problem occurs if using regexrout only with sip/sip:\0@sip_server. I can't see called number completed after. Anyone knows what wrong?

Regards.

Rodrigo R Passos
Title: Re: Overlapped - called incomplete
Post by: marian on February 06, 2018, 02:56:59 AM
Can you post a log with message sniffer enabled?
Title: Re: Overlapped - called incomplete
Post by: rodrigopassos on February 06, 2018, 03:12:15 AM
Hi Marian,

Follow the attached log file with a call example.

BR,

Rodrigo
Title: Re: Overlapped - called incomplete
Post by: marian on February 06, 2018, 03:42:14 AM
What exactly is the issue?

Initial number routing is handled and a route is returned.
Title: Re: Overlapped - called incomplete
Post by: rodrigopassos on February 06, 2018, 04:02:13 AM
Marian,

I can see the final number catches on chan.dtmf, but i  can't see called number modified by overlapped script. I can get it on javascript?

BR,

Rodrigo
Title: Re: Overlapped - called incomplete
Post by: marian on February 06, 2018, 04:11:58 AM
What do you mean by 'I can see the final number catches on chan.dtmf ...'?

If you mean you are seeing a chan.dtmf before routing: keep in mind that overlapped routes the initial number first!
Be prepared for it!
If you don't return a target for it a subsequent route attempt will be done by adding received DTMFs.
Title: Re: Overlapped - called incomplete
Post by: rodrigopassos on February 06, 2018, 05:01:02 AM
Marian,

 I mean that i can see the last number in DTMF, but, the php script doesn't change the c?alled number how can see on sniffer. The php overlapped scrip will modify called number before exit

I'm waiting the final number with 0. If a put a regexroute like follow, but without any success.
${overlapped}yes=goto overlapped
^060902146.*=external/nodata/overlapped.php;accept_call=false
^06090214635478500$=sip/sip:\0@172.16.22.2

[overlapped]
.*=;error=incomplete
Title: Re: Overlapped - called incomplete
Post by: marian on February 06, 2018, 05:11:13 AM
I think you have an error in your routing logic.
As seen in log you have a module (route_proc) handling call.route after regexroute and returning true with target set.
Please check it.

NOTE: This is not correct:
^060902146.*=external/nodata/overlapped.php;accept_call=false
^06090214635478500$=sip/sip:\0@172.16.22.2
The first rule will always match before the second one.
Title: Re: Overlapped - called incomplete
Post by: rodrigopassos on February 06, 2018, 05:40:14 AM
Mariam,
Problem solved. I'm returning false in my router script while length of called number is minor of 16, and after, i have the complete number catched in javascript.

Thank a lot again.

BR,

Rodrigo