[Serusers] msilo performs DNS-Lookup to domain name
Jankowski, Jan
Praktikant5 at liz.lsa-net.de
Fri Sep 10 11:50:40 CEST 2004
Setting use_contact parameter to 1 doesn't work....msilo seems to ignore
the usrloc db even when doing "lookup('location') before.
I'm not behind a NAT.
Log:
(XXXX = domain name)
0(2013) MSILO:m_dump: dumping [1] messages for <sip:user at XXXX>!!!
0(2013) MSILO:msg_list_check_msg: checking msgid=1
0(2013) MSILO:msg_list_check_msg: msg added to sent list.
0(2013) MSILO:m_dump: msg [1-1] for: sip:user at XXXX
0(2013) MSILO:m_dump: sending composed body
0(2013) DEBUG: mk_proxy: doing DNS lookup...
0(2013) get_record: lookup(_sip._udp.XXXX, 33) failed
0(2013) sip_resolvehost: no SRV record found for XXXX, trying 'normal'
lookup...
0(2013) ERROR: mk_proxy: could not resolve hostname: "XXXX"
0(2013) ERROR: uri2proxy: bad host name in URI <sip:user at XXXX>
0(2013) ERROR: uri2sock: Can't create a dst proxy
0(2013) t_uac: no socket found
0(2013) DEBUG:destroy_avp_list: destroing list (nil)
0(2013) receive_msg: cleaning up
On 9/10/2004 11:27 AM, Daniel-Constantin Mierla wrote:
>>I have a Problem using the msilo module.
>>
>>Storing offline messages works fine but if a user comes online, stored
>>messages will not be sent to him, because msilo tries to lookup the
>>domain name in the stored uri.
>>This is a Problem, because looking up this domain name will not give
the
>>ip address of the ser machine.
>>
>>Here are two parts of my ser.cfg:
>>
>>modparam("msilo", "db_url", "sql://ser:heslo@localhost/ser")
>>modparam("msilo", "db_table", "silo")
>>modparam("msilo", "registrar", "sip:admin at localhost")
>>
>>
>>if (method=="REGISTER") {
>> if (!www_authorize("", "subscriber")) {
>> www_challenge("", "1");
>> sl_send_reply("403", "Only registered users are
>>allowed");
>> break;
>> };
>> save('location');
>> m_dump();
>> break;
>>};
>>
>>
>>I'm using the example from the standard msilo.cfg to store the
messages.
>>
>>Is there a way to solve this without using a real hostname for ser?
>>
>>
>you can force msilo to send the messages to the address from REGISTER's
>contact header (set use_contact parameter to 1 -- see the README file).
>This would have some problems if the user is behind the a nat. Another
>way would be to set an outbound proxy -- it is on my to-do list for
some
>while, but no time to do it. I will give some priority.
>
>>Why msilo doesn't use the users real ip address stored in the usrloc
>>database?
>>
>>
>See above, you can force to sent to the contact address registered at
>that moment. In the usrloc table can be more than one addresses -- make
>no sense to send it again to an old contact since it was a try when
that
>address was registered.
>
>Daniel
>
>>
>>Jan
>>
More information about the sr-users
mailing list