This didn't work. I would still like to see if it is possible to Restrict via User-Agent and Max Contacts so that you could allow a Deskhome and a Softphone register with a Max of 1 per User-Agent or something like that.<br /><br /><br /><br />On , ccppprogrammer <ccppprogrammer@gmail.com> wrote:<br />> I have the same problem with some UAC.To resolve that issue I added this to my config:<br />> <br />> <br />> if($ua =~ "(dlink)|(MP204)")<br />> {<br />> if (!save("location","rp1"))<br />> <br />> {<br />> sl_reply_error();<br />> exit;<br />> }<br />> append_to_reply("Contact: $ct;expires=$hdr(Expires)\r\n");<br />> <br />> sl_send_reply("200","OK");<br />> }<br />> else<br />> {<br />> if(!save("location"))<br />> {<br />> <br />> xlog("L_ERR", "[02] Saving contact failed - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");<br />> sl_reply_error();<br />> exit;<br />> <br />> }<br />> }<br />> <br />> On Mon, Oct 31, 2011 at 10:23 PM, osiris123d duane.larson@gmail.com> wrote:<br />> <br />> The main reason that brought about this post is that for some reason my<br />> <br />> devices are registering and for some reason I have multiple Location<br />> <br />> entries. Those extra entries seem to make weird things happen like multiple<br />> <br />> dialogs when a call is made. Or just extra overhead because multiple SIP<br />> <br />> messages are being sent out. I'm not sure why I am all of the sudden<br />> <br />> getting multiple registration entries but it would be good if you could<br />> <br />> limit the entries somehow other then by MAX number or IP.<br />> <br />> <br />> <br />> --<br />> <br />> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Restricting-Max-Contacts-but-allowing-Softphone-tp6932665p6949458.html<br />> <br />> <br />> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br />> <br />> <br />> <br />> <br />> _______________________________________________<br />> <br />> Users mailing list<br />> <br />> Users@lists.opensips.org<br />> <br />> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br />> <br />> <br />> <br />> <br />> <br />> <br />> <br />>