[sr-dev] [kamailio/kamailio] lost: lost_held_dereference do not handles error message (#2724)
sergey-safarov
notifications at github.com
Mon May 3 08:03:13 CEST 2021
As an option, we can set HELD_ERROR_CODE and normal HELD response and construction like
```
modparam("lost", "xavp_responce", "held_responce")
...
lost_held_dereference("$(var(url){s.unbracket})", "emergencyDispatch", "civic geodetic", "$var(pidf)", "$var(err)");
switch ($xavp(held_responce[0]=>HELD_ERROR_CODE)) {
case "responceWithPresence":
route(ADD_LOCATION_BY_VALUE);
case "responceWithLocationUriSet":
route(ADD_LOCATION_BY_REFERENCE);
case "responceWithPresenceAndLocationUriSet":
route(ADD_LOCATION_BY_VALUE);
route(ADD_LOCATION_BY_REFERENCE);
case "badHeldResponce":
route(TRY_OTHER_LOCATION_METHOD);
case "locationUnknown":
xlog(L_ERR, "Received LIS error response: $(varLisErrorMessage)");
route(TRY_DEFAULT_PSAP);
case "generalLisError":
xlog(L_ERR, "Received unexpected LIS error response: $(varLisErrorMessage)");
route(TRY_OTHER_LOCATION_METHOD);
default:
xlog(L_WARNING, "Received unexpected LIS response: $xavp(held_responce[0]=>HELD_ERROR_CODE) - $xavp(held_responce[0]=>HELD_ERROR_MESSAGE)");
route(TRY_DEFAULT_PSAP);
}
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2724#issuecomment-831040777
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210502/d0e7ffe0/attachment.htm>
More information about the sr-dev
mailing list