<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks Anca,<br>
<br>
I am not sure I understand your response well enough. <br>
<br>
I am lost by this line. <br>
"Publish messages from asterisk to
OpenSIPS and the Subscribes from the users to OpenSIPS."<br>
<br>
By default if the phones are registered to Opensips, then they
normally send SUBSCRIBE to Opensips; I would then think the
presence_address should be set to the Asterisk server in which when
we get a SUBSCRIBE it forwards it to Asterisk, and then Asterisk
will reply the MWI.<br>
<br>
But now I am lost, because I dont know how Opensips will know about
Asterisk, and I am not sure I would know why Asterisk should even
know about Opensips, (Other than sending NOTIFY when a new message
comes in)<br>
<br>
<br>
My initial thought was that the server address parameter should
point to the Asterisk server, then when the SUBSCRIBE came we call
handle_subscribe which automatically routes to Asterisk and then
Asterisk responds.<br>
<br>
But I guess I am wrong in my assumption.<br>
<br>
Thanks.<br>
<br>
David.<br>
<br>
<br>
<br>
<br>
On 8/30/10 10:30 AM, Anca Vamanu wrote:
<blockquote cite="mid:4C7BC086.7060509@opensips.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
On 08/30/2010 05:01 PM, David J. wrote:
<blockquote cite="mid:4C7BB9BD.7080902@styleflare.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
I am not exactly sure how this module works. <br>
<br>
If I have Asterisk on the Same Box on Port 5070? Then is it just
a
matter of <br>
<br>
Open sips 10.10.10.10:5060<br>
Asterisk 10.10.10.10:5070<br>
<br>
Changing this line?<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<pre class="programlisting">modparam("presence", "server_address", <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="sip:10.10.10.10:5060">"sip:10.10.10.10:5060"</a>)
modparam("presence", "server_address", <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="sip:10.10.10.10:5070">"sip:10.10.10.10:5070"</a>)
</pre>
Thanks in advance for any help.<br>
<br>
(I am thinking the easiest approach is just relaying those
messages to
the Asterisk box, but that would be defeating)<br>
<br>
</blockquote>
Hi David,<br>
<br>
The 'server_address' parameter in presence module must really
point to
the IP:port were OpenSIPS is running.<br>
What you have to do is to send the Publish messages from asterisk
to
OpenSIPS and the Subscribes from the users to OpenSIPS.<br>
<br>
Regards, <br>
<br>
<pre class="moz-signature" cols="72">--
Anca Vamanu
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a>
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>