<div>I will play with this some more. Thanks for the tip and also thanks for the new $branch PV. That makes Hunt Groups/FindMe a lot easier.</div>
<div> </div>
<div>Appreciate all your work on OpenSIPS!!<br><br></div>
<div class="gmail_quote">On Sat, Oct 24, 2009 at 12:02 PM, Bogdan-Andrei Iancu [via OpenSIPS (Open SIP Server)] <span dir="ltr"><<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3884818&i=0" target="_top" rel="nofollow">[hidden email]</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi, <br><br>osiris123d wrote:
<div><br>> I am not sure if I have just misunderstood how serialize_branches() works or <br>> if this is some kind of bug. <br>> <br>> I have a registered user that gets called and I am using append_branch() to <br>
> add on that users mobile number. I am changing the Q values for both <br>> branches to not be the same value, but when t_relay() is executed the <br>> INVITES are made in parallel to the registered users number and also the <br>
> mobile number. When you read the doc for serialize_branches it says that if <br>> the Q Values are different the calls will be serialize and if they are the <br>> same they will be parallel. Am I missing something here? Here is my code <br>
> <br>> <br>> lookup("location"); <br>> append_branch(); <br>> </div> ^^^^^^^^^^^ <br>this is bogus - the lookup() already sets all necessary branches, so <br>there is no need to do this "append_branch" -> with this cfg, you get an <br>
extra dummy branch (0,1,2) . Simple add the extra branch to point to the <br>mobile number. <br><br>Regards, <br>Bogdan
<div><br>> append_branch("sip:<a href="http://mobile.com/" target="_blank" rel="nofollow">mobile.com</a>"); <br>> <br>> $(branch(q)[0]) = 1000; <br>> $(branch(uri)[1]) = "sip:" + $avp(s:mobile_num) + <br>
> "@<a href="http://pt1.vitelity.net/" target="_blank" rel="nofollow">pt1.vitelity.net</a>"; <br>> $(branch(q)[1]) = 500; <br>> $(branch(duri)[1]) = "sip:<a href="http://pt1.vitelity.net:5060/" target="_blank" rel="nofollow">pt1.vitelity.net:5060</a>"; <br>
> <br>> serialize_branches(1); <br>> next_branches(); <br>> <br>> t_on_reply("1"); <br>> t_on_failure("1"); <br>> t_relay(); <br>> exit; <br>
> <br>> <br>> So the original Request URI is located in the USRLOC and then appended. <br>> Then I set up a place holder for the mobile number by appending <br>> "sip:<a href="http://mobile.com/" target="_blank" rel="nofollow">mobile.com</a>". Then with the new $branch PV's I edit the Q values. So <br>
> in the example above I make the original Request URI's Q value 1000 which <br>> turns out to be a value of Q=1. Then I set the mobile numbers Q value to be <br>> 500 which turns out to be a value of Q=0.5. Since these two Q values are <br>
> different I would expect serialize_branches(1) to make the call Serial, but <br>> in reality I get a parallel call. <br>> <br>> But if I change the Q value for the mobile phone to be something like -500 <br>
> which turns out to be a value of Q=0 then I am able to get a Serial call <br>> where the original Request URI is called first and then after the <br>> fr_inv_timer passes the mobile number is called. <br>> <br>
> Am I missing something here? Sorry if I keep asking questions about how to <br>> get Hunt Grouping/FindmeFollowme to work, but this solution seems like it <br>> should work the way I am thinking it should. <br>
> </div><br><br>_______________________________________________ <br>Users mailing list <br><a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3884583&i=0" rel="nofollow" target="_blank">[hidden email]</a> <br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="nofollow" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/Serialize-Branches-not-working-right-tp3876190p3884818.html">Re: [OpenSIPS-Users] Serialize_Branches not working right</a><br>
Sent from the <a href="http://n2.nabble.com/OpenSIPS-Users-f1449235.html">OpenSIPS - Users mailing list archive</a> at Nabble.com.<br>