[OpenSIPS-Users] SIP IM with exclusive User-Agent

Ovidiu Sas osas at voipembedded.com
Mon Apr 4 18:16:26 CEST 2011


On Mon, Apr 4, 2011 at 11:55 AM, Bogdan-Andrei Iancu
<bogdan at opensips.org> wrote:
> Hi Dani,
>
>
> On 04/04/2011 06:46 PM, Dani Popa wrote:
>>
>> Hi,
>>
>> How can i send MESSAGES only to users who are registered with exclusiv
>> User-Agent. I mean, A is registerd with User-Agent Jitsi and B is with jitsi
>> and Cisco phone. If A try to send messages to B, i need that messages to be
>> sent only to B on Jitsi, because cisco will replay with "Not Impelemented"
>> and opensips will reply to A with "Not Implemented".
>
> if you do correct scripting, the MESSAGE request will by parallel forked (by
> lookup(location), as you have 2 devices registered for account B) and if at
> least one destination will accept the request, A will receive the 200 OK.

Also, if the REGISTER is advertising the list of supported methods,
performing a lookup with 'm' flag should help:
http://www.opensips.org/html/docs/modules/devel/registrar.html#id292806
The lookup() for MESSAGE requests should return only the the
registered AORs that have support for MESSAGE.


Regards,
Ovidiu Sas



More information about the Users mailing list