Daniel,<br><br> I got this part working, in the case of the absence
of $du (i.e. no received parameter) I just exclude it and all works
well! Thanks guys!<br><br>* fixed reply to all.<br><br><div class="gmail_quote">On Thu, Apr 30, 2009 at 1:16 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<div class="im"><br>
<br>
On 04/29/2009 08:35 PM, Brandon Armstead wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Daniel,<br>
<br>
You are correct it is not set for this usrloc. Should I be able to just not modify $du in this case?<br>
</blockquote>
<br></div>
I do not understand what you mean now?!?!<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks!<div class="im"><br>
<br>
On Wed, Apr 29, 2009 at 7:39 AM, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>> wrote:<br>
<br>
Hello,<br>
<br></div><div><div></div><div class="h5">
$du is set by usrloc only if there is a received value in the<br>
location record. Can you check if you have it in db?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<br>
On 04/29/2009 11:45 AM, Brandon Armstead wrote:<br>
<br>
Daniel,<br>
<br>
Yes I'm doing an append_hf("X-Duri: $du\r\n"); inside of<br>
branch_route[] i.e.:<br>
<br>
branch_route[2]<br>
{<br>
if(isbflagset(4)){<br>
# thats me!<br>
} else {<br>
# at this point X-Duri is null, so we are not saving it<br>
from the lookup?<br>
# we need to save this to pass onto Proxy B, however<br>
the value is NULL at this point, and at the point of Proxy B<br>
(when received).<br>
append_hf("X-Duri: $avp(s:duri)\r\n");<br>
if(isbflagset(6)){<br>
$du = "sip:PROXY_B;transport=udp;";<br>
}<br>
}<br>
<br>
xlog("L_INFO", "[$ci][branch_route][$T_branch_idx] ru=$ru<br>
fu=$fu tu=$tu si=$si flag=$bF du=$du");<br>
}<br>
<br>
Then when X-Duri reaches Proxy B, if I see the INVITE comes<br>
from Proxy A, I take X-Duri and restore "$du" with the correct<br>
value.<br>
<br>
However this is causing issues now as the value is <null>,<br>
I've tried saving $du into avp after looking up usrloc, I've<br>
tried simply calling $du in branch_route[], and I've tried<br>
saving $du in loose_route() into an avp, all to no avail.<br>
<br>
What am I missing here as far as passing the value of $du from<br>
branch route to header, to pass along to Proxy B.<br>
<br>
Thanks again!<br>
<br>
On Wed, Apr 29, 2009 at 2:42 AM, Daniel-Constantin Mierla<br>
<<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br></div></div><div><div></div><div class="h5">
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>>> wrote:<br>
<br>
<br>
<br>
On 04/29/2009 11:32 AM, Brandon Armstead wrote:<br>
<br>
Daniel,<br>
<br>
It looks like you helped me find part of the problem,<br>
apparently Proxy A was sharing same branch flag as the<br>
one I<br>
used to distinguish which proxy it was. I corrected<br>
this and<br>
now branch flag for branch 1 is 00000060, and branch 2 is<br>
00000040, however now both branches are routed<br>
appropriately<br>
to the correct server, however the X-Duri (to restore to in<br>
the INVITE) is null.<br>
<br>
<br>
I may not followed all discussion branch - the X-Duri is a<br>
header<br>
you append to the message? If yes, it is not visible<br>
immediately<br>
in the script, but you can see it when the messages is ent<br>
to the<br>
network.<br>
<br>
Do I need to save this value into an AVP after<br>
lookup("location")?<br>
<br>
<br>
What you need to do with it? Where is its values taken from?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
Or should it be readily available in branch_route[],<br>
and for<br>
some reason my variable is null?<br>
<br>
P.S. (recap)<br>
Proxy A NAT Branch Flag: 5<br>
Proxy B NAT Branch Flag: 5<br>
<br>
(Problem existed as used Flag 5 to distinguish "itself" as<br>
proxy) -- changed this to 4 so now:<br>
<br>
Proxy A NAT Branch Flag: 4<br>
Proxy B NAT Branch Flag: 6<br>
<br>
Calls are routed to Proxy B<br>
<br>
X-Duri: <null> (as it is null in Proxy A). I'm<br>
append_hf(X-Duri: $du) inside of branch_route[].<br>
<br>
Thanks!<br>
<br>
On Wed, Apr 29, 2009 at 2:17 AM, Daniel-Constantin Mierla<br>
<<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>><br></div></div><div><div></div><div class="h5">
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>>>> wrote:<br>
<br>
<br>
<br>
On 04/29/2009 11:11 AM, Brandon Armstead wrote:<br>
<br>
Daniel,<br>
<br>
No that would be the UAC (I have two clients<br>
behind the<br>
same NAT). The problem is it looks like the<br>
branch flag is<br>
not being set for both for some reason (when<br>
comparing)<br>
even<br>
though in the database it is the same?<br>
<br>
<br>
So you have the brach flag for nat and branch flags<br>
for next<br>
proxy, right? What is the value of branch flag? The<br>
value are<br>
different indeed, but some flags you are looking<br>
for might be<br>
set. It is easier spot if you print the hexa format<br>
of the<br>
flags<br>
rather than decimal one.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
Take a look at the flag= value from each of<br>
those logs<br>
(this<br>
is one call) to a UAC with two registrations<br>
line1/line2.<br>
<br>
On Wed, Apr 29, 2009 at 2:02 AM,<br>
Daniel-Constantin Mierla<br>
<<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>>>>> wrote:<br>
<br>
Hello,<br>
<br>
<br>
On 04/29/2009 10:53 AM, Brandon Armstead wrote:<br>
<br>
Hey guys,<br>
<br>
Still facing a few challenges and<br>
seeing if<br>
any further<br>
input, I'm specifically trying inaki's<br>
suggestions /<br>
method,<br>
but here are the current problems:<br>
<br>
sip:/etc/kamailio/m4cfgs# tail -f<br>
/var/log/openser.log<br>
| grep<br>
-v -E 'non-local|repeated' | grep<br>
branch_route<br>
Apr 29 07:38:05 db06 /sbin/kamailio[21279]:<br>
[<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>>>>>][branch_route][1]<br>
ru=sip:CALLEE@99.XX.XX.XX:5079<br>
fu=<a href="mailto:sip%3ACALLER@sip.example.com" target="_blank">sip:CALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>>>><br>
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a>>>>><br>
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a>>>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a><br></div></div>
<mailto:<a href="mailto:sip%25252525253ACALLER@sip.example.com" target="_blank">sip%252525253ACALLER@sip.example.com</a>>>>>><div><div></div><div class="h5"><br>
<br>
<br>
<br>
tu=<a href="mailto:sip%3ACALLEE@sip.example.com" target="_blank">sip:CALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>>>><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a>>>>><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a>>>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a><br></div></div>
<mailto:<a href="mailto:sip%25252525253ACALLEE@sip.example.com" target="_blank">sip%252525253ACALLEE@sip.example.com</a>>>>>> si=99.XX.XX.XX<div><div></div><div class="h5"><br>
<br>
<br>
<br>
flag=96 du=<null><br>
<br>
<br>
This call is not sent to Proxy B (this is a<br>
result of bflag<br>
not being set) ???<br>
<br>
is the proxy B at 99.XX.XX.XX:5079? If not,<br>
then set<br>
$du to the<br>
address of that proxy. It is null in the log<br>
above.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
My question is "Why", I look at the AOR /<br>
usrloc and<br>
they both<br>
have the "same exact flags set", this call is<br>
rather sent<br>
directly to UAC endpoint.<br>
<br>
---<br>
<br>
Apr 29 07:38:05 db06 /sbin/kamailio[21279]:<br>
[<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>>>><br></div></div><div class="im">
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>><br>
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a><br></div><div class="im">
<mailto:<a href="mailto:77e4c600-147767fb@172.16.1.35" target="_blank">77e4c600-147767fb@172.16.1.35</a>>>>>>][branch_route][2]<br>
ru=sip:CALLEE@99.XX.XX.XX:5062<br>
fu=<a href="mailto:sip%3ACALLER@sip.example.com" target="_blank">sip:CALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>>>><br>
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a>>>>><br></div><div class="im">
<mailto:<a href="mailto:sip%253ACALLER@sip.example.com" target="_blank">sip%3ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a>>>><br>
<mailto:<a href="mailto:sip%25253ACALLER@sip.example.com" target="_blank">sip%253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%2525253ACALLER@sip.example.com" target="_blank">sip%25253ACALLER@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%252525253ACALLER@sip.example.com" target="_blank">sip%2525253ACALLER@sip.example.com</a><br></div>
<mailto:<a href="mailto:sip%25252525253ACALLER@sip.example.com" target="_blank">sip%252525253ACALLER@sip.example.com</a>>>>>><div><div></div><div class="h5"><br>
<br>
<br>
<br>
tu=<a href="mailto:sip%3ACALLEE@sip.example.com" target="_blank">sip:CALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>>>><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a>>>>><br>
<mailto:<a href="mailto:sip%253ACALLEE@sip.example.com" target="_blank">sip%3ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a>>>><br>
<mailto:<a href="mailto:sip%25253ACALLEE@sip.example.com" target="_blank">sip%253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a>>><br>
<mailto:<a href="mailto:sip%2525253ACALLEE@sip.example.com" target="_blank">sip%25253ACALLEE@sip.example.com</a><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a>><br>
<mailto:<a href="mailto:sip%252525253ACALLEE@sip.example.com" target="_blank">sip%2525253ACALLEE@sip.example.com</a><br></div></div>
<mailto:<a href="mailto:sip%25252525253ACALLEE@sip.example.com" target="_blank">sip%252525253ACALLEE@sip.example.com</a>>>>>> si=99.XX.XX.XX<div><div></div><div class="h5"><br>
<br>
<br>
<br>
flag=64 du=sip:PROXY_B;transport=udp;<br>
<br>
<br>
This call is sent to Proxy B (however<br>
Proxy B) -<br>
however the<br>
X-Duri (is null) as it is not existant in<br>
Proxy<br>
A's branch<br>
route? should I save this from right<br>
after the<br>
lookup("location") result into an avp?<br>
<br>
<br>
Again, thank you for all and any help,<br>
thanks!<br>
<br>
On Mon, Apr 27, 2009 at 5:42 PM, Brandon<br>
Armstead<br>
<<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>>>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>>>>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>>>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>><br>
<mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a> <mailto:<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>>>>>>> wrote:<br>
<br>
Klaus, Inaki, Daniel,<br>
<br>
Thanks! Sorry I did not see this<br>
email come<br>
through, I'm<br>
going to go ahead and give this method<br>
a go,<br>
and I'll<br>
update with<br>
the results, I have optimistic views.<br>
<br>
As for the reason I was rewriting $ru and<br>
setting $du to<br>
null, is<br>
because originally when I just changed<br>
$du to the<br>
'destination<br>
proxy' it did not seem to work at all<br>
(I do<br>
not even<br>
recall<br>
what<br>
exactly what was happening) however I<br>
decided<br>
to just<br>
change $ru,<br>
and have the other proxy just "lookup"<br>
the usrloc<br>
information<br>
again. Again, this method looks<br>
interesting and<br>
I'll let<br>
you guys<br>
know how it goes, thanks for all the input<br>
and help!<br>
<br>
Sincerely,<br>
Brandon.<br>
<br>
<br>
On Fri, Apr 24, 2009 at 1:18 AM, Klaus<br>
Darilion<br>
<<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>>>><br></div></div><div><div></div><div class="h5">
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>>>>>> wrote:<br>
<br>
<br>
<br>
Brandon Armstead schrieb:<br>
<br>
Klaus,<br>
<br>
So I took you and Inaki's<br>
input and<br>
essentially<br>
constructed a setup like so<br>
after the<br>
lookup("location") call:<br>
<br>
if(isbflagset(1)){<br>
$du = null;<br>
$rd = "P1";<br>
} else if(isbflagset(2)){<br>
$du = null;<br>
$rd = "P2";<br>
} else if(isbflagset(3)){<br>
$du = null;<br>
$rd = "P3";<br>
} else if(isbflagset(4)){<br>
$du = null;<br>
$rd = "P4";<br>
}<br>
<br>
<br>
1. The above code has to be in the<br>
branch_route<br>
block -<br>
otherwise multiple registrations<br>
of a single<br>
user are not<br>
handled correctly.<br>
<br>
2. you are rewriting the RURI. You<br>
should<br>
not do<br>
that<br>
as some<br>
clients wants to the in the RURI<br>
the Contact<br>
provided<br>
during<br>
REGISTER.<br>
<br>
3. probably you use<br>
fix_nated_register() to<br>
store the<br>
public<br>
IP:port of the client too. After<br>
lookup, this<br>
information is<br>
written to DURI. Thus, by setting<br>
$du you<br>
overwrite<br>
this info.<br>
You should put it into a special<br>
header<br>
so that<br>
you can<br>
restore it in the other proxy.<br>
<br>
Here a snippet how it should work<br>
(untested, no<br>
warranty): ( I<br>
use the term "originating" proxy<br>
for the<br>
proxy which<br>
received<br>
the INVITE and the term "serving"<br>
proxy<br>
for the<br>
proxy which<br>
handles the<br>
connection/registration of a<br>
certain SIP<br>
client).<br>
<br>
e.g:<br>
Alice -----INVITE-----><br>
P1------->P2----->Bob2<br>
/ \<br>
/ \<br>
/ V<br>
V P3---->Bob3<br>
Bob1<br>
<br>
Bob's client Bob1 is connected to P1.<br>
Bob's client Bob2 is connected to P2.<br>
Bob's client Bob3 is connected to P3.<br>
<br>
So, P1 is the originating proxy.<br>
P2 is the<br>
serving proxy of<br>
Bob2. ....<br>
<br>
We do NAT traversal (note: we must<br>
not call<br>
fix_nated_contact() for messages sent<br>
between the<br>
proxies!):<br>
the originating proxy for the<br>
call-leg to the<br>
caller, the<br>
serving proxy for the call-leg to<br>
the callee.<br>
The RTP proxy will be managed by the<br>
originating<br>
proxy<br>
only.<br>
<br>
<br>
<br>
route{<br>
if (loose_route()) {<br>
... additional loose route<br>
processing...<br>
if<br>
(check_route_param("rtpproxy=yes")) {<br>
force_rtp_proxy();<br>
setbflag(7);<br>
}<br>
<br>
# downstream: in-dialog request is in<br>
the same<br>
direction as the<br>
# initial request<br>
if (<br>
(check_route_param("nat=caller") &&<br>
is_direction("downstream"))<br>
||<br>
(check_route_param("nat=callee") &&<br>
is_direction("upstream"))) {<br>
fix_nated_contact();<br>
} else if<br>
(check_route_param("nat=both") {<br>
fix_nated_contact();<br>
setbflag(8);<br>
} else {<br>
setbflag(8);<br>
}<br>
<br>
t_on_reply("1");<br>
t_relay();<br>
exit();<br>
}<br>
...<br>
<br>
# I am proxy 1<br>
if ((src_ip=ip.of.proxy.2) ||<br>
(src_ip=ip.of.proxy.3)...) {<br>
# request comes from other proxy,<br>
that<br>
means I<br>
am the<br>
# serving proxy<br>
# do not lookup(), RURI is<br>
already set and<br>
# DURI is provided in our X-DURI<br>
header<br>
$du = $header(X-DURI);<br>
# we do not care about an RTP<br>
proxy because<br>
that's the<br>
task<br>
of the<br>
# proxy which performed the<br>
lookup() (the<br>
originating<br>
proxy)<br>
# add some record-route cookie to<br>
mark<br>
that we<br>
should<br>
perform<br>
# SIP NAT traversal for the callee<br>
add_rr_param(";nat=callee");<br>
# activate reply_route to<br>
fix_nated_contact of<br>
callee<br>
setbflag(8); # flag 8 = fix contact<br>
t_on_reply("1");<br>
record_route();<br>
t_relay();<br>
exit;<br>
}<br>
<br>
...<br>
# a new request - thus I am the<br>
originating proxy<br>
<br>
if ($dU looks like phone number) {<br>
... route to Gateway....<br>
exit;<br>
}<br>
<br>
if (!lookup("location")) {<br>
sl_send_reply("404","not found");<br>
exit;<br>
}<br>
# activate branch route to have<br>
dedicated<br>
routing per<br>
branch<br>
t_on_branch("1");<br>
<br>
# activate reply route to activate<br>
RTP proxy<br>
t_on_reply("1");<br>
<br>
# NAT traversal<br>
fix_nated_contact();<br>
<br>
record_route();<br>
t_relay();<br>
exit;<br>
}<br>
<br>
branch_route[1]{<br>
if(isbflagset(1)){<br>
# oh, that's me<br>
<br>
# add some record-route cookie<br>
to mark<br>
that we<br>
should<br>
perform<br>
# SIP NAT traversal for the<br>
callee and<br>
caller<br>
add_rr_param(";nat=both");<br>
<br>
# add some record-route cookie<br>
to mark<br>
that we are<br>
# in charge for the RTP proxy<br>
add_rr_param(";rtpproxy=yes");<br>
<br>
force_rtp_proxy();<br>
setbflag(7); # flag 7 = RTP proxy<br>
} else {<br>
# add some record-route cookie<br>
to mark<br>
that we<br>
should<br>
perform<br>
# SIP NAT traversal for the caller<br>
add_rr_param(";nat=caller");<br>
<br>
# we have to route the request<br>
to the<br>
serving<br>
proxy<br>
# write DURI in the header<br>
append_hf("X-DURI: $du");<br>
if(isbflagset(2)){<br>
$du =<br>
sip:ip.of.proxy.2;transport=udp;<br>
} else if(isbflagset(3)){<br>
$du =<br>
sip:ip.of.proxy.3;transport=udp;<br>
} else if(isbflagset(4)){<br>
$du =<br>
sip:ip.of.proxy.4;transport=udp;<br>
}<br>
}<br>
}<br>
<br>
reply_route[1]{<br>
if (isbflagset(7) &&<br>
has_body("application/sdp")) {<br>
force_rtp_proxy()<br>
}<br>
if (isbflagset(8)) {<br>
fix_nated_contact()<br>
}<br>
}<br>
<br>
<br>
<br>
Note: this code does not care<br>
about the<br>
received<br>
socket<br>
of the<br>
proxy. Thus it works if the proxy<br>
listens<br>
only<br>
on one port.<br>
<br>
regards<br>
klaus<br>
<br>
<br>
On each Proxy, I changed the code<br>
appropriately<br>
excluding<br>
the Proxy from itself (so it<br>
does not<br>
forward to<br>
itself).<br>
I'm noticing weird behavior<br>
however<br>
as it<br>
seems as if<br>
what is happening is it<br>
created other<br>
issues<br>
such as:<br>
<br>
[INCOMING SERVER] -> P1 -> P2<br>
-> P1<br>
-> (loop?)<br>
<br>
Also I setup this test amongst two<br>
development<br>
servers (in<br>
which case it worked without<br>
issues).<br>
Once I<br>
included in<br>
more development instances<br>
into the<br>
ring it<br>
seemed<br>
as if<br>
the flags were being set when<br>
they should<br>
not be?<br>
<br>
I.e. I placed a call FROM UA1<br>
(with<br>
bflag 5 SET)<br>
From the<br>
above example configuration ^<br>
code.<br>
If you<br>
notice<br>
(flag<br>
5) is missing. To UA2 (Flag 3),<br>
again this<br>
looked<br>
to be<br>
doing some strange things such as<br>
acting as<br>
if another<br>
flag was set when it should<br>
not have<br>
been, thus<br>
forwarding<br>
to the wrong proxy or the<br>
wrong proxy<br>
order. Do<br>
you guys<br>
have any further thoughts or<br>
input on<br>
this?<br>
Thanks!<br>
<br>
On Thu, Apr 23, 2009 at 12:31 AM,<br>
Klaus Darilion<br>
<<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>>>>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
<mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank"></a></div></div></blockquote>...<br><br>[Message clipped] </blockquote></div><br>