SOLVED Call Forward on No Answer doesn't seem to be functional.

Status
Not open for further replies.

hfoster

Active Member
Jan 28, 2019
675
80
28
34
Anyone else on a relatively recent release notice the Call Forward on No Answer doesn't work? For example, here's an extension that has it enabled. (No other follow mes or forwards for simplicity)

Code:
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 Dialplan: sofia/external/442071111111@example.com Action set(forward_no_answer_enabled=${user_data ${destination_number}@${domain_name} var forward_no_answer_enabled}) INLINE
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 EXECUTE [depth=0] sofia/external/442071111111@example.com set(forward_no_answer_enabled=true)
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:08.992700 98.50% [DEBUG] mod_dptools.c:1685 SET sofia/external/442071111111@example.com [forward_no_answer_enabled]=[true]
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 Dialplan: sofia/external/442071111111@example.com Action set(forward_no_answer_destination=${user_data ${destination_number}@${domain_name} var forward_no_answer_destination}) INLINE
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 EXECUTE [depth=0] sofia/external/442071111111@example.com set(forward_no_answer_destination=07933333333)
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:08.992700 98.50% [DEBUG] mod_dptools.c:1685 SET sofia/external/442071111111@example.com [forward_no_answer_destination]=[07933333333]

However later on in the call it seems to jump right over the app.lua failure_handler script which should forward to the mobile, 07933333333. Instead it falls through to the voicemail handler instead. There's a full log attached if you want to look at it, but I don't think it highlights much else. I suspect the problem is the failure_handler LUA not knowing the error ALLOTTED_TIMEOUT. Really not that familiar with FreeSWITCH lua scripts to say for definite and there hasn't been any commits to it for a long time.

Code:
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:09.172699 98.50% [DEBUG] switch_channel.c:3622 (sofia/external/442071111111@example.com) Callstate Change RINGING -> EARLY
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:09.172699 98.50% [DEBUG] switch_ivr_originate.c:1353 Raw Codec Activation Success L16@8000hz 1 channel 20ms
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:09.172699 98.50% [DEBUG] switch_core_codec.c:223 sofia/external/442071111111@example.com Push codec L16:100
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:09.172699 98.50% [DEBUG] switch_ivr_originate.c:1427 Play Ringback Tone [%(400,200,400,450);%(400,2000,400,450)]
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:09.192750 98.50% [DEBUG] sofia.c:7499 Channel sofia/external/442071111111@example.com entering state [early][183]
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:09.272699 98.50% [DEBUG] switch_rtp.c:7934 Correct audio ip/port confirmed.
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:22.032701 98.47% [DEBUG] switch_core_codec.c:248 sofia/external/442071111111@example.com Restore previous codec PCMA:8.
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:22.032701 98.47% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 602 [ALLOTTED_TIMEOUT]
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:22.032701 98.47% [NOTICE] switch_ivr_originate.c:3039 Cannot create outgoing channel of type [user] cause: [ALLOTTED_TIMEOUT]
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:22.032701 98.47% [DEBUG] switch_ivr_originate.c:4035 Originate Resulted in Error Cause: 602 [ALLOTTED_TIMEOUT]
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:22.032701 98.47% [INFO] mod_dptools.c:3653 Originate Failed. Cause: ALLOTTED_TIMEOUT
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 EXECUTE [depth=0] sofia/external/442071111111@example.com lua(app.lua failure_handler)
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:22.052704 98.47% [DEBUG] switch_cpp.cpp:1209 sofia/external/442071111111@example.com destroy/unlink session from object
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 EXECUTE [depth=0] sofia/external/442071111111@example.com lua(app.lua voicemail)
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:22.052704 98.47% [DEBUG] switch_core_media.c:8759 Audio params are unchanged for sofia/external/442071111111@example.com.
6b3c3dc0-1517-41f6-84e8-eaf19ca99810 2023-01-27 16:36:22.052704 98.47% [DEBUG] mod_sofia.c:913 Local SDP sofia/external/442071111111@example.com:
 

Attachments

  • 6b3c3dc0-1517-41f6-84e8-eaf19ca99810 202.txt
    79.1 KB · Views: 6

paulczichos

New Member
Sep 21, 2020
28
2
3
26
Hey, as far as i know the no answere forward only works if the hangup cause (or maybe originate_disposition) is "NO_ANSWERE".
It does look like you have "ALLOTTED_TIMEOUT".
 
  • Like
Reactions: hfoster

hfoster

Active Member
Jan 28, 2019
675
80
28
34
Bizarre, I didn't think it would use that for a call that is Inbound Route -> Transfer to Extension. I might have to experiment with this failure handler LUA to do it for ALLOTTED_TIMEOUT too.

Thanks anyway, that's solved that mystery.
 
Status
Not open for further replies.