Skip to content

Commit

Permalink
uac-auth: take realm from reply
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Jan 30, 2025
1 parent a3e1121 commit 2ec7c57
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion uac-auth/03.register-uac-auth-avp-plain/opensips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ failure_route[register_failure] {
if (!t_check_status("401"))
exit;
$avp(username) = "testing";
$avp(realm) = "192.168.52.1";
$avp(realm) = $(<reply>challenge.realm);
$avp(password) = "T3st|n6";
if (uac_auth())
t_relay();
Expand Down
2 changes: 1 addition & 1 deletion uac-auth/04.register-uac-auth-avp-ha1/opensips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ failure_route[register_failure] {
if (!t_check_status("401"))
exit;
$avp(username) = "testing";
$avp(realm) = "192.168.52.1";
$avp(realm) = $(<reply>challenge.realm);
$avp(password) = "0x0b34cb40c28265e4e66a2ec1cbae1850";
if (uac_auth())
t_relay();
Expand Down
2 changes: 1 addition & 1 deletion uac-auth/07.register-uac-auth-int-avp-plain/opensips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ failure_route[register_failure] {
if (!t_check_status("401"))
exit;
$avp(username) = "testing";
$avp(realm) = "192.168.52.1";
$avp(realm) = $(<reply>challenge.realm);
$avp(password) = "T3st|n6";
if (uac_auth())
t_relay();
Expand Down
2 changes: 1 addition & 1 deletion uac-auth/08.register-uac-auth-int-avp-ha1/opensips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ failure_route[register_failure] {
if (!t_check_status("401"))
exit;
$avp(username) = "testing";
$avp(realm) = "192.168.52.1";
$avp(realm) = $(<reply>challenge.realm);
$avp(password) = "0x0b34cb40c28265e4e66a2ec1cbae1850";
if (uac_auth())
t_relay();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ failure_route[register_failure] {
if (!t_check_status("401"))
exit;
$avp(username) = "testing";
$avp(realm) = "192.168.52.1";
$avp(realm) = $(<reply>challenge.realm);
$avp(password) = "T3st|n6";
if (uac_auth())
t_relay();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ failure_route[register_failure] {
if (!t_check_status("401"))
exit;
$avp(username) = "testing";
$avp(realm) = "192.168.52.1";
$avp(realm) = $(<reply>challenge.realm);
$avp(password) = "0x0b34cb40c28265e4e66a2ec1cbae1850";
if (uac_auth())
t_relay();
Expand Down

0 comments on commit 2ec7c57

Please sign in to comment.