$realm2upw is assigned the dereferenced value of the hash $user2pass ($realm2upw = %$user2pass). Subsequent use of $realm2upw assumes that $realm2upw is a hash ref, resulting in error:
dispatcher croaked: Can't use string ("2") as a HASH ref while "strict refs" in use at /usr/share/perl5/Net/SIP/Request.pm line 275
$realm2upw should be passed the ref directly or should be assigned as %realm2upw.
Line 226, of Request.pm
$realm2upw is assigned the dereferenced value of the hash $user2pass ($realm2upw = %$user2pass). Subsequent use of $realm2upw assumes that $realm2upw is a hash ref, resulting in error:
dispatcher croaked: Can't use string ("2") as a HASH ref while "strict refs" in use at /usr/share/perl5/Net/SIP/Request.pm line 275
$realm2upw should be passed the ref directly or should be assigned as %realm2upw.