[Kamailio-Users] forking on URIs from DB
Robert McGilvray
rmcgilvr at globeop.com
Thu Jul 2 16:13:03 CEST 2009
In the 1.5 code it doesn't look like it's possible to assign the q via
pv assignment. The pv_set_branch function calls append_branch with
Q_UNSPECIFIED.
if (append_branch( msg, &val->rs, 0, 0, Q_UNSPECIFIED, 0,
msg->force_send_socket)!=1 )
Thanks for the help.
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
Sent: Thursday, July 02, 2009 9:23 AM
To: Juha Heinanen
Cc: Robert McGilvray; users at lists.kamailio.org
Subject: Re: [Kamailio-Users] forking on URIs from DB
accodring to doc it should be also possible to assign directly, e.g.:
uri in $avp(firsturi) and Q in $avp(firstq):
$br = $avp(firsturi) + ";q=" + $avp(firstq);
regards
klaus
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:devel#request_
s_first_branch
Juha Heinanen schrieb:
> Robert McGilvray writes:
>
> > I guess that's the part where I'm getting stuck. How do I go about
> > adding my URIs with the proper q values to the dset?
>
> have you tried append_branch with q value, something like this:
>
> append_branch("<sip:foo at bar>;q=0.5");
>
> if that does not work and no-one else on the mailing list has a better
> suggestion, open a new feature request on sr tracker.
>
> i myself get q values into destination set using lookup or enum_query
> function.
>
> -- juha
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
--------------------------------------------------------------------------
This email with all information contained herein or attached hereto may contain confidential and/or privileged information intended for the addressee(s) only. If you have received this email in error, please contact the sender and immediately delete this email in its entirety and any attachments thereto.
More information about the Users
mailing list