I was able to manipulate $ru as set by do_routing() to get the behavior I'm
looking for. It's not very clean, but it's functional.
On Thu, Mar 31, 2011 at 9:00 AM, thrillerbee wrote:
> bump.
>
>
> On Tue, Mar 29, 2011 at 11:27 AM, thrillerbee wrote:
>
>> Hopefully my last question:
>>
>> Using a
bump.
On Tue, Mar 29, 2011 at 11:27 AM, thrillerbee wrote:
> Hopefully my last question:
>
> Using append_branch() and $branch allows me to add all destinations as
> branches with q-values. However, I am unable to remove/edit the initial
> entry in $ds as set by do_routing():
>
> Contact: *sip:1
Hopefully my last question:
Using append_branch() and $branch allows me to add all destinations as
branches with q-values. However, I am unable to remove/edit the initial
entry in $ds as set by do_routing():
Contact: *sip:15552345678@1.1.1.1, *;q=1, <
sip:2215552345678@2.2.2.2>;q=0.9, ;q=0.85, <
Bogdan,
Nevermind on that issue; I neglected to notice that I had to create the
branch with append_branch() before setting anything.
Thanks for the help.
Ryan
On Tue, Mar 29, 2011 at 9:52 AM, thrillerbee wrote:
> Bogdan,
>
> When I configure:
> $(branch(uri)[0]) = $ru;
> $(branch(q)[0]) = 100
Bogdan,
When I configure:
$(branch(uri)[0]) = $ru;
$(branch(q)[0]) = 100;
xlog("L_INFO","branch 0 = $(branch(uri)[0]) with q-value
$(branch(q)[0])\n");
I get this debug:
ERROR:core:pv_set_branch_fields: SCRIPT BUG - inexisting branch assigment
[0/0]
ERROR:core:do_assign: setting PV failed
ERROR:c
Hi,
Another tricks:
1) you can read the pending destinations directly from AVPs, without
calling the "use_next_gw()" function. See:
http://www.opensips.org/html/docs/modules/1.6.x/drouting.html#id293166
2) as append_branch() does not accept variables as params, use the
"$branch" variable
Hi thrillerbe,
I think that if you only want to build the list of selected
destinations, you can just call use_next_gw and add the uri in RURI to a
destination string ( because use_next_gw sets the RURI to the
destination-
http://www.opensips.org/html/docs/modules/devel/drouting.html#id251519
I'm trying to get OpenSIPS to act as a REDIRECT server and have run into a
couple issues. I'm using the drouting module to do lookups. Essentially, a
dialed number could have potentially several routes, I want to return a 300
with these routes in the Contact header. Please tell me if this is foolis