Set userpart parameter using $rU

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Set userpart parameter using $rU

xaled

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:+[hidden email]: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=+[hidden email] SIP/2.0\r

 

Is there a reason for this behavior?

 

Thanks,

xaled


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Set userpart parameter using $rU

Ben Newlin

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 <[hidden email]> on behalf of xaled <[hidden email]>
Reply-To: OpenSIPS users mailling list <[hidden email]>
Date: Wednesday, July 12, 2017 at 8:45 AM
To: 'OpenSIPS users mailling list' <[hidden email]>
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:+[hidden email]: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=+[hidden email] SIP/2.0\r

 

Is there a reason for this behavior?

 

Thanks,

xaled


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Set userpart parameter using $rU

xaled

Hi Ben,

 

thanks for pointing this out.

I’ll try the fix on my 2.3 opensips.

 

Greetings,

Xaled

 

From: Users [mailto:[hidden email]] On Behalf Of Ben Newlin
Sent: Mittwoch, 12. Juli 2017 14:54
To: OpenSIPS users mailling list <[hidden email]>
Subject: Re: [OpenSIPS-Users] Set userpart parameter using $rU

 

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 <[hidden email]> on behalf of xaled <[hidden email]>
Reply-To: OpenSIPS users mailling list <[hidden email]>
Date: Wednesday, July 12, 2017 at 8:45 AM
To: 'OpenSIPS users mailling list' <[hidden email]>
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 <a href="sip:+1234567@test.com:5080;rn=+1234567">sip:+1234567@...: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 <a href="sip:+1234567;rn=+1234567@test.com">sip:+1234567;rn=+1234567@... SIP/2.0\r

 

Is there a reason for this behavior?

 

Thanks,

xaled


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Loading...