Ok, good to know it was solved.

For the records, if you want to have different number of max contact per user, then you can rely on the xavp configured to registrar xavp_cfg parameter, e.g.,:

modparam("registrar", "xavp_cfg", "reg")

$xavp(reg=>max_contacts) = 2;
save("location");

Cheers,
Daniel


On 04/11/15 12:23, Marino Mileti wrote:

Thank you Daniel!!

I've removed the 0x04 flag and now works great!!

 

Cheers,

Marino

 

On 03/11/15 17:30, Daniel-Constantin Mierla wrote:

 

Hello,

On 03/11/15 11:29, Marino Mileti wrote:

I would like to avoid multiple registration with the same AOR...

I know that there's a parameter for this (max_contacts) but if I set it to 1, all REGISTER overwrite location info.


max_contacts will reject new registrations/contacts if there is already a valid contact in the location table.

A flag as second parameter to save(...) is the option to overwrite existing contact with the one from current registration request.

Cheers,
Daniel

 

Instead i would like to reply with error if a REGISTER arrive with the same AOR just registered on location server.

 

Is that possible? Any help is appreciated J

 

Marino Maria Mileti

marino.mileti@alice.it

 

cid:006a01cb6b0e$67eecdae$_CDOSYS2.0Reduce your energy consumption and keep polar bears on ice! 

 

 


Avast logo

Questa e-mail è stata controllata per individuare virus con Avast antivirus.
www.avast.com





_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat



Avast logo

Questa e-mail è stata controllata per individuare virus con Avast antivirus.
www.avast.com




_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat