<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
if you don't use the other contacts, then might be simpler to just
store one contact per AoR (which will be from last registration) --
see save(...) second parameter flags.<br>
<br>
Don't remember by hart, but registrar or usrloc has a parameter to
control whether to add or not additional branches from a location
lookup - check the readmeas, but I am not sure the first result is
the most recent, you would have to test it or check the sources.<br>
<br>
The last coming in my mind right now would be to program it in
config via reg_fetch_contacts() and $ulc(...).<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 3/22/12 4:49 PM, Krishna Kurapati wrote:
<blockquote
cite="mid:CAOzCjAfDkj_hTc0ge4dG-cjaVp_gbH76oJ8wdGPzWi-LnwQUvg@mail.gmail.com"
type="cite">Hi,
<div><br>
</div>
<div>I am trying to relay the message to the Registered user.
However, I would like to relay only to a recent contact.</div>
<div>In case, there are multiple contact, I do not want to relay
to older contacts.</div>
<div><br>
</div>
<div>I am using t_relay() which is currently forking the request
to all contacts.</div>
<div><br>
</div>
<div>Any other way to accomplish my need?</div>
<div><br>
</div>
<div>Thanks</div>
<div>Krish Kura</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/kamailio-advanced-training/">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
</body>
</html>