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
>>
At 11:14 AM 9/10/2004, Jankowski, Jan 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.
why is this a problem?
>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?
>Why msilo doesn't use the users real ip address stored in the usrloc
>database?
Because these can change.
>Jan
>
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
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?
Why msilo doesn't use the users real ip address stored in the usrloc
database?
Jan
HI,
Apart from the sems cvs version (tag ser_rel_0_8_12), is the version under
/contrib (sems_2004-07-27.tar.gz) in berios also compatible with SER
release 0.8.14?
Thanks,
Markos
Hello Richard,
iam going to the directory of the plugin/ivr/
and then useing the command cvs update
Makefile has not been changed any thing
then i gone to the berlios.de /semsivr
and then i used the browse cvs option
and then i downloaded the Makefile available still
the Makefile is same and when i use the make
the same error it is getting.
**********************************************
r/include/flite -DIVR_WITH_TTS -c Ivr.cpp -o Ivr.o
Ivr.cpp: In member function `virtual void
IvrDialog::onSessionStart(AmRequest*)':
Ivr.cpp:243: no matching function for call to
`IvrPython::cancel()'
make[1]: *** [Ivr.o] Error 1
make[1]: Leaving directory
`/root/answer_machine/plug-in/ivr'
make: [all] Error 2 (ignored)
***********************************************
with regards
serdiehard
--- Richard <richard(a)o-matrix.org> wrote:
> Hi,
>
> Are you sure that it is the latest cvs update?
>
> I committed some changes last weekend. The new
> Makefile is simpler. You just
> change two variables, SCRIPT to Perl+ and TTS to y.
> No need to
> comment/uncomment anything.
>
> Let me know if you still have problems.
>
> Richard
>
>
> > -----Original Message-----
> > From: serusers-bounces(a)lists.iptel.org
> [mailto:serusers-bounces@lists.iptel.org] On
> > Behalf Of ser die
> > Sent: Thursday, September 09, 2004 1:14 AM
> > To: serusers(a)lists.iptel.org
> > Subject: [Serusers] RE: [Sems] ivr with sems and
> ser
> >
> > hello richard ,
> >
> > as per your previous suggestin i got new cvs
> download
> >
> > but i donot know why the same problem is
> presisting
> >
> > for me is either my system lacks some thing for
> that
> >
> > software which i doubt.
> >
> > so now my Make file look like this
> >
>
*****************************************************
> >
> > [root@server ivr]# cat Makefile
> > plug_in_name = ivr
> >
> > #
> > # perl specific
> > #
> > # uncomment the next lines if you want to script
> the
> > ivr with perl scripts
> > # put used Perl modules here, e.g. time, mysql
> etc.
> > PERL_DYNLOAD_MODULES =
> /usr/lib/perl/5.8/auto/IO/IO.so
> > /usr/lib/perl/5.8/auto/Fcntl/Fcntl.so \
> > /usr/lib/perl/5.8/auto/Socket/Socket.so
> > /usr/lib/perl/5.8/auto/DBI/DBI.so \
> > /usr/lib/perl/5.8/auto/Sys/Hostname/Hostname.so
> > /usr/lib/perl/5.8/auto/Sys/Syslog/Syslog.so \
> > /usr/lib/perl/5.8/auto/Sys/Syslog/Syslog.so
> > /usr/lib/perl5/auto/Date/Calc/Calc.so \
> > /usr/lib/perl/5.8/auto/MIME/Base64/Base64.so
> > /usr/lib/perl/5.8/auto/POSIX/POSIX.so \
> > /usr/lib/perl/5.8/auto/Time/HiRes/HiRes.so
> > /usr/lib/perl/5.8/auto/Cwd/Cwd.so \
> > /usr/lib/perl5/auto/Bit/Vector/Vector.so
> > /usr/lib/perl5/auto/DBD/mysql/mysql.so \
> > /usr/lib/perl/5.8/auto/Data/Dumper/Dumper.so
> > /usr/lib/perl/5.8/auto/File/Glob/Glob.so
> >
> > PERL_module_ldflags = `perl -MExtUtils::Embed -e
> > ldopts` -DPERL_IMPLICIT_CONTEXT \
> > $(PERL_DYNLOAD_MODULES)
> > PERL_module_cflags = -DIVR_PERL `perl
> > -MExtUtils::Embed -e ccopts `
> -DPERL_IMPLICIT_CONTEXT
> >
> > #
> > # flite text to speech
> > #
> > # uncomment the next lines if you want to have
> flite
> > text-to-speech (ivr.say("Hello there"); )
> > FLITE_DIR = /usr/src/flite-1.2-release
> > ALT_FLITE_DIR = /usr/include/flite
> > IVR_TTS_module_ldflags = -L$(FLITE_DIR)/lib -lm
> > -lflite_cmu_us_kal -lflite_usenglish \
> > -lflite_cmulex -lflite
> > IVR_TTS_module_cflags = -I$(FLITE_DIR)/include
> > -I$(ALT_FLITE_DIR) -DIVR_WITH_TTS
> >
> >
> > LOCAL_INCLUDES = -I$(FLITE_DIR)/lang/usenglish
> > LD_FLAGS = -ldl -lpthread -lutil -lm -Xlinker
> > --export-dynamic -Xlinker --no-strip-discarded
> >
> >
> > module_ldflags = -ldl -lpthread -lutil -lm
> -Xlinker
> > --export-dynamic \
> > $(PYTHON_module_ldflags) \
> > $(IVR_TTS_module_ldflags) \
> > $(PERL_module_ldflags)
> >
> >
> > # for perl support:
> > # -DIVR_PERL `perl -MExtUtils::Embed -e ccopts `
> > # for flite text-to-speech support -DIVR_WITH_TTS
> > module_cflags = \
> > $(PYTHON_module_cflags) \
> > $(IVR_TTS_module_cflags) \
> > $(PERL_module_cflags)
> >
> > include ../Makefile.app_module
> > [root@server ivr]#
> >
> >
> >
>
*****************************************************
> >
> > and the erroor information is
> >
>
*****************************************************
> > Ivr.cpp: In member function `virtual void
> > IvrDialog::onSessionStart(AmRequest*)':
> > Ivr.cpp:243: no matching function for call to
> > `IvrPython::cancel()'
> > make[1]: *** [Ivr.o] Error 1
> > make[1]: Leaving directory
> > `/root/answer_machine/plug-in/ivr'
> > make: [all] Error 2 (ignored)
> >
> >
>
*****************************************************
> >
> > with regards
> > serdiehard
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail
> SpamGuard.
> > http://promotions.yahoo.com/new_mail
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
I'm having a few issues with the /usr/local/lib/ser/modules/vm.so module. My installation was from ser-0.8.14_linux_i386.tar.gz - I untarred from /, placing the modules in the above location, the executable in /usr/local/sbin/ser and the config file is in /usr/local/etc/ser.cfg.
I currently have the following line in ser.cfg:
# loadmodule "/usr/local/lib/ser/modules/vm.so"
Ser starts fine.
When I uncomment that line, Ser says it starts ok, but nobody can log in, and "serctl moni" tells me "if this is static, check that the server is running, and fifo is turned on (it is).
I thought that was because I wasn't initializing any of the VM parameters, as outlined in the VM Module User's Guide at http://www.iptel.org/ser/doc/modules/html/vm.html
So I added the following lines:
------------ Voicemail Parameters
modparam("vm", "db_url", "sql://ser:nscser@localhost/ser")
modparam("vm", "email_column", "email")
modparam("vm", "subscriber_table", "subscriber")
modparam("vm", "user_column", "username")
modparam("vm", "domain_column", "domain")
Now ser starts with "bad config file":
0(13442) set_mod_param_regex: No module matching vm found
| 0(13442) parse error (104,58-59): Can't set module parameter
0(13442) set_mod_param_regex: No module matching vm found
| 0(13442) parse error (105,39-40): Can't set module parameter
0(13442) set_mod_param_regex: No module matching vm found
| 0(13442) parse error (106,48-49): Can't set module parameter
0(13442) set_mod_param_regex: No module matching vm found
| 0(13442) parse error (107,41-42): Can't set module parameter
0(13442) set_mod_param_regex: No module matching vm found
| 0(13442) parse error (108,41-42): Can't set module parameter
ERROR: bad config file (5 errors)
What do I have wrong in this case? I'm loading module "vm.so" last in my line of "loadmodule" entries, and my "modparam" lines for vm come last in the list of "modparam" statements.
Do I have to download source and compile on my own?
Thanks,
Rob
HI,
I seem to have a problem getting this going. Attached is my ser.cfg.
You'll see that (I think) that it's ok, but when it comes to database
connection time, things fail. See following debug,
1(31403) DEBUG: init_mod_child (1): tm
1(31403) DEBUG: callid: '2fa76cff-31403(a)127.0.0.1'
1(31403) DEBUG: init_mod_child (1): usrloc
2(31404) DEBUG: init_mod_child (2): tm
2(31404) DEBUG: callid: '2fa76cff-31404(a)127.0.0.1'
2(31404) DEBUG: init_mod_child (2): usrloc
1(31403) DEBUG: init_mod_child (1): auth_db
3(31405) 1(31403) DEBUG: init_mod_child (1): group
1(31403) connect_db(): Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2)
1(31403) db_init(): Error while trying to connect database
1(31403) group:init_child(): Unable to connect database
1(31403) init_mod_child(): Error while initializing module group
1(31403) init_child failed
1(31403) INFO: signal 15 received
So it seems that although I've done
modparam("usrloc", "db_url",
"mysql://ser:heslo@192.168.191.16:3306/ser")
It still seems to think that the database is local?? (when it's not)
Strangely the other attached file ser.cfg.pabx seems to work ok..
Why is this? Am I doing something stupid? Or have I uncovered a bug?
jamie
--
Hi all,
Before I used to be able to add one to many aliases, but now in cvs HEAD
(todays) when I try to add anouther alias I get this:
# serctl alias add 126 sip:8667@sip.foobar.com
200 Added to table ('126','sip:8667@sip.foobar.com') to 'aliases'
# serctl alias add 126 sip:8668@sip.foobar.com
error: overlap with an existing alias
#
Is this by design? I consider one to many aliases to be an important
feature!
Thanks,
-Jev