<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br><div>
<div> </div></div>thank you a lot Henning, your explanation makes perfect sense.<br><br><br>> Date: Wed, 12 Nov 2008 09:09:05 +0100<br>> Subject: RE: [Kamailio-Users] question about register<br>> From: henning.westerholt@1und1.de<br>> To: fborot@hotmail.com<br>> CC: henning.westerholt@1und1.de; users@lists.kamailio.org<br>> <br>> On Tue, November 11, 2008 8:19 pm, Fabian Borot wrote:<br>> ><br>> > txs Henning, the search() works, that block only matches REGISTERs, but my<br>> > point was whether the lookup() function makes sense or not for handling<br>> > REGISTERs [ I see it in some tutorials, I am a beginner to kamailio by the<br>> > way]<br>> ><br>> > as far as handling UN-REGISTRATIONs, would save() fit there as well?<br>> > should I do something special to handle the UN-REGISTRATION or kamailio<br>> > should know that should remove the AOR automaticall when it sees the<br>> > "expires=0" in the Contact HF?<br>> ><br>> ><br>> > also, I see the loop but do not understand why it happens.<br>> <br>> Hi Fabian,<br>> <br>> using the lookup function makes no sense for REGISTERs. An incoming INVITE<br>> is targeted to some user@sip.domain, so you need to do the lookup() to be<br>> able deliver the INVITE to your user. But the REGISTER is targeted to<br>> sip.domain, e.g. your servers, which should just handle them.<br>> <br>> The save() does all the work for you, it also handles unregistrations,<br>> error handling related to REGISTERs and so on.You don't need to handle it<br>> specially.<br>> <br>> The loop happens as the unregistration is not handled by your save() path<br>> in the config (probably because of the wrong check), so the server try to<br>> forward it. The destination was not changed, so it will end up on your<br>> server again, and again..<br>> <br>> I'll later take a look to the docs of the save() function, perhaps this<br>> should be explained a little bit better.<br>> <br>> Henning<br>> <br><br /><hr />Color coding for safety: Windows Live Hotmail alerts you to suspicious email. <a href='http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008' target='_new'>Sign up today.</a></body>
</html>