[OpenSIPS-Devel] [ opensips-Bugs-3349030 ] Need access to SIP URI Q Value

SourceForge.net noreply at sourceforge.net
Wed Jul 6 16:39:20 CEST 2011


Bugs item #3349030, was opened at 2011-07-01 10:37
Message generated for change (Comment added) made by duanelarson123
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3349030&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: trunk
Status: Closed
Resolution: Accepted
Priority: 5
Private: No
Submitted By: Duane Larson (duanelarson123)
Assigned to: Razvan Crainea (razvancrainea)
Summary: Need access to SIP URI Q Value

Initial Comment:
This is in reference to the following Mailing List email

<duane.larson at gmail.com>
I am playing with the $branch variable and also append_branch/serialize_branches and I was wondering how I can accomplish the following 

A call comes in for 1234 
In my script I append_branch() 
So now my branch[0] = 1234 
Now I do $ru = 5678 
Then branch(q)[0] = 80 


Is there any way to set the current SIP URI's Q value? Currently with what I did above 1234 will be called first since I set the Q value to 0.8 and then if no one picks up 5678 will be called second. What if I wanted 5678 to be called first and then 1234 second?



<bogdan at opensips.org>
Hi Duane,

That's a funny situation - internally opensips has a Q value for RURI (used by registrar, enum , etc), but there is no way to get access to that from script level....

Strangely as nobody complained so far on that - you are the unlucky first one :D...

Open a bug report on SF as this breaks the serialization mechanism.

Thanks and regards,
Bogdan

----------------------------------------------------------------------

Comment By: Duane Larson (duanelarson123)
Date: 2011-07-06 09:39

Message:
Awesome. 

Thanks!!

----------------------------------------------------------------------

Comment By: Razvan Crainea (razvancrainea)
Date: 2011-07-06 09:32

Message:
Hi Duane,

I have just added a new pseudo-variable called "ru_q" that permits you to
access the Q value of the RURI[1].
Please update your code to svn revision 8134.

Thanks and regards,
Razvan

[1] http://www.opensips.org/Resources/DocsCoreVar#toc74

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3349030&group_id=232389



More information about the Devel mailing list