Hi,
In my scenario kamailio is not a registrar, it's just a proxy forwarding requests from asterisk to the provider.
Thanks, Catalina
2009/9/24 Daniel-Constantin Mierla miconda@gmail.com:
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/