Module: kamailio
Branch: 5.3
Commit: a38403ca6633b5944acebca245d5d64511a4cbca
URL:
https://github.com/kamailio/kamailio/commit/a38403ca6633b5944acebca245d5d64…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-10-28T19:17:37Z
uac: extend docs for uac_auth() example, only t_relay() on success
- extend docs for uac_auth() example, only t_relay() on success
- otherwise you will get a 'no branches for forwarding' error from tm
(cherry picked from commit 668402e77c19ba4b5b8fc5b6c869ffbf34ea622d)
---
Modified: src/modules/uac/doc/uac_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/a38403ca6633b5944acebca245d5d64…
Patch:
https://github.com/kamailio/kamailio/commit/a38403ca6633b5944acebca245d5d64…
---
diff --git a/src/modules/uac/doc/uac_admin.xml b/src/modules/uac/doc/uac_admin.xml
index ba29c42022..de121a61b8 100644
--- a/src/modules/uac/doc/uac_admin.xml
+++ b/src/modules/uac/doc/uac_admin.xml
@@ -836,8 +836,9 @@ failure_route[TRUNKAUTH] {
if(t_check_status("401|407")) {
$avp(auser) = "test";
$avp(apass) = "test";
- uac_auth();
- t_relay();
+ if (uac_auth()) {
+ t_relay();
+ }
exit;
}
}