No subject
Wed Dec 21 17:12:16 CET 2011
8(7652) DEBUG: usrloc [ul_callback.h:89]: contact=3D0xb50ae7cc, callback t=
ype 4/4, id 3 entered
8(7652) DEBUG: pua_usrloc [ul_publish.c:216]:DELETE type
8(7652) DEBUG: pua_usrloc [ul_publish.c:255]: uri=3D sip:20701090 at 192.168.=
142.130
8(7652) DEBUG: pua_usrloc [ul_publish.c:66]: publ:
8(7652) DEBUG: pua_usrloc [ul_publish.c:67]: uri=3D sip:20701090 at 192.168.1=
42.130
8(7652) DEBUG: pua_usrloc [ul_publish.c:68]: id=3DUL_PUBLISH.NmY5Zjc2YjcwN=
zEwNTk4YTY1NzA2Y2Y0MWQyMGRhOGY.
8(7652) DEBUG: pua_usrloc [ul_publish.c:69]: expires=3D 0
8(7652) DEBUG: pua [send_publish.c:403]: pres_uri=3Dsip:20701090 at 192.168.1=
42.130
8(7652) DEBUG: pua [hash.c:121]: core_hash=3D 444
8(7652) DEBUG: pua [hash.c:174]: record not found
8(7652) DEBUG: pua [send_publish.c:444]: insert type
8(7652) DEBUG: pua [send_publish.c:448]: UPDATE_TYPE and no record found
8(7652) DEBUG: pua [send_publish.c:454]: request for a publish with expire=
s 0 and no record found
8(7652) DEBUG: sl [sl.c:278]: reply in stateless mode (sl)
As an additional information, the pua table in
/usr/share/kamailio/dbtext/kamailio/pua has not been populated.
The AOR was correctly displayed with 'ul show' while the registration was =
valid.
Any suggestion on what am I be doing wrong?
Would it be worth testing the same scenario using mysql as DB?
Thanks in advance for your time.
Giacomo
Truphone Limited is a limited liability company registered in England & Wa=
les, registered office: 5 New Street Square, London EC4A 3TW. Registered N=
o. 04187081. VAT No. GB 851 5278 19.
Tru is a brand name of Truphone and is a Truphone Communications Service. =
Truphone is a trading name for a number of distinct legal entities that op=
erate in combination. www.truphone.com<http://www.truphone.com>.
This e-mail, and any attachment(s), may contain information which is confi=
dential and/or privileged, and is=20intended for the addressee only. If yo=
u are not the intended recipient, you may not use, disclose, copy or distr=
ibute this information in any manner whatsoever. If you have received this=
e-mail in error, please contact the sender immediately and delete it.
--_000_A4E41C20520BEC409F1B16BA9FD72D34C82CD5itixex01_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii=
">
<style>
<!--
@font-face
=09{font-family:"Cambria Math"}
@font-face
=09{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{margin:0cm;
=09margin-bottom:.0001pt;
=09font-size:11.0pt;
=09font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
=09{color:blue;
=09text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
=09{color:purple;
=09text-decoration:underline}
span.EmailStyle17
=09{font-family:"Calibri","sans-serif";
=09color:windowtext}
.MsoChpDefault
=09{font-family:"Calibri","sans-serif"}
@page WordSection1
=09{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
=09{}
-->
</style>
</head>
<body lang=3D"EN-GB" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi all,</p>
<p class=3D"MsoNormal">I've made a clean installation of kamailio 3.2.0 fr=
om ‘http://deb.kamailio.org/kamailio32 squeeze main’</p>
<p class=3D"MsoNormal">repository, on a squeeze debian machine (2.6.32-5-6=
86).</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">Installed also kamailio-presence-modules, same vers=
ion.</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">I'm just using the default kamailio.cfg that comes =
with the package, with these minimal additions:</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">loadmodule "db_text.so"</p>
<p class=3D"MsoNormal">loadmodule "pua.so"</p>
<p class=3D"MsoNormal">loadmodule "pua_usrloc.so"</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">...</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">modparam("pua", "db_url", "=
;text:///usr/share/kamailio/dbtext/kamailio")</p>
<p class=3D"MsoNormal">modparam("pua_usrloc", "default_doma=
in", "192.168.142.130")</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">Inside the registration management logic I've added=
pua_set_publish() right before saving the location:</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">route[REGISTRAR] {</p>
<p class=3D"MsoNormal"> if (is_m=
ethod("REGISTER"))</p>
<p class=3D"MsoNormal"> {</p>
<p class=3D"MsoNormal">...</p>
<p class=3D"MsoNormal"> &nb=
sp; pua_set_publish();</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal"> &nb=
sp; if (!save("location"))</=
p>
<p class=3D"MsoNormal"> &nb=
sp;  =
; sl_reply_error();</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal"> &nb=
sp; exit;</p>
<p class=3D"MsoNormal"> }</p>
<p class=3D"MsoNormal">}</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">When I first register (XLite 4.1 for Windows), pua_=
usrloc correctly gets the callback and is able to generate a PUBLISH reque=
st through pua.</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">But when there's an un-registration, or when the co=
ntact expires, even if the callbacks are correctly fired, the PUBLISH (whi=
ch I'd expect with status 'closed') is not generated.</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">From the logs (debug level 4), an un-registration:<=
/p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">8(7652) DEBUG: usrloc [ul_callback.h:89]: contact=3D=
0xb50ae7cc, callback type 4/4, id 3 entered</p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua_usrloc [ul_publish.c:216]:DELETE=
type</p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua_usrloc [ul_publish.c:255]: uri=3D=
sip:20701090 at 192.168.142.130</p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua_usrloc [ul_publish.c:66]: publ:<=
/p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua_usrloc [ul_publish.c:67]: uri=3D=
sip:20701090 at 192.168.142.130</p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua_usrloc [ul_publish.c:68]: id=3DU=
L_PUBLISH.NmY5Zjc2YjcwNzEwNTk4YTY1NzA2Y2Y0MWQyMGRhOGY.</p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua_usrloc [ul_publish.c:69]: expire=
s=3D 0</p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua [send_publish.c:403]: pres_uri=3D=
sip:20701090 at 192.168.142.130</p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua [hash.c:121]: core_hash=3D 444</=
p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua [hash.c:174]: record not found</=
p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua [send_publish.c:444]: insert typ=
e</p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua [send_publish.c:448]: UPDATE_TYP=
E and no record found</p>
<p class=3D"MsoNormal">8(7652) DEBUG: pua [send_publish.c:454]: request fo=
r a publish with expires 0 and no record found</p>
<p class=3D"MsoNormal">8(7652) DEBUG: sl [sl.c:278]: reply in stateless mo=
de (sl)</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">As an additional information, the pua table in</p>
<p class=3D"MsoNormal">/usr/share/kamailio/dbtext/kamailio/pua has not bee=
n populated.</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">The AOR was correctly displayed with ‘ul show=
’ while the registration was valid.</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">Any suggestion on what am I be doing wrong?</p>
<p class=3D"MsoNormal">Would it be worth testing the same scenario using m=
ysql as DB?</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">Thanks in advance for your time.</p>
<p class=3D"MsoNormal"> </p>
<p class=3D"MsoNormal">Giacomo</p>
</div>
<p class=3D"MsoNormal" style=3D"text-align:justify"><span style=3D"font-si=
ze:11.0pt; font-family:"Arial","sans-serif"">Truphone =
Limited is a limited liability company registered in England & Wales, =
registered office: 5 New Street Square, London EC4A 3TW.
<span class=3D"GramE">Registered No. 04187081.</span> VAT No. <span class=3D=
"GramE">GB 851 5278 19.</span>
</span></p>
<p class=3D"MsoNormal" style=3D"text-align:justify"><span class=3D"SpellE"=
><span style=3D"font-size:11.0pt; font-family:"Arial","sans=
-serif"">Tru</span></span><span style=3D"font-size:11.0pt; font-famil=
y:"Arial","sans-serif""> is a brand name of Truphone a=
nd is a Truphone
Communications Service. Truphone is a trading name for a number of distin=
ct legal entities that operate in combination.
</span><a href=3D"http://www.truphone.com"><span style=3D"font-size:11.0pt=
; font-family:"Arial","sans-serif"">www.truphone.com</=
span></a><span style=3D"font-size:11.0pt; font-family:"Arial",&q=
uot;sans-serif"">.</span></p>
<br clear=3D"both">
This e-mail, and any attachment(s), may contain information which is confi=
dential and/or privileged, and is intended for the addressee only. If you =
are not the intended recipient, you may not use, disclose, copy or distrib=
ute this information in any manner whatsoever. If you have received this e=
-mail in error, please contact the sender immediately and delete it.<BR>
</body>
</html>
--_000_A4E41C20520BEC409F1B16BA9FD72D34C82CD5itixex01_--
More information about the sr-users
mailing list