I am a new user and am trying to configure kamailio to use SQLITE
instead of MYSQL. I see that SQLITE option is rather new and maybe not
as documented as MYSQL.
I am running on fedora 14 and have installed MYSQL3 from rpms. Kamailio
I built from sources because I need the SQLITE support.
What kamailio.cfg and kamctlrc parameters do I need to change to do
this?
I have already set these in kamctlrc:
...
## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, DBTEXT, or SQLITE
# by default none …
[View More]is loaded
#
# If you want to setup a database with kamdbctl, you must at least
specify
# this parameter
DBENGINE=SQLITE
## database host
DBHOST=localhost
## database name (for ORACLE this is TNS name)
# DBNAME=openser
...
and ran:
kamdbctl create openser
and
kamctl add user1 password1
successfully.
Now, it appears that I need to change kamailio.cfg for SQLITE. Can I
simply edit this file substituting SQLITE for MYSQL and loading the
SQLITE module?
How about this part:
...
####### Defined Values #########
# *** Value defines - IDs used later in config
#!ifdef WITH_MYSQL
# - database URL - used to connect to database server by modules such
# as: auth_db, acc, usrloc, a.s.o.
#!define DBURL "mysql://openser:openserrw@localhost/openser"
#!endif
...
Will this URL work with SQLITE?
Thanks in advance,
Perazim
[View Less]
Is this normal on restarting Kamailio ?
ERROR: ctl [ctl.c:379]: ERROR: ctl: could not delete unix socket
/tmp/kamailio_ctl: Operation not permitted (1)
RA
Hi again...
(i do find myself ask many questions these days.... :-))
well, now here is one more:
i have 2 kamailio servers that i use in 2 locations. both use the same
tables and DBURL.
each of my server turns to a number portability (NP) server at its same
location.
for example, if server 1 has the call, it will turn to NP server 1 with the
query, and if the query fails, it will then turn to NP server 2.
the kamailio server 2 does the same. but, turns to NP server 2 first and if
it fails, to …
[View More]NP server 1.
once this is understood....
here is my issue - i want to have 1 generic cfg file for my 2 servers.
today, i use the same cfg file, but in server 1 i set it in the cfg to its
group, and on server 2 the same but a different group....
i tried to understand how do i get each server to "pull" its group from the
DB. something like "what is my group when my IP is X.Y.Z.Q ?
i raed the cfg_db module but didn't understand how to set it on my cfg file
and on the DB.
what is the best way to do what i want?
hope i was clear....
BR,
thanks to all the guys that help me so far, i appriciate it a lot!
Uri
[View Less]
The rise of Viber has, for some people, been a case of `skype, not again!'
until now...
Lumicall is now in the Android market - and it fully interacts with
other SIP products using ENUM and SRV records. Any feedback on this is
welcome.
Interconnect (Kamailio calling to/from Lumicall users) is based on the
idea of federated SIP, it is explained at http://www.lumicall.org for
those who want to connect up to it.
Please bear in mind: Lumicall supports ICE (RFC 5245) for NAT traversal,
it is …
[View More]using the ice4j implementation from the Jitsi community. This
makes the SIP packets bigger and often they are too big for the MTU of a
UDP packet. When using ICE, it seems essential to use TLS, to avoid the
MTU problems and also to avoid routers mangling the SIP headers (ICE
doesn't need help from routers, they only confuse the algorithm)
[View Less]
Trying to figure out the values for flags field.
where can I find the meaning of flags for each value like:
flags 1 = ?
flags 2 = ?
flags 3 = ?
flags 4 = ?
flags 5 = ?
flags 6 = ?
flags 7 = ?
flags 8 = ?
Gary
OK
i got it.
on the kamctl, the show is a SQL and the reload is $CTLCMD
this is the difference...
thanks
On Wed, Feb 8, 2012 at 7:45 PM, Henning Westerholt <hw(a)kamailio.org> wrote:
> On Wednesday 08 February 2012, Uri Shacked wrote:
> > Can u explain why does the reload takes the table name from cfg and
> > the show from the kamctlrc ?
>
> Hi Uri,
>
> the reload is executed in the server, which already uses the correct table.
> The show is executed from …
[View More]the script (its just a database operation, you
> could
> also use a mysql client), which uses the wrong table.
>
> Viele Grüße/ best regards,
>
> Henning Westerholt
>
[View Less]
>
>
> anyone for this?
>
> Hi,
>
> after resolving the field type issue :-), i changed the params in kamctlrc
> to point to the right DB.
> now, i notice that when i use the command "kamctl cr show" iget an error
> that it does not find the table "carrierroute".
> in the cfg file it is all set and works fine, cr dump is working as
> expected as well.
>
> in the kamctl file i can find the param - CARRIERROUTE_TABLE. but where is
> it set from?
> …
[View More]anyone knows where do i make tha change in order for the kamctl to "know"
> the names of the tables i use?
>
> thanks,
> Uri
>
[View Less]
Hi,
since kamailio 3.2.1 I've had problems with using dlg_var to store extra accounting fields with the acc module (using db_extra and mysql). When I set a dlg_var in the request route, the first acc row (INVITE) appears as if the dlg_var was empty, but looks fine for the second (BYE) row. In 3.2.0 both rows got the value I assigned. missed_calls doesn't appear to have this problem. Any ideas? The problem also seems to exist in kamailio 3.2.2. I've done a git bisect and the problem seems to …
[View More]appear since commit 5bdee1ffe820d3e9e75898bb252d1660b4bbad60.
Thanks,
Jon
[View Less]
Hi,
any help will be graet....
* hi,
*>*
*>* when i moved the /etc/init.d/kamailio file. kamailio did not start at
boot.
*>* now, i set the debug level to 4 and run kamailio in both ways.
*>*
*>* 1. "/etc/init.d/kamailio start"
*>*
* the resault was :
*Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/q_malloc.c:202]: qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048
Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/q_malloc.c:204]: …
[View More]qm_malloc_init: QM_HASH_SIZE=2099, qm_block
size=218344
Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/q_malloc.c:205]: qm_malloc_init(0x7f1cf585b000, 2147483648),
start=0x7f1cf585b000
Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/q_malloc.c:213]: qm_malloc_init: size= 2147483648, init_overhead=218440
Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/shm_mem.c:203]: shm_mem_init: success*
>*
*>* you can see the shm_mem size is 2048Mb.
*>*
*
2."kamailio"
the resault was :
*Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/q_malloc.c:202]: qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048
Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/q_malloc.c:204]: qm_malloc_init: QM_HASH_SIZE=2099, qm_block
size=218344
Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/q_malloc.c:205]: qm_malloc_init(0x7f8618310000, 33554432),
start=0x7f8618310000
Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/q_malloc.c:213]: qm_malloc_init: size= 33554432, init_overhead=218440
Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core>
[mem/shm_mem.c:203]: shm_mem_init: success*
**
the resault is 32Mb.
any ideas?
>*
*>* On Wed, Feb 1, 2012 at 5:01 PM, Jason Penton <jason.penton at
smilecoms.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>wrote:
*>*
*>>* I am not familiar with Centos but I suspect there is another script
being
*>>* run from somewhere. What I would do is move the /etc/init.d/kamailio
script
*>>* somewhere safe (your home directory for eg). Then reboot and see if
*>>* kamailio still starts - if it does you need to find out whihc script is
*>>* being called and where it is.
*>>*
*>>* If you are not running X by default you are prob in runlevel 3. If you
*>>* are running X, then it will be 5. check where you runlevel scripts are
*>>* pointing. e.g.
*>>*
*>>* ls -al /etc/rc3.d/SXXkamailio (X = [0-9])
*>>*
*>>* Cheers
*>>* Jason
*>>*
*>>* On Wed, Feb 1, 2012 at 4:26 PM, Uri Shacked <uri.shacked at
gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>wrote:
*>>*
*>>>* Hi,
*>>>*
*>>>* when i reboot the machine, it starts with 32Mb and i do not understand
*>>>* why...
*>>>* so, does it use a startup file that i am not familiar with?
*>>>* what is the appropriate runlevel? how do i set it and where?
*>>>*
*>>>* thanks,
*>>>* Uri
*>>>*
*>>>*
*>>>* >Hi Sammy,
*>>>* >
*>>>* >When you use the init script, it is starting Kamailio with the
correct
*>>>* >arguments to get the environment you wish (-m 2048 probably). If
*>>>* however,
*>>>* >you just call kamailio these args are not there. Im not sure why you
are
*>>>* >running with kamailio command directly. Why don't you add your init
*>>>* script
*>>>* >to the appropriate runlevel for auto startup?
*>>>* >
*>>>* >Cheers
*>>>* >Jason
*>>>*
*>>>* On Wed, Feb 1, 2012 at 3:06 PM, Uri Shacked <ushacked at gmail.com<
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
*>>>* wrote:
*>>>*
*>>>* >* Hi again....
*>>>* *>*
*>>>* *>* i installed kamailio 3.2.2 today.
*>>>* *>* i used the chkconfig tool to get kamailio run at boot.
*>>>* *>* i edited both /etc/init.d/kamailio and /etc/default/kamailio files
*>>>* to run
*>>>* *>* with 2048Mg of memory.
*>>>* *>* now, when i run /etc/init.d/kamailio start, it starts with the
right
*>>>* *>* amount of memory.
*>>>* *>* when i rum "kamailio" only, it starts with 32Mb....
*>>>* *>*
*>>>* *>* i use centos 6.2 64bit.
*>>>* *>* any ideas?
*>>>* *>*
*>>>* *>*
*>>>* *>*
*>>>* *>*
*>>>* *>*
*>>>* *>* On Tue, Oct 25, 2011 at 1:18 PM, Uri Shacked <ushacked at
gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
*>>>* wrote:
*>>>* *>*
*>>>* *>>* Hi.
*>>>* *>>* I already checked it all. The kamailio start and stop command did
*>>>* not
*>>>* *>>* work. The init script i used was for debian. Now i use another
*>>>* script,
*>>>* *>>* for centos. It works. I add the kamailio proccess with chkconfig
*>>>* tool.
*>>>* *>>* Thanks.
*>>>* *>>*
*>>>* *>>* On 10/25/11, Sammy Govind <govoiper at gmail.com<
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
*>>>* wrote:
*>>>* *>>* > Thanks Alex,
*>>>* *>>* >
*>>>* *>>* > Hey Uri, can you check if you've /etc/init.d/kamailio file
*>>>* exists - open
*>>>* *>>* > that file if exists and cross verify few parameters.
*>>>* *>>* > Few of these are as follows
*>>>* *>>* >
*>>>* *>>* > PATH=/sbin:/bin:/usr/sbin:/usr/bin
*>>>* *>>* > DAEMON=*/usr/local/sbin/kamailio*
*>>>* *>>* > NAME=kamailio
*>>>* *>>* > DESC=kamailio
*>>>* *>>* > HOMEDIR=/var/run/
*>>>* *>>* > *PIDFILE*=$HOMEDIR/$NAME.pid
*>>>* *>>* > DEFAULTS=*/etc/default/kamailio.default*
*>>>* *>>* > RUN_KAMAILIO=yes
*>>>* *>>* >
*>>>* *>>* > Make sure /etc/default/kamailio.default file exits. here are
the
*>>>* *>>* contents of
*>>>* *>>* > my file.
*>>>* *>>* >
*>>>* *>>* > RUN_KAMAILIO=yes
*>>>* *>>* > USER=kamailio
*>>>* *>>* > GROUP=kamailio
*>>>* *>>* > MEMORY=64
*>>>* *>>* > DUMP_CORE=no
*>>>* *>>* >
*>>>* *>>* > On Tue, Oct 25, 2011 at 3:38 AM, Klaus Darilion <
*>>>* *>>* > klaus.mailinglists at pernau.at<
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
*>>>* wrote:
*>>>* *>>* >
*>>>* *>>* >> Test the startupscript if they work:
*>>>* *>>* >>
*>>>* *>>* >> /etc/init.d/kamailio start
*>>>* *>>* >> /etc/init.d/kamailio stop
*>>>* *>>* >>
*>>>* *>>* >> If this works, then make sure to have proper symlinks from the
*>>>* *>>* >> corresponding runlevel to the startup script. Do it manually
or
*>>>* use the
*>>>* *>>* >> chkconfig tool.
*>>>* *>>* >>
*>>>* *>>* >> klaus
*>>>* *>>* >>
*>>>* *>>* >>
*>>>* *>>* >> On 24.10.2011 08:00, Uri Shacked wrote:
*>>>* *>>* >>
*>>>* *>>* >>> hi again,
*>>>* *>>* >>> i found out that on my centos 5.4 the command
*>>>* start-stop-daemon that
*>>>* *>>* the
*>>>* *>>* >>> /etc/init.d/kamailio uses is not recognized.
*>>>* *>>* >>> it is kamailio3.2 any ideas?
*>>>* *>>* >>>
*>>>* *>>* >>>
*>>>* *>>* >>> On Mon, Oct 24, 2011 at 3:03 PM, Uri Shacked <ushacked at
*>>>* gmail.com<
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
*>>>* *>>* >>> <mailto:ushacked at gmail.com<
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>>
*>>>* wrote:
*>>>* *>>* >>>
*>>>* *>>* >>> Hi,
*>>>* *>>* >>> what is the best way to start kamailio at boot?
*>>>* *>>* >>> the example in the install is not working for me....
*>>>* *>>* >>>
*>>>* *>>* >>>
*>>>* *
*>>>*
*>>*
*>>* This email is subject to the disclaimer of Smile Communications (PTY)
Ltd. at http://www.smilecoms.com/disclaimer
*>>*
*>>*
*>*
*
[View Less]
Hi,
anyone knows why the dialog module leaves active dialogs even after a bye
was recieved when using sipp?
once i had issues with the record route and i forced sipp to deal with
that, is there something to set on the bye sent by sipp?
BR,
Uri