[Freeswitch-users] Change Hangup Cause on Socket Error!
Markus Bönke
mbodbg at gmx.net
Wed Mar 15 00:18:47 MSK 2017
Hello,
In our dialplan we are using an external service to to handle calls. So our dialplan looks like:
<extension name="dialplanserver">
<condition field="destination_number" expression="^(\\+\d{5,20})$">
<action application="info"/>
<action application="socket" data="192.168.1.23:8040 async full"/>
</condition>
</extension>
In the case the external service which is posted by the socket application is down, I can see a "Socket Error!“ error message in the log. The call ends with 480 - "Temporarily Unavailable".
...
[ERR] mod_event_socket.c:454 Socket Error!
...
[DEBUG] mod_sofia.c:549 Responding to INVITE with: 480
...
Is it somehow possible to force hangup cause 503 - "Service Unavailable" instead of 480 - "Temporarily Unavailable" in case of a Socket Error?
Thanks and regards
Markus
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list