[OpenSIPS-Users] Set userpart parameter using $rU

Ben Newlin Ben.Newlin at genesys.com
Wed Jul 12 08:54:18 EDT 2017


Xaled,

I ran into this issue very recently myself. Please reference this thread from the mailing list: http://lists.opensips.org/pipermail/users/2017-July/037666.html

Thanks,
Ben


From: Users <users-bounces at lists.opensips.org> on behalf of xaled <xaled at web.de>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org>
Date: Wednesday, July 12, 2017 at 8:45 AM
To: 'OpenSIPS users mailling list' <users at lists.opensips.org>
Subject: [OpenSIPS-Users] Set userpart parameter using $rU

Hello,

I cannot set the userpart parameter in the RURI using $rU. The needed parameter always becomes the URI and not userpart parameter.

rewriteuser("+1234556;rn=+1234567");
or
$rU = "+1234556;rn=+1234567";

Produces the same result with the userpart parameter becoming URI parameter:

"INVITE sip:+1234567 at test.com:5080;rn=+1234567 SIP/2.0\r

Only modifying the whole URI using $ru works as needed:

$ru="sip:" + "+1234567;rn=+1234567" + "@" + "test.com";

"INVITE sip:+1234567;rn=+1234567 at test.com SIP/2.0\r

Is there a reason for this behavior?

Thanks,
xaled
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170712/37eb8bab/attachment-0001.html>


More information about the Users mailing list