Hi, Jayesh!
If I understood correctly, you only want to have a single contact in
memory, right? If so, you can use the save[1] function, with flags c and
f. Something like:
save("location", "fc1");
[1] http://www.opensips.org/html/docs/modules/2.1.x/registrar.html#id294034
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 11/17/2015 08:37 AM, Jayesh Nambiar wrote:
Hello All,
Just bumping in to check if there's a better way to remove an existing
contact from the location. My idea was to remove from the location a
record with particular callid or particular contact on specific
scenarios. So I do the following:
On a successful registration I store the some id that my device has
along with callid and contact.
On a subsequent registration, I compare the id and callid, if they are
different from the current registration, I need to remove the existing
contact with this callid
If the id and callid is same, I do nothing.
Thanks,
- Jayesh
On Tue, Nov 10, 2015 at 6:59 PM Jayesh Nambiar <[email protected]
<mailto:[email protected]>> wrote:
Forgot to mention. I'm using version 2.1.
Thanks,
- Jayesh
On Tue, Nov 10, 2015 at 6:01 PM Jayesh Nambiar
<[email protected] <mailto:[email protected]>> wrote:
Hello,
I've been trying to delete specific contact for AOR using the
remove function in the registrar module, but somehow it
doesn't remove it from the location.
My db_mode is 0 as I only want to store it in opensips memory.
I hav the "use_domain" param as 1. On register, the contact
gets stored in the following format:
sip:[email protected]:49612;rinstance=477b5477848ba584;transport=tcp
I tried multiple ways to remove this:
1) remove("location", "sip:[email protected]
<mailto:[email protected]>",
"sip:[email protected]:49612;rinstance=477b5477848ba584;transport=tcp")
2) remove("location", "sip:[email protected]
<mailto:[email protected]>",
"sip:[email protected]:49612
<http://sip:[email protected]:49612>")
Also, I'd like to mention that I have an edge proxy in the
middle who proxies the REGISTER to this Registrar and I use
the PATH module to route back reliably. I'm essentially trying
to remove location entry for particular endpoints based on
some conditions.
Any help is appreciated. Thanks,
- Jayesh
_______________________________________________
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