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@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@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@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@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
When using REGISTER's contact address the message should be sent directly to the endpoint, nothing to do with the proxy.
You can set the DNS poiting to server's IP in the /etc/hosts, from server machine. That will be available only on that machine.
Daniel
On 9/10/2004 11:50 AM, Jankowski, Jan wrote:
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@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@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@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@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
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers