Module: sip-router
Branch: jason.penton/ims_ro_interface
Commit: 14cd92b9d708a0ceeb3f272eae3f61d1682e40a9
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=14cd92b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Jason Penton <jason.penton(a)smilecoms.com>
Date: Mon Feb 25 11:19:15 2013 +0100
core: parser - function to proper handling multipart bodies with same content type
- closes FS#170, based on a patch by Luis Martin
---
parser/parse_body.c | 299 +++++++++++++++++++++++++++++++++++++++++++++++++++
parser/parse_body.h | 11 ++
2 files changed, 310 insertions(+), 0 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=14c…
Hello,
I want to add a new function to the registrar module that will allow me
to remove a contact from the location table when I receive a 430 from an
edge proxy.
I believe I can use the get_ucontact_by_instance() function from usrloc
to remove the exact contact I want (based on contact address,
sip.instance, and reg-id). However, at the point at which I have
received a 430 from the edge proxy (in the failure_route[] on the
registrar) I am not sure how I can determine the sip.instance and
reg-id. As far as I can tell neither of these values is added to the
request when the registrar:lookup() exported function is called.
I don't want to just remove contacts based on address, or even address
and sip.instance, because when outbound is used I will have multiple
contacts with the same address and sip.instance values, with only the
reg-id different.
Does anyone have any suggestions as to how I can obtain this information
in a failure_route[]?
Regards,
Peter