[Kamailio-Users] DNS lookup for requests within dialog

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 24 12:06:29 CEST 2009


Hello,

On 24.09.2009 11:47 Uhr, catalina oancea wrote:
> Hi all,
>
>
> I tested the following scenario:
>
> astreisk                        kamailio                provider(hostname)
>         -------------------->    dns lookup     -------------------->
>           REGISTER 1                              REGISTER 1
>
>          <--------------------                      <--------------------
>           401                                          401
>
>           -------------------->   dns lookup     -------------------->
>           REGISTER 2                              REGISTER 2
>           (same dialog, increased cseq)
>
>
>
> It seems that kamailio does dns lookup again when receiving REGISTER
> 2, although both registers are part of the same dialog. Is this the
> expected behavior?
>
>   
IIRC now, there is no place in registrar related modules (registrar and 
usrloc) where DNS query is done. You have some checks in your config 
that caused that.

There is also an option to fetch existing contacts from location and see 
if it is an update (matching by call id and cseq) and do directly 
save("location").

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
* Kamailio SIP Masterclass, Nov 9-13, 2009, Berlin
* http://www.asipto.com/index.php/sip-router-masterclass/





More information about the sr-users mailing list