BACKGROUND_JOB event received before action execution
Hi all. I'm using ESL to send "bgapi" commands to Freeswitch and I was expecting to receive the BACKGROUND_JOB event with the command's response after the action was effectively executed, which is not the case. I noticed that this happens with commands such as uuid_bridge, uuid_park, uuid_transfer, etc. but it does not happen when executing an "originate", where the BACKGROUND_JOB event is fired only after the call establishment or rejection. This leads to the execution of subsequent commands assuming that the call is in a given state that might not be true. Does someone faced a similar issue? What should be the correct implementation here to make sure that the subsequent logic is only executed when the current command was actually done? Thanks in advance! Regards, Nuno Version: FreeSWITCH Version 1.10.2-release~64bit ( 64bit) Example for uuid_bridge: {"Event-Name":"API","Event-Date-Local":"2021-03-25 15:19:32","Event-Date-GMT":"Thu, 25 Mar 2021 15:19:32 GMT","Event-Date-Timestamp":"1616685572613681","Event-Calling-File":"switch_ loadable_module.c","Event-Calling-Function":"switch_api_execute","Event-Call ing-Line-Number":"2992","Event-Sequence":"1548099","API-Command":"uuid_bridg e","API-Command-Argument":"8112abfd-6d77-47ba-bedb-4748452abd78 0f693a5f-8e47-4aa0-b21a-5d5c95195e68"} {"Event-Name":"BACKGROUND_JOB","Event-Date-Local":"2021-03-25 15:19:32","Event-Date-GMT":"Thu, 25 Mar 2021 15:19:32 GMT","Event-Date-Timestamp":"1616685572613681","Event-Calling-File":"mod_eve nt_socket.c","Event-Calling-Function":"api_exec","Event-Calling-Line-Number" :"1562","Event-Sequence":"1548100","Job-UUID":"bdcff921-7df3-4209-a6f6-6667f 39ac8a6","Job-Command":"uuid_bridge","Job-Command-Arg":"8112abfd-6d77-47ba-b edb-4748452abd78 0f693a5f-8e47-4aa0-b21a-5d5c95195e68","Content-Length":"41","_body":"+OK 0f693a5f-8e47-4aa0-b21a-5d5c95195e68\n"} {"Event-Name":"CHANNEL_EXECUTE","Event-Date-Local":"2021-03-25 15:19:33","Event-Date-GMT":"Thu, 25 Mar 2021 15:19:33 GMT","Event-Date-Timestamp":"1616685573913991","Event-Calling-File":"switch_ ivr_bridge.c","Event-Calling-Function":"uuid_bridge_on_soft_execute","Event- Calling-Line-Number":"1241","Event-Sequence":"1548251","Application":"uuid_b ridge","Application-Data":"0f693a5f-8e47-4aa0-b21a-5d5c95195e68",...} {"Event-Name":"CHANNEL_EXECUTE","Event-Date-Local":"2021-03-25 15:19:33","Event-Date-GMT":"Thu, 25 Mar 2021 15:19:33 GMT","Event-Date-Timestamp":"1616685573913991","Event-Calling-File":"switch_ ivr_bridge.c","Event-Calling-Function":"uuid_bridge_on_soft_execute","Event- Calling-Line-Number":"1248","Event-Sequence":"1548252","Application":"uuid_b ridge","Application-Data":"8112abfd-6d77-47ba-bedb-4748452abd78"...} {"Event-Name":"CHANNEL_BRIDGE","Event-Date-Local":"2021-03-25 15:19:33","Event-Date-GMT":"Thu, 25 Mar 2021 15:19:33 GMT","Event-Date-Timestamp":"1616685573913991","Event-Calling-File":"switch_ ivr_bridge.c","Event-Calling-Function":"switch_ivr_multi_threaded_bridge","E vent-Calling-Line-Number":"1694","Event-Sequence":"1548253",...} {"Event-Name":"CHANNEL_STATE","Event-Date-Local":"2021-03-25 15:19:33","Event-Date-GMT":"Thu, 25 Mar 2021 15:19:33 GMT","Event-Date-Timestamp":"1616685573913991","Event-Calling-File":"switch_ channel.c","Event-Calling-Function":"switch_channel_perform_set_running_stat e","Event-Calling-Line-Number":"2341","Event-Sequence":"1548254",...}
participants (1)
-
nalmeida@gocontact.pt