I have a DID on my system that has a lengthy dialplan when people don’t answer. Assuming no one answers, here is the full plan:
In order to get to the next level, the NoAnswer must get hit.
When I call my DID with a cell phone (external to our system) the call will get as far as dialing the cell from the Group but never hit the IVR. When I call from an extension internal to our system it works properly. Here are some things I noticed while debugging.
The 8888888888 number in the below logs is the cell phone that is part of the dialplan.
When calling from a cell (the call that does not work properly) the logs show that after no one picks up from the Group(cell#) it immediately calls macro-hangupcall instead of checking for NoAnswer (which would send it to the IVR).
[2017-12-20 16:54:42] VERBOSE[C-0003b0e7] pbx.c: Spawn extension (outbound-allroutes, 8888888888, 6) exited non-zero on ‘Local/[email protected];2’
[2017-12-20 16:54:42] VERBOSE[C-0003b0e7] pbx.c: Executing [[email protected]:4] Hangup(“SIP/UC1-001180df”, “”) in new stack
When calling my DID from an internal extension asterisk will spawn an outbound call, which will in-turn spawn a new call for the incoming call to the DID. That second (incoming) call works properly. After it gets to the cell# and no one picks up it checks for NoAnswer and moves to the IVR.
[2017-12-20 16:53:11] VERBOSE[C-0003b0da] pbx.c: Spawn extension (outbound-allroutes, 8888888888, 6) exited non-zero on ‘Local/[email protected]
[2017-12-20 16:53:11] VERBOSE[C-0003b0da] pbx.c: Executing [[email protected]:36] GosubIf(“SIP/UC1-00118096”, “0?NOANSWER,1()”) in new stack
One other interesting tidbit is that when calling from an external number (the call that doesn’t work properly) the logs do not show the following line when no one answers the cell#:
app_dial.c: Nobody picked up in 20000 ms
That line does appear every other time for both the good and bad call; it’s just missing that single time (when an external number calls my DID and no one picks up the cell once it gets to that level).
Any thoughts? I’m struggling to figure out why it’s behaving this way.