From hugh.waite@crocodile-rcs.com Sat Apr 6 12:28:07 2013 From: Hugh Waite To: sr-dev@lists.kamailio.org Subject: Re: [sr-dev] Outbound flow failure handling merged to master Date: Sat, 06 Apr 2013 11:27:58 +0100 Message-ID: <515FF8AE.7000101@crocodile-rcs.com> In-Reply-To: <20831.46333.20780.912261@siika.tutpro.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1869070745==" --===============1869070745== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi Juha, On 06/04/2013 06:39, Juha Heinanen wrote: > Hugh Waite writes: >> A new pv $T_reply_ruid is accessible in this route which can be used to >> unregister a single contact entry. > since ruid is unique id, why is second argument ($tu in the the example) > needed in unregister call: This function had already been implemented so I used it to create a solution quickly. The usrloc tables are indexed on the hash of the AoR, so one is needed to find the correct entry. When functions like save() are called without a URI the To is used by default. Perhaps a new function: unregister_ruid(, , []) would be a cleaner solution. The optional URI is needed for when the AoR is different from the To. Regards, Hugh >> if (!unregister("location", "$tu", "$T_reply_ruid")) > -- juha > > _______________________________________________ > sr-dev mailing list > sr-dev(a)lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev -- Hugh Waite Principal Design Engineer Crocodile RCS Ltd. --===============1869070745==--