<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 bgcolor="#004054" colspan="2" height="8px" width="570">
                                <img alt="" border="0" height="8" src="http://icons/ecblank.gif" 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 src="http://www.amper.es/image/logoamperH.jpg" style="float:right"></td>
                </tr>
                <tr>
                        <td colspan="2">
                                <img alt="" border="0" height="5" src="http://icons/ecblank.gif" 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 href="mailto:jan.gaida@grupoamper.com" target="_blank">jan.gaida@grupoamper.com</a> | </font><a href="http://www.grupoamper.com" target="_blank"><font color="#8f8f8f" face="Arial" size="1">www.grupoamper.com</font></a></td>


                        <td valign="bottom">
                                <img 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" size="1" face="Times New Roman">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" size="1" face="Times New Roman"><br></font></p><p><font color="#5f497a" size="1" face="Times New Roman">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>