Hi everyone,
I’m trying to setup follow-me from a ring group to a cell phone aliased as an extension… and it’s not going so well.
I have the ring group set to call a set of extensions and one of those extensions has a follow-me setup that bounces to a cell. With follow-me setup as ringall, it appears as though the handoff is processing as expected. The hard extension rings for INITIAL_RING_TIME and then the call bounces to the cell extension and is forwarded out a SIP trunk to my cell phone. But then it gets weird…
The call rings on the cell for 10 seconds and then drops with the last messages in asterisk showing:
[Jan 3 21:26:41] – SIP/FlowRoute-SIP-00000c03 is ringing
[Jan 3 21:26:41] – SIP/FlowRoute-SIP-00000c03 is making progress passing it to Local/755@from-internal-00000012;2
[Jan 3 21:26:41] – Local/755@from-internal-00000012;1 is ringing
[Jan 3 21:26:52] == Spawn extension (macro-dial, s, 22) exited non-zero on ‘Local/202@from-internal-00000011;2’ in macro ‘dial’
[Jan 3 21:26:52] == Spawn extension (followme-sub, 202, 37) exited non-zero on ‘Local/202@from-internal-00000011;2’
[Jan 3 21:26:52] == Spawn extension (macro-dial-one, s, 54) exited non-zero on ‘Local/755@from-internal-00000012;2’ in macro ‘dial-one’
[Jan 3 21:26:52] == Spawn extension (macro-exten-vm, s, 14) exited non-zero on ‘Local/755@from-internal-00000012;2’ in macro ‘exten-vm’
[Jan 3 21:26:52] == Spawn extension (macro-dial, s, 22) exited non-zero on ‘SIP/2200-00000c01’ in macro ‘dial’
[Jan 3 21:26:53] == Spawn extension (ext-local, 755, 2) exited non-zero on ‘Local/755@from-internal-00000012;2’
[Jan 3 21:26:53] – Executing [h@ext-local:1] Macro(“Local/755@from-internal-00000012;2”, “hangupcall,”) in new stack
[Jan 3 21:26:53] – Executing [s@macro-hangupcall:1] GotoIf(“Local/755@from-internal-00000012;2”, “1?theend”) in new stack
[Jan 3 21:26:53] – Goto (macro-hangupcall,s,3)
[Jan 3 21:26:53] == Spawn extension (ext-group, 610, 14) exited non-zero on ‘SIP/2200-00000c01’
[Jan 3 21:26:53] – Executing [h@ext-group:1] Macro(“SIP/2200-00000c01”, “hangupcall,”) in new stack
[Jan 3 21:26:53] – Executing [s@macro-hangupcall:3] ExecIf(“Local/755@from-internal-00000012;2”, “0?Set(CDR(recordingfile)=)”) in new stack
[Jan 3 21:26:53] – Executing [s@macro-hangupcall:4] Hangup(“Local/755@from-internal-00000012;2”, “”) in new stack
[Jan 3 21:26:53] == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘Local/755@from-internal-00000012;2’ in macro ‘hangupcall’
[Jan 3 21:26:53] == Spawn extension (ext-local, h, 1) exited non-zero on ‘Local/755@from-internal-00000012;2’
[Jan 3 21:26:53] – Executing [s@macro-hangupcall:1] GotoIf(“SIP/2200-00000c01”, “1?theend”) in new stack
[Jan 3 21:26:53] – Goto (macro-hangupcall,s,3)
[Jan 3 21:26:53] – Executing [s@macro-hangupcall:3] ExecIf(“SIP/2200-00000c01”, “0?Set(CDR(recordingfile)=)”) in new stack
[Jan 3 21:26:53] – Executing [s@macro-hangupcall:4] Hangup(“SIP/2200-00000c01”, “”) in new stack
[Jan 3 21:26:53] == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/2200-00000c01’ in macro ‘hangupcall’
[Jan 3 21:26:53] == Spawn extension (ext-group, h, 1) exited non-zero on ‘SIP/2200-00000c01’
What’s odd is that if I answer the cell phone within this short 10s window, all seems ok. But, if I dont, it fails as shown above. But… the cell phone gets an odd recording. As soon as I see the last “hangup” message in the asterisk console, the message on the cell phone says:
“Please enter your area code and phone number followed by pound. If you make a mistake press blah blah blah…”
If I enter a number and area code and press pound, it then asks me to enter my PIN. I have no idea where this message is coming from. My guess is it’s something on the cell phone side of things b/c there are no more asterisk logs after the final “hangup” shown above.
But… this 10s drop only happens when an outside call is routed to an outside cell phone. If I call the follow-me extension from an internal extension, it rings through and keeps ringing.
At this exact 10s mark, I see debug messages showing SIP 102 CANCEL coming from the Linksys SPA3201 that’s handling the inbound POTS line. The outbound line to the cell is over a SIP trunk. Finally it all closes down with a SIP 103 CANCEL.
I have other inbound SIP trunks that auto forward to outbound SIP trunks to cell phones and they work without issue, but I’m not trying to use ring-groups or follow-me with those.
The precise and consistent 10s drop time is very suspicious to me. I just don’t know where to look for it.
This leaves me with a few perplexing questions…
-
If the odd recording is something on the cell phone side, what is it about the asterisk “hangup” thats triggering it, and how do I stop it. It does this with Consumer Cellular and Verizon cell phones. (so far)
-
How do I increase the allowed ring-time once the call is handed to the cell phone so the cell will ring long enough for the cell phone email to answer the call for calls that pass through from outside to outside? I have the RING_TIME set to 33 seconds. A native call allowed to ring on the cell goes to voicemail at 30s. But, no matter the setting, it all crashes at 10s.
It’s almost like there’s another timer somewhere that I’m missing that’s causing asterisk to drop the call after it’s handed to the cell phone. What’s odd is that no matter what I set the RING_TIME to, the hangup happens at the same 10s mark.
-
Could this be some kind of weird interaction between the SPA3201 POTS line and the outbound SIP Trunk? Is the precise 10s drop an indicator of some sort?
-
Is this a POTS-to-SIP issue and has nothing to do with ring groups and follow-me at all, or are these apps some how causing the problem?
I’m stumped. I thought I had it working with the calls being passed to the cell, caller ID being passed right along and then boom… calls drop right away. If I call the cell directly, or through the extension alias, there is no problem; so I don’t think there’s a routing issue or anything like that. I only have trouble when bouncing the cell through one of the apps (ring-groups / follow-me).
If anyone has any idea what this might be, or where I could look for answers, please let me know.
Thanks to you all in advance.