Hi Forum,
I'm launching calls using ESL originate command. Example:
originate {ignore_early_media=false,bridge_early_media=false,originate_timeout=24,call_timeout=24,execute_on_answer_1='sched_hangup 18 ALLOTTED_TIMEOUT',origination_uuid=920a1b14-j02y-7bi9-kgq0-3c1u-920a291166,origination_caller_id_number=+55XXXXXXXXX,RECORD_STEREO=true,execute_on_answer_2='record_session /var/www/html/recordings/Y90I68RLWX_+55XXXXXXXXX_920a1b14-j02y-7bi9-kgq0-3c1u-920a291166.wav'}sofia/gateway/twilio/+55XXXXXXXXX handle_calls
I disabled ignore_early_media from true to false.
What is happening is that when I receive a 183 w/SDP and call is NOT ANSWERED I used to get NO_ANSWER as reason code, now I get NORMAL_CLEARING even though call was never connected. My feeling is that after entering in tone detection and bridge the call is just following rules and end up in hangup rule which by default should send this reason. handle_calls
I know that during 183 w/SDP many things could happen (BUSY, REORDER, Announcement, RING BACK, etc). What is the recommended way to handle those situations?
For now Im using the following conditions to rewrite the reason code in my App:
Any pointers in how to make Freeswitch handle the above conditions internally?
Thanks