<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
not sure is exactly what you are looking for, but check a bit the
rls module. If not matching your needs, you have to develop your own
one.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 10/23/13 9:15 AM, Jan Gaida wrote:<br>
</div>
<blockquote
cite="mid:CAC-ydFoGTtK_NpHrKBe-AjyPGVBJfkyGGpR47pZkMHa6B5oPBQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">Hello,<br>
<div dir="ltr">
<div><br>
</div>
<div>I'd like to explain my scenario and the module I'd like
to develop. I am hoping for comments whether there are
already modules like that or which modules' API I could
use to make the development easier.</div>
<div><br>
</div>
<div>Scenario:</div>
<div>I have two domains (A and B) with a Kamailio server in
each of them configured as presence servers. The agents
from both domains want to subscribe to few resources from
domain A. </div>
<div><br>
</div>
<div>Idea:</div>
<div>In order to reduce traffic between the domains, the
presence server from domain B shall handle the
subscriptions internally and use an internal virtual
presence-user-agent to subscribe to the resources in
domain A.</div>
<div><br>
</div>
<div>SIP Messages:</div>
<div><br>
</div>
<div>Subscription:</div>
<div>1) Subscribe resource.domain.a, from each user agent
ua_n.domain.b <br>
</div>
<div>2) 202 OK from kamailio.domain.b</div>
<div>3) If not already subscribed, Subscribe
resource.domain.a from kamailio.domain.b with virtual
user-agent</div>
<div>4) 202 OK from kamailio.domain.a</div>
<div><br>
</div>
<div>(Repeat for each subscriber)</div>
<div>(Subscription has to be refreshed by an internal timer)</div>
<div> </div>
<div>Events:</div>
<div>1) Publish resource.domain.a to kamailio.domain.a</div>
<div>2) 200 OK from kamailio.domain.a</div>
<div>3) Notify resource.domain.a to kamailio.domain.b</div>
<div>
<div>4) 200 OK from kamailio.domain.b</div>
<div>5) Notify resource.domain.a to each user agent
ua_n.domain.b</div>
<div>6) 200 OK from each ua_n.domain.b</div>
<div><br>
</div>
<div>(Internally, Kamailio of domain B has to forward the
incoming Notify to all locally subscribed user-agents)</div>
<div><br>
</div>
<div>I tried using the PUA module but it does not fit all
my needs. Now I think I will have to develop my own
module in order to achieve everything. Any ideas?<br>
</div>
<div><br>
</div>
<div>Kind regards</div>
<div>Jan Gaida</div>
<div><br>
</div>
<div><br>
</div>
<div>PS: Sorry for mailing to both mail-lists. But I was
not sure which list was the correct for this topic.</div>
<span class="HOEnZb"><font color="#888888">
<div>
<br>
</div>
</font></span></div>
</div>
</div>
<div><br>
</div>
-- <br>
<div dir="ltr">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2" bgcolor="#004054" height="8px"
width="570"> <img moz-do-not-send="true" alt=""
src="http://icons/ecblank.gif" border="0" height="8"
width="1"></td>
</tr>
<tr valign="top">
<td bgcolor="#FFFFFF" width="380"> <font
color="#004054" face="Arial"><b>Jan </b></font><b><font
color="#004054" face="Arial">Gaida</font></b><br>
<font color="#99cc33" face="Arial" size="1">Ingeniero
Desarrollo Software</font></td>
<td> <img moz-do-not-send="true"
src="http://www.amper.es/image/logoamperH.jpg"
style="float:right"></td>
</tr>
<tr>
<td colspan="2"> <img moz-do-not-send="true" alt=""
src="http://icons/ecblank.gif" border="0" height="5"
width="1"></td>
</tr>
<tr valign="top">
<td valign="bottom" width="380"><span
style="color:rgb(0,0,0);font-family:Arial;font-size:x-small">C/
Marconi 3 (PTM)</span><br>
<font color="#000000" face="Arial" size="1">28760 Tres
Cantos<br>
Spain</font><br>
<font color="#8f8f8f" face="Arial" size="1"><a
moz-do-not-send="true"
href="mailto:jan.gaida@grupoamper.com"
target="_blank">jan.gaida@grupoamper.com</a> | </font><a
moz-do-not-send="true"
href="http://www.grupoamper.com" target="_blank"><font
color="#8f8f8f" face="Arial" size="1">www.grupoamper.com</font></a></td>
<td valign="bottom"> <img moz-do-not-send="true"
src="http://www.amper.es/image/lineasamper.jpg"
style="float:right"></td>
</tr>
</tbody>
</table>
<br>
</div>
</div>
<br>
<div><br>
</div>
<div>
<p><font color="#5f497a" face="Times New Roman" size="1">This
message and any attachments are intended only for the use of
the individual to whom they are addressed and it may contain
information that is privileged or confidential. If you have
received this communication by mistake, please notify us
immediately by e-mail or telephone.The storage, recording,
use or disclosure of this e-mail and its attachments by
anyone other than the intended recipient is strictly
prohibited. This message has been verified using antivirus
software; however, the sender is not responsible for any
damage to hardware or software resulting from the presence
of any virus.</font></p>
<p><font color="#5f497a" face="Times New Roman" size="1"><br>
</font></p>
<p><font color="#5f497a" face="Times New Roman" size="1">Este
mensaje y cualquier anexo son exclusivamente para la persona
a quien van dirigidos y pueden contener información
privilegiada o confidencial. Si usted ha recibido esta
comunicación por error, le agradecemos notificarlo de
inmediato por esta misma vía o por teléfono. Está prohibida
su retención, grabación, utilización o divulgación con
cualquier propósito. Este mensaje ha sido verificado con
software antivirus; sin embargo, el remitente no se hace
responsable en caso de que en éste o en los archivos
adjuntos haya presencia de algún virus que pueda generar
daños en los equipos o programas del destinatario.</font></p>
</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 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Trainings - Berlin, Nov 25-28
- more details about Kamailio trainings at <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> -
</pre>
</body>
</html>