Hi Sean,

Please do not confuse SIP AoR ("To:" header of the REGISTER request) with SIP Contacts ("Contact:" header). An AoR may have multiple Contacts.

When using "remove()", you can either delete the entire AoR, or one of its contacts. Please make sure to read all the examples in the docs. Also, as Jarrod suggested, remember to use SIP URIs.

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 11.06.2015 10:44, Jarrod Baumann wrote:
Just referencing the documentation here, 
http://www.opensips.org/html/docs/modules/devel/registrar.html#id294262, you 
may want to specify the following:

remove("location", “sip:[email protected]");

On Jun 11, 2015, at 2:22 AM, seanchann <[email protected]> wrote:

Hi All:
      I want to delete user contact information from location table, but it
not work.
      I use remove function like :
      remove("location", "[email protected]");

      the db_mode is 2 with usrloc module.

      in log:
      no record 'bob' found!


      but use osipsconsole command with 'ul show',  I can see a item about
[email protected].

      have any suggest for me?



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/remove-contact-from-location-tp7597511.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to