<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><div><br></div><div>Hi Guys,</div><div><br></div><div>Following on from my initial query, I have indexing working for reg_fetch_contacts, however now I am </div><div>having issues with branching.</div><div><br></div><div>First, is append_branches() still applicable to kamailio  4.0.6 ? As when I use its not recognised.</div><div><br></div><div>Also I have two contacts registered, contact 0 and contact 1.</div><div><br></div><div>Contact 0 was registered first, then contact 1.</div><div><br></div><div>Now I perform manipulation on the main branch after identifying the user agent for contact 1, and the main</div><div>branch request is sent out as I wish, this uses branch [0] when running debug to the $ru/$du I have modified.</div><div><br></div><div>However with branch [1] this isnt modified which is fine, but uses the contact AOR from Contact 1 and not Contact 0.</div><div><br></div><div>Is this normal behaviour and I just need to improve my logic?</div><div><br></div><div>Any advise on parallel branching where you extract certain credentials from location table, then as a result</div><div>manipulate the $ru and $du as a result, but dont affect any other multiple registrations that would be great!</div><div><br></div><div>Many thanks</div><div><br></div><div>Jon</div><div><br></div><div>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr"><div><br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style>
<div dir="ltr">Hi Guys,<div><br></div><div>I was wondering if anyone could help?</div><div><br></div><div>I am currently using reg_fetch_contacts to manipulate signaling based on the user agent device being used, therefore I use the result of;</div><div><br></div><div><div>if(reg_fetch_contacts("location", "$ru", "callee"))</div><div>{</div><div><span style="font-size:12pt;">  xlog("callee=>user_agent $ulc(callee=>user_agent)\n");</span></div><div><span style="font-size:12pt;">}</span></div><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;">I then use   $ulc(callee=>user_agent) to make routing decisions.</span></div></div><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;">This seems to only return the user-agent device being used for the first registration at that AOR, as I have two devices registered, a Cisco, and a jitsi client, and it only returns the user_agent of the jitsi client I registered first.</span></div><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;">Is it possible to return the user agents of all the devices registered against an AOR so I can manage decisions accordingly?</span></div><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;">Many thanks</span></div><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;">Jon</span></div><div><span style="font-size:12pt;"><br></span></div><div><span style="font-size:12pt;"><br></span></div>                                      </div></div>                                        </div></div>                                        </div></body>
</html>