I am trying to post a JSON payload to a URL after every call ends/hangs up. I am able to get somewhat close by making changes to: `/usr/share/freeswitch/scripts/app/hangup/index.lua` I would like my changes to persist after an update to that file via an upgrade.
My questions are:
1. What is the best way to call some custom hangup lua that will persist if an upstream update to app/hangup/index.lua is made?
2. I recieve an error calling curl from the hangup script. `switch_core_session.c:2752 sofia/internal/5555551212@123.123.123.123 Channel is hungup and application 'curl' does not have the zombie_exec flag.` Setting that flag does not work
3. Is there another hook that I should/could be using?
It seems like this type of question is covered in a number of different threads without a clear outcome.
TY
My questions are:
1. What is the best way to call some custom hangup lua that will persist if an upstream update to app/hangup/index.lua is made?
2. I recieve an error calling curl from the hangup script. `switch_core_session.c:2752 sofia/internal/5555551212@123.123.123.123 Channel is hungup and application 'curl' does not have the zombie_exec flag.` Setting that flag does not work
3. Is there another hook that I should/could be using?
It seems like this type of question is covered in a number of different threads without a clear outcome.
TY