[OpenSIPS-Users] presence_mwi Question.
Anca Vamanu
anca at opensips.org
Fri Sep 3 15:32:03 CEST 2010
Hi David,
Yes, you are wrong. It doesn't work that way - if you call
handle_subscribe then the subscribes are handled locally.
For what you want, you just have to forward from the script the
Subscribes for event 'mwi' to asterisk.
Regards,
--
Anca Vamanu
www.voice-system.ro
On 08/31/2010 02:58 PM, David J. wrote:
> Thanks Anca,
>
> I am not sure I understand your response well enough.
>
> I am lost by this line.
> "Publish messages from asterisk to OpenSIPS and the Subscribes from
> the users to OpenSIPS."
>
> 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.
>
> 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)
>
>
> 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.
>
> But I guess I am wrong in my assumption.
>
> Thanks.
>
> David.
>
>
>
>
> On 8/30/10 10:30 AM, Anca Vamanu wrote:
>> On 08/30/2010 05:01 PM, David J. wrote:
>>> I am not exactly sure how this module works.
>>>
>>> If I have Asterisk on the Same Box on Port 5070? Then is it just a
>>> matter of
>>>
>>> Open sips 10.10.10.10:5060
>>> Asterisk 10.10.10.10:5070
>>>
>>> Changing this line?
>>> modparam("presence", "server_address","sip:10.10.10.10:5060")
>>>
>>>
>>> modparam("presence", "server_address","sip:10.10.10.10:5070")
>>>
>>>
>>>
>>> Thanks in advance for any help.
>>>
>>> (I am thinking the easiest approach is just relaying those messages
>>> to the Asterisk box, but that would be defeating)
>>>
>> Hi David,
>>
>> The 'server_address' parameter in presence module must really point
>> to the IP:port were OpenSIPS is running.
>> What you have to do is to send the Publish messages from asterisk to
>> OpenSIPS and the Subscribes from the users to OpenSIPS.
>>
>> Regards,
>>
>> --
>> Anca Vamanu
>> www.voice-system.ro
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100903/9f88ba68/attachment.htm
More information about the Users
mailing list