[OpenSIPS-Users] Restricting Max Contacts but allowing Softphone
Duane Larson
duane.larson at gmail.com
Thu Oct 27 15:17:20 CEST 2011
Can the values in the AVPOPS be IP:PORT or just IPs.
On Oct 27, 2011 7:03 AM, "Vlad Paiu" <vladpaiu at opensips.org> wrote:
> **
> Hello,
>
> The docs pretty much says it all. " This function returns true if there are
> any other contacts registered, different from the ones from the IPs avp."
>
> The function receives an AVP, but a single AVP does not mean a single
> value, as AVPs are a stack of values. So if you keep pushing IPs into an AVP
> and pass that AVP to the is_other_contact func, it will return true if, for
> the particular AOR in the Register message, there are Contacts registered
> from other IPs than the ones passes in the AVP.
>
> Regards,
>
> Vlad Paiu
> OpenSIPS Developer
>
>
> On 10/27/2011 02:54 PM, Duane Larson wrote:
>
> I looked at that function but wasn't really sure about what value should
> gobim the AVPOPS. And also want that AVPOPS is compared too?
> On Oct 27, 2011 6:13 AM, "Vlad Paiu" <vladpaiu at opensips.org> wrote:
>
>> Hello,
>>
>> Just an idea, maybe you can use the is_other_contact() function exported
>> by the registrar module [1], and somehow differentiate at IP level the
>> Deskphone from the Softphone, and reject registrations based on the func's
>> result. Though I'm not really sure if this is possible in your case...
>>
>> [1]
>> http://www.opensips.org/html/docs/modules/devel/registrar.html#id293043
>>
>> Regards,
>>
>> Vlad Paiu
>> OpenSIPS Developer
>>
>>
>> On 10/26/2011 10:54 PM, duane.larson at gmail.com wrote:
>>
>> I was wondering if it was possible to do the following scenario
>>
>> I want to make sure that DeskphoneA can only have one contact entry in the
>> Location table but that contact entry has to be the most up-to-date in case
>> the deskphone loses power or internet connectivity. Therefore I need to use
>> the "f" flag in the save() function. I would also like for a SoftphoneA to
>> be able to register and have a contact entry that is the most up-to-date in
>> case the softphone laptop loses power or internet connectivity.
>>
>> How can I achieve this? If I do save("location","fc2") then this might
>> allow for DeskphoneA and SoftphoneA to be registered at the same time, but
>> there is no guarantee that the deskphone won't overwrite the softphone and
>> vice versa.
>>
>>
>> _______________________________________________
>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111027/c97cda5e/attachment.htm>
More information about the Users
mailing list