Author Topic: Overlapped - called incomplete  (Read 11863 times)

rodrigopassos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Overlapped - called incomplete
« 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

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Overlapped - called incomplete
« Reply #1 on: February 06, 2018, 02:56:59 AM »
Can you post a log with message sniffer enabled?

rodrigopassos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Overlapped - called incomplete
« Reply #2 on: February 06, 2018, 03:12:15 AM »
Hi Marian,

Follow the attached log file with a call example.

BR,

Rodrigo

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Overlapped - called incomplete
« Reply #3 on: February 06, 2018, 03:42:14 AM »
What exactly is the issue?

Initial number routing is handled and a route is returned.

rodrigopassos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Overlapped - called incomplete
« Reply #4 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

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Overlapped - called incomplete
« Reply #5 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.

rodrigopassos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Overlapped - called incomplete
« Reply #6 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

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Overlapped - called incomplete
« Reply #7 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.

rodrigopassos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Overlapped - called incomplete
« Reply #8 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