One thing that really threw me this morning was the lack of t_check_status in the modules documentation. Apparently it is still there and works, just completely undocumented. Once I realized it was still there I just went back to the 1.5 docs and was good, but just thought I should point this out.
-Eric
I would like to use dbtext to store a list of whitelisted gateways, but each time I load it I get a core segmentation fault.
Any ideas? Here is my gateways db file:
key_name(str) key_type(int) value_type(int) key_value(str)
gwip:1:0:a
gwip:1:0:b
gwip:1:0:c
gwcount:0:1:3
And in my config:
modparam("htable","htable","gateways=>size=4;dbtable=gateways;")
modparam("htable","db_url","text:///usr/local/etc/kamailio")
while( $var(i) < $sht(gateways=>gwcount) ){
if( $sht(gateways=>gwip[$var(i)]) == $si ){
setflag(gateway);
xlog("ISFROMGW: request from IP $si matches $sht(gateways=>gwip[$var(i)]) ...\n");
}
}
Do you see anything wrong with this setup?
-Eric
Hello to all!
I need a little help with our ser installation (ser-2.0.0-rc1).
Due some network restrictions, we need to force every call to pass trought rtpproxy.
Could someone point me to the right place where to force it?
Please an example based on our config would be really helpful, but in two scenarios:
1. ALL CALLS trought rtpproxy
2. ONLY CALLS from a given network trought rtpproxy
We are in doubt on what choose between the two solutions. Having both examples could me help to
implement the needs faster :)
Thank's a lot for your help!
Simon
Hi,
I'm currently migrating a Kamailio 1.5 installation to Kamailio 3.1.3, and I
got all config changes merged, except this one:
branch_route[1] {
if ((isbflagset(4)) && (!isflagset(7))) {
fix_nated_sdp("1");
if (has_body()) {
force_rtp_proxy("R");
} else {
setflag(5);
}
t_on_reply("2");
}
}
In Kamailio 1.5 this worked without problems. In Kamailio 3.1 I get the
following error (line 1627 is the line with t_on_reply on it):
hostname:~# /usr/sbin/kamailio -c -f /etc/kamailio/proxy/kamailio.cfg
loading modules under
/urs/lib/kamailio/modules/:/usr/lib/kamailio/modules_k:/usr/lib/kamailio/modules_s/
0(13670) : <core> [cfg.y:3412]: parse error in config file
/etc/kamailio/proxy/kamailio.cfg, line 1627, column 17: Command cannot be
used in the block
ERROR: bad config file (1 errors)
hostname:~#
In the Kamailio 1.5 documentation it was stated for every t_on_* function,
where it could be called. For t_on_reply it said:
This function can be used from REQUEST_ROUTE, BRANCH_ROUTE, ONREPLY_ROUTE
and FAILURE_ROUTE.
In the Kamailio 3.1 documentation those lines are missing. But I don't
really see a reason, why t_on_reply shouldn't be called from branch route.
We need it for every branch to possibly have different onreply_routes.
Am I missing something? Thanks in advance for any hints.
Best regards,
Sebastian
Hello to all!
I need a little help with our ser installation (ser-2.0.0-rc1).
Due some network restrictions, we need to force every call to pass trought rtpproxy.
Could someone point me to the right place where to force it?
Please an example based on our config would be really helpful, but in two scenarios:
1. ALL CALLS trought rtpproxy
2. ONLY CALLS from a given network trought rtpproxy
We are in doubt on what choose between the two solutions. Having both examples could me help to
implement the needs faster :)
Thank's a lot for your help!
Simon
Hi Torge,
I think it's better to send your mail to the mailinglist, then more
people can have a look at your problem.
I'm not really familiar with the kamailio source code. Just started
using Kamailio about 8 months back. I came across a problem with
requesting information from a postgresql database and made a patch which
'works for me'. I'm not using siptrace.
Maybe you can supply more logging (through the mailinglist) of the
database communication. The mysql error "Duplicate entry '96193' for key
'PRIMARY'" is a bit weird. As I said, I don't know and don't use the
msyql driver in kamailio, but normally I would expect that mysql itself
would take care of generating a primary key for the record.
So maybe your problem is in the mysql server and not kamailio.
Maybe this page can help you:
http://www.softwareprojects.com/resources/programming/t-how-to-fix-mysql-du…
With kind regards,
Robert Verspuy
Op 05-05-11 13:19, Dr. Torge Szczepanek schreef:
> Hi!
>
> First of all thanks for all of your work. I really appreciate and I am
> glad that there is such a nice Opensource SIP Proxy available.
>
> In a current project I am heavily relying on SIP Traces stored to a
> database and other sqlops, dialplan operations using database connections.
>
> It seems that there is a race condition with SQL Databases (Postgres
> and also MySQL) due to thread insafety as described in:
>
> http://lists.sip-router.org/pipermail/sr-dev/2010-October/009689.html
>
> This is causing multiple errors. I guess that the following error is
> also caused by this race condition (thread safety):
>
> /usr/sbin/kamailio[5646]: ERROR: <core> [db_query.c:179]: error while
> submitting query
> /usr/sbin/kamailio[5646]: ERROR: siptrace [siptrace.c:532]: error
> storing trace
> /usr/sbin/kamailio[5646]: ERROR: db_mysql [km_dbase.c:120]: driver
> error on query: Duplicate entry '96193' for key 'PRIMARY'
>
> My Kamailo Version (3.1.2) is reporting duplicate database URLs using
> a warning:
>
> /usr/sbin/kamailio[5613]: WARNING: <core> [db_id.c:281]: identical DB
> URLs, but different DB connection pid [5613/5562]
> /usr/sbin/kamailio[5618]: WARNING: <core> [db_id.c:281]: identical DB
> URLs, but different DB connection pid [5618/5562]
> /usr/sbin/kamailio[5616]: WARNING: <core> [db_id.c:281]: identical DB
> URLs, but different DB connection pid [5616/5562]
> /usr/sbin/kamailio[5600]: WARNING: <core> [db_id.c:281]: identical DB
> URLs, but different DB connection pid [5600/5562]
> /usr/sbin/kamailio[5617]: WARNING: <core> [db_id.c:281]: identical DB
> URLs, but different DB connection pid [5617/5562]
>
> Git commit 9fb37a55e0b97a98b7d2d104a7692f18cb3f7df6 is turning this
> into a debug message, which I think is a bad idea if the thread
> insafety still exists.
>
> As far as I know every thread should use its own database handle, at
> least when using the MySQL API.
>
> Is there a way to handle this correctly? Can you give me any clues on
> which approach to take here? Since I need a solution for this I would
> like to fix this issue at least for myself and of course giving the
> change back.
>
> Greetings Torge
> --
> Dr. Torge Szczepanek
>
> Cygnus Networks GmbH Tel: +49-228-9090987-0
> Adenauerallee 73 Fax: +49-228-9090987-70
> D-53113 Bonn EMail:
> info(a)cygnusnetworks.de <mailto:info@cygnusnetworks.de>
> Amtsgericht Bonn, HRB 15928 SIP: info(a)cygnusnetworks.de
> <mailto:info@cygnusnetworks.de>
> Geschaeftsfuehrer Dr. Torge Szczepanek http://www.cygnusnetworks.de/
> Steuernummer 205/5710/1347 USt-ID DE258507007
>
--
*Exa-Omicron*
Patroonsweg 10
3892 DB Zeewolde
Tel.: 088-OMICRON (66 427 66)
http://www.exa-omicron.nl
Hello, I use your sip service well.
But there is one problem occured.
I use your sip service on my android system.
The application is Csipsimple.
On Wifi and 3G connection, your service is very good. your sip account did
good work. even 3G network connection.
Btw, On Mobile Wimax service, the signal was good. But the Voice could not
be trasnsferred.
I guess the problem is about rtp port.
*I'd like to know the rtp port that IPTEL use*. I will request Korea Telecom
about rtp port open.
Korea Telecom is Korean mobile Wimax Provider.
Thank you.
Sungjin Park
Seoul, Korea
Thank you for your attention. I use the soft phone "jitsi" as is told in guide file and configure it as the guide. And I have checked the guide twice. I think there have nothing different with the guide excepts the db I used.
>From: Martin Pohan?en?k <pohancenik.martin(a)gmail.com> >Subject: Re: [SR-Users] ? about presence >To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - > Users Mailing List" <sr-users(a)lists.sip-router.org> >Message-ID: <BANLkTi=5S3OHe2SEDDe8ry+X+2ZUd2LqRg(a)mail.gmail.com> >Content-Type: text/plain; charset="gb2312" > >What SIP client app are you using to test presence ? >Please try to post the client configuration, too. > >Also try to go through the entire config file from the guide and compare >what is different from your config file. That might give you a clue of what >is wrong > >2011/5/3 Bucur Marius <bucur_marius_ovidiu(a)yahoo.com> > >> Hello, >> >> If you disable "#!define WITH_PRECENCE" you will not use presence at all - >> so it is most probably that you don't want that. >> When you use db_fallback mode, the subscribers are only written to database >> once in a while (in your case every 20 seconds). >> Also, if the subscribers are not authorized, they will only be in the >> "watchers" table - not active_watchers. >> Can you check if there is something in the "watchers" table? >> Also, can you check your system and see if it works without the xcap >> server? >> >> modparam("presence_xml", "force_active", 1) >> #modparam("presence_xml", "integrated_xcap_server", 1) >> >> Cheers, >> Marius >> >> ------------------------------ >> *From:* hb <hhb.1988(a)163.com> >> *To:* sr-users(a)lists.sip-router.org >> *Sent:* Tue, May 3, 2011 11:44:16 AM >> *Subject:* [SR-Users] ? about presence >> >> Dear everyone: >> I use kamalio 3.1. >> I want to add the xcap_sever and presence modules into my >> kamailio. I followed the lists " >> http://cache.baidu.com/c?m=9d78d513d99a12f00bb6ca255001d7175b14d7226b8b8142…" >> step by step. The only difference is that i use the database postgresql. >> When i start the server, it worked well, but the softphone was not >> able to show the presence of the contacts. >> I tried many times and found that when i disable the sentence >> "#!define WITH_PRECENCE" in "kamailio.cfg", it can show the state of the >> contacts. However, when i check the database, there was nothing in "Active >> Watchers" and "Presentity" tables. >> I think there must have something wrong with the configure of >> presence. Any response will be appreciated. >> >> >> >> ps: the configuration of the presence in kamailio.cfg as follows(same as >> the Tutorial): >> >> #!ifdef WITH_PRESENCE >> loadmodule "presence.so" >> loadmodule "presence_xml.so" >> #!endif >> >> #!ifdef WITH_PRESENCE >> # ----- presence params ----- >> modparam("presence", "db_url", DBURL) >> modparam("presence", "fallback2db", 1) >> modparam("presence", "db_update_period", 20) >> >> # ----- presence_xml params ----- >> modparam("presence_xml", "db_url", DBURL) >> modparam("presence_xml", "force_active", 0) >> modparam("presence_xml", "integrated_xcap_server", 1) >> #!endif >> haibo huang >> >> >> >> ------------------------------ >> ??????2G????????????????????3?!<http://mail.163.com/html/110414_attachment/att1.htm> >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >> sr-users(a)lists.sip-router.org >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110503/8d425fb…> > >------------------------------ > >Message: 2 >Date: Tue, 3 May 2011 12:55:57 +0900 >From: Sungjin Park <parksj84(a)gmail.com> >Subject: [SR-Users] Rtp Port Question >To: serusers(a)iptel.org >Message-ID: <BANLkTimJwR5e_yM5SA67QjYzOj8s=tgAjQ(a)mail.gmail.com> >Content-Type: text/plain; charset="iso-8859-1" > >Hello, I use your sip service well. >But there is one problem occured. > >I use your sip service on my android system. >The application is Csipsimple. > >On Wifi and 3G connection, your service is very good. your sip account did >good work. even 3G network connection. >Btw, On Mobile Wimax service, the signal was good. But the Voice could not >be trasnsferred. > > >I guess the problem is about rtp port. >*I'd like to know the rtp port that IPTEL use*. I will request Korea Telecom >about rtp port open. >Korea Telecom is Korean mobile Wimax Provider. > >Thank you. > >Sungjin Park >Seoul, Korea >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110503/34b8728…> > >------------------------------ > >Message: 3 >Date: Tue, 3 May 2011 12:21:22 -0300 (ART) >From: Claudio Furrer <elcaio(a)gmail.com> >Subject: [SR-Users] INSTALL file >To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - > Users Mailing List" <sr-users(a)lists.sip-router.org> >Message-ID: <alpine.LNX.2.00.1105031219240.29861(a)askepios.local> >Content-Type: TEXT/PLAIN; charset=US-ASCII > >Hello, > >Is this still applicable? > >See INSTALL file (line 669) > >3.1) create MySQL tables for SER flavour > - if you have a previously installed SER on your system, use > /usr/sbin/ser_mysql.sh reinstall > to convert your SER database into new structures > - otherwise, if this is your very first installation, use > /usr/sbin/ser_mysql.sh create > to create SER database structures > (you will be prompted for password of MySql "root" user) > >Because I did not found the *reinstall* option on sources.. > >Thanks, >Claudio > > > >------------------------------ > >Message: 4 >Date: Tue, 3 May 2011 12:49:22 -0300 (ART) >From: Claudio Furrer <elcaio(a)gmail.com> >Subject: [SR-Users] INSTALL file >To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - > Users Mailing List" <sr-users(a)lists.sip-router.org> >Message-ID: <alpine.LNX.2.00.1105031223590.29861(a)askepios.local> >Content-Type: TEXT/PLAIN; charset=US-ASCII > >Hello, > >Is this still applicable? > >See INSTALL file (line 669) > >3.1) create MySQL tables for SER flavour > - if you have a previously installed SER on your system, use > /usr/sbin/ser_mysql.sh reinstall > to convert your SER database into new structures > - otherwise, if this is your very first installation, use > /usr/sbin/ser_mysql.sh create > to create SER database structures > (you will be prompted for password of MySql "root" user) > >Because I did not found the *reinstall* option on sources.. > >Thanks, >Claudio > > > >------------------------------ > >Message: 5 >Date: Wed, 4 May 2011 17:18:17 +0800 (CST) >From: hb <hhb.1988(a)163.com> >Subject: [SR-Users] RE?RE? ? about presence >To: bucur_marius_ovidiu(a)yahoo.com >Cc: sr-users(a)lists.sip-router.org >Message-ID: <694e6d8c.1c32b.12fba4cfaed.Coremail.hhb.1988(a)163.com> >Content-Type: text/plain; charset="gbk" > >Dear?Bucur Marius? > Thank you for your help. > As you said the presence module does not work if I disable it's module. This time I used wireshark to get the packages. I found when I disable the presence module, one point send the "Notify" packages directly to the other, and there were no changes in the watchers table. And when I enable the module, I found it can create some lists in watchers. But at this time , I found there is nothing contents in packages like "Subscribe" and "Notify".What's more when one point change the state, it dose not send any packages to the server. > You said active_watchers will have something when the subscribe is authorised. What dose it mean? My server have not authorised the subscribe? But it can have a call with other subscribe. > Look foreword your help. > haibo huang >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110504/3f6d4fb…> > >------------------------------ > >_______________________________________________ >sr-users mailing list >sr-users(a)lists.sip-router.org >http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > >End of sr-users Digest, Vol 72, Issue 5 >***************************************