From notifications@github.com Thu Feb 9 15:33:10 2023 From: Victor Seva To: sr-dev@lists.kamailio.org Subject: [sr-dev] [kamailio/kamailio] AOR value at event_route[usrloc:contact-expired] has no domain part even with usrloc.use_domain == 1 (Issue #3365) Date: Thu, 09 Feb 2023 07:32:53 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0175377090==" --===============0175377090== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ### Description When event_route[usrloc:contact-expired] is triggered, the pseudo-var $ulc(ex= p=3D>aor) contains only the userpart of the aor of the expired registration ### Troubleshooting ``` modparam("usrloc", "use_domain", 1) [...] event_route[usrloc:contact-expired] { xlog("L_NOTICE", "Contact ruid $ulc(exp=3D>ruid) to $ulc(exp=3D>addr) for us= er $ulc(exp=3D>aor) expired\n"); } ``` #### Log Messages REGISTER... AOR is ``43991002(a)ce-trunk.lab`` ``` =E2=94=82Feb 9 16:19:47.152646 spce proxy[22541]: DEBUG: ROUTE_REG_HANDLE us= rloc [udomain.c:697]: db_load_urecord(): aor 43991002(a)ce-trunk.lab not foun= d in table location =E2=94=82Feb 9 16:19:47.152816 spce proxy[22541]: DEBUG: ROUTE_REG_HANDLE re= gistrar [path.c:108]: build_path_vector(): received is =E2=94=82Feb 9 16:19:47.152843 spce proxy[22541]: DEBUG: ROUTE_REG_HANDLE re= gistrar [path.c:116]: build_path_vector(): path is <> =E2=94=82Feb 9 16:19:47.152866 spce proxy[22541]: DEBUG: ROUTE_REG_HANDLE re= gistrar [save.c:421]: pack_ci(): generated ruid is: uloc-63e50ec8-580d-1 =E2=94=82Feb 9 16:19:47.154051 spce proxy[22541]: DEBUG: ROUTE_REG_HANDLE re= gistrar [reply.c:334]: build_contact(): created Contact HF: Contact: ;expires=3D600;received=3D"sip:192.168.2.177:5160"= #015#012 =E2=94=82Feb 9 16:19:47.154354 spce proxy[22541]: NOTICE: ROUTE_REG_HANDLE <= script>: Contacts successfully saved, expires in 600s - R=3D=C2=ABsip:ce-trun= k.lab=C2=BB ID=3D=C2=ABpgflewbuqnvhmid(a)debbox.lab=C2=BB UA=3D'Twinkle/1.10.= 2'=20 ``` let it expire.. AOR in event_route[usrloc:contact-expired] is ``43991002`` ``` =E2=94=82Feb 9 16:30:32.980631 spce proxy[22543]: DEBUG: usrloc [udomain.c:1= 050]: udomain_contact_expired_cb(): calling contact expired records - cycle [= 1] =E2=94=82Feb 9 16:30:32.980655 spce proxy[22543]: DEBUG: usrloc [ul_callback= .h:83]: run_ul_callbacks(): contact=3D0x7f434b8a1220, callback type 8/8, id 0= entered =E2=94=82Feb 9 16:30:32.980776 spce proxy[22543]: DEBUG: registrar [regpv.c:= 734]: reg_ul_expired_contact(): saved contact for <43991002> in [exp] =E2=94=82Feb 9 16:30:32.980799 spce proxy[22543]: NOTICE: usrloc:contact-exp= ired