hi i m new with kamailio
so ple help me what i need to next
i have install kamailio in centos 6.7 and also testing SIP to SIP call
which is working
but now i want to do some practice on routing (in kamailio.cnfg) so tell me
what are the basics of it
and what task i need to do for practice
Thank you
--
*Regards:*
Gaurav Bmotra
Smith Infotech
E-46, phase 8 , Indus Area S.A.S Nagar Mohali 160071
Hi:
Looking for help in this logging event.
Aug 26 22:34:17 sipserver /usr/sbin/kamailio[14790]: ERROR: db_mysql
[km_dbase.c:124]: db_mysql_submit_query(): driver error on query: PROCEDURE
kamailio.kamailio_cdrs does not exist (1305)
Aug 26 22:34:17 sipserver /usr/sbin/kamailio[14790]: ERROR: <core>
[db_query.c:181]: db_do_raw_query(): error while submitting query
Aug 26 22:34:17 sipserver /usr/sbin/kamailio[14790]: ERROR: sqlops
[sql_api.c:265]: sql_do_query(): cannot do the query [call kamailio_cdrs()]
Aug 26 22:34:17 sipserver /usr/sbin/kamailio[14790]: ERROR: db_mysql
[km_dbase.c:124]: db_mysql_submit_query(): driver error on query: PROCEDURE
kamailio.kamailio_rating does not exist (1305)
Aug 26 22:34:17 sipserver /usr/sbin/kamailio[14790]: ERROR: <core>
[db_query.c:181]: db_do_raw_query(): error while submitting query
Aug 26 22:34:17 sipserver /usr/sbin/kamailio[14790]: ERROR: sqlops
[sql_api.c:265]: sql_do_query(): cannot do the query [call
kamailio_rating('default')]
I assume the database is missing table entries for these two data inserts.
Any help would be useful.
Thanks.
Kevin
Hi, I am using htable module with version 4.4 storing multiple values in the same key (I set the key_type = 1 for each entry, array key).
I have found an issue with the htable module. Some keys show up when using: "./kamcmd htable.get my_table key[0]" but when asking for the "key::size" I says that the key does not exist.
Also some entries have the "key::size" entry but the actual "key[0]" for example is reported as non existent:
See these 2 examples:
Ex:1 "key[0]" is shown but "key::size" is not:
[root@ar-mia-proxy-01 sbin]# ./kamcmd htable.get htable_lcrgwA 8[0]
{
item: {
name: 8[0]
value: 555|5875|1.1.1.1|5060|0|4|1|1|Broadvox2010IN
flags: 2
expire: NEVER
}
}
[root@ar-mia-proxy-01 sbin]# ./kamcmd htable.get htable_lcrgwA 8::size
error: 500 - Key name doesn't exist in htable.
Ex2: "key::size" is shown but "key[0]" is not:
[root@ar-mia-proxy-01 sbin]# ./kamcmd htable.get htable_lcrgwA 9[0]
error: 500 - Key name doesn't exist in htable.
[root@ar-mia-proxy-01 sbin]# ./kamcmd htable.get htable_lcrgwA 9::size
{
item: {
name: 9::size
value: 6
flags: 0
expire: NEVER
}
}
Also, for this case "9::size", supposedly there are 6 entries and in reality there are only 4 in the tables where I am loading them from
For the case "8::size" that returns 2 the count it is right , the prob is that I can not get the "8[0]" and "8[1]" keys
Any ideas are very appreciated, thank you
I have common, cheap TL-WR1043ND V1 router.
For private purposes I've set kamailio voip on my own server INSIDE my LAN.
Is it possible to connect to that server from outside, through openWRT
router?
Many tries, no success - too many jumps or something similar. I guess
router should be fully transparent for sip protocol. How to manage it?
is it possible at all?
I don't ask how to do it in details on my router/openwrt (but if someone
knows, it will be nice), but - is this possible to setup at all? should
I try or search for resolution, or just give up with that idea?
--
Pozdrawiam
Andrzej Kaczmarczyk
Hello,
We got a crash yesterday of a Kamailio instance (4.2.7).
I can see a segfault:
"Program terminated with signal 11, Segmentation fault.
#0 0x000000000061a856 in qm_insert_free (qm=0x7fcbde513000,
frag=0x7fcbded7dd08) at mem/q_malloc.c:180
180 prev=FRAG_END(f)->prev_free;"
The output of "bt full":
(gdb) bt full
#0 0x000000000061a856 in qm_insert_free (qm=0x7fcbde513000,
frag=0x7fcbded7dd08) at mem/q_malloc.c:180
f = 0x7fcbdf2d1e18
prev = 0x0
hash = 78
#1 0x000000000061d6dc in qm_free (qm=0x7fcbde513000, p=0x7fcbded7dd38,
file=0x7fcbf4ffe34d "tm: h_table.c", func=0x7fcbf4ffe628 "free_cell",
line=186) at mem/q_malloc.c:537
f = 0x7fcbded7dd08
size = 624
next = 0x400
prev = 0x7fffc283f720
__FUNCTION__ = "qm_free"
#2 0x00007fcbf4f3fc9d in free_cell (dead_cell=0x7fcbdf2fa360) at
h_table.c:186
b = 0x7fcbded7dd38 "PRACK sip:1.2.3.4:5060;transport=UDP SIP/2.0\r\nVia:
SIP/2.0/UDP
4.5.6.7;branch=z9hG4bK7419.88222290c54ce503af46b89a1da0c125.0\r\nVia:
SIP/2.0/UDP 9.8.7.6:5060;branch=z9hG4bK0cB6cd54b5"...
i = 0
rpl = 0x0
tt = 0x7fcbde6b7778
foo = 0x7fffc283f7f0
cbs = 0x0
cbs_tmp = 0x7fcbde79fca0
__FUNCTION__ = "free_cell"
#3 0x00007fcbf4f84a1c in wait_handler (ti=1160550038,
wait_tl=0x7fcbdf2fa3e0, data=0x7fcbdf2fa360) at timer.c:675
p_cell = 0x7fcbdf2fa360
ret = 1
#4 0x00000000005fd30f in timer_list_expire (t=1160550038, h=0x7fcbde58c908,
slow_l=0x7fcbde58ea28, slow_mark=19953) at timer.c:888
tl = 0x7fcbdf2fa3e0
ret = 1160550038
#5 0x00000000005fd757 in timer_handler () at timer.c:953
saved_ticks = 1160550038
run_slow_timer = 0
i = 497
__FUNCTION__ = "timer_handler"
#6 0x00000000005fdbc5 in timer_main () at timer.c:992
No locals.
#7 0x00000000004a77e6 in main_loop () at main.c:1700
i = 8
pid = 0
si = 0x0
si_desc = "udp receiver child=7
sock=91.213.145.60:5060\000\177\000\000\000\372\203\302\377\177\000\000\033{
N\000\000\000\000\000P\372\203\302\377\177\000\000\004\000\000\000\000\000\0
00\000`TA\000\000\000\000\000(\205T\336\313\177", '\000' <repeats 14 times>,
"\001\000\000\000P\372\203\302\377\177\000\000\276{N\000\000\000\000"
nrprocs = 8
__FUNCTION__ = "main_loop"
#8 0x00000000004acfab in main (argc=7, argv=0x7fffc283fcc8) at main.c:2581
cfg_stream = 0xe5e010
c = -1
r = 0
tmp = 0x7fffc283ff70 ""
tmp_len = 32767
port = -1031537762
proto = 0
options = 0x7033b8 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
ret = -1
seed = 1876790668
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0x40d134
p = 0xc2 <Address 0xc2 out of bounds>
__FUNCTION__ = "main"
I don't figure out what is gone wrong. Thank you for your help.
Regards,
Igor.
Hello all,
I'm in the process of converting an on-host install of Kamailio to be run
inside a docker container. A part of this Kamailio install is a small
node.js application that modifies the sqlite database Kamailio uses, then
runs `kamctl fifo ds_reload` to tell Kamailio to reload its knowledge from
that database.
I'm trying to split these two processes (the node app and the Kamailio
server) into separate docker containers, in an effort to follow the
one-process-per-container philosophy, but having trouble figure out exactly
how I should perform the ds_reload step without access to the kamctl in the
Kamailio container.
The obvious direction that I'm looking is to perform some sort of network
request, since I can configure the two docker containers to have network
access to each other. Is there some way to perform a ds_reload over the
network?
Thanks for all you do. Kamailio is a great SIP server and we use it to
great effect.
-Chad McElligott
Trying to implement a way to authenticate outgoing INVITEs to endpoints
that need/want to. uac_auth in the initial failure route works fine when
there is only 1 registered user to send the INVITE to. But with at least
2 locations are available and 1 accepts the INVITE without
authentication, the 401 of the location that wants authentication isn't
processed in the failure route until a timeout is triggered (t_set_fr).
At that point the 401 is processed and a response generated with
Authentication header. But since t_set_fr invite timeout was exceeded it
is immediatly destroyed due to a CANCEL having been generated to the
location(s).
t=0:
t_set_fr(10000);
INVITE to A anb B
A responds 100 Trying,180 Ringing
B responds 401 Unauthorized
t=10s:
T_code=180, new_code=408
failure route status: 401
uac_auth()
INVITE with Authorization is build to B
CANCEL to A
INVITE to B is never send
Is this expected behaviour? Obviously I didn't expect this.
Dear list,
i'm asking here a question about Kamailio config.
We are testing a wide area configuration of Kamailio over separates
countries and we are still facing with an issue.
We configured Kamailio 4.3.5 with dialog support over the TM modules and
we use LCR module for menage ours LCRs rule set profiles.
For some technicals reasons we use tech prefix for our customer so for
exaples customer1 send traffic to us with 1111 prefix, customer2 send
traffic to us with 2222 and something similar..
Our supplier, of course, are using tech prefix too so for examples if i
want to send the call to supplier1 i need to use tech prefix 1789 or
something similar..
The point is..
When customer1 is sending an invite to us.. it send us something like
(Bangladesh mobile 8801xxx)
INVITE sip:11118801xxxxxxx@aaa.bbb.ccc.ddd
Our Kamailio will reply with the Trying and then it goes to LCR module
and match our supplier1 so it make a new invite like this
INVITE sip:17898801xxxxxx@supplier.ip
The problem come when supplier1 reply to us and we replies back to
customer1..
Customer1 view the From: field with the 17898801xxxxxx numbers.. and
some of our customers don't like it.
We don't use anymore the topoh module becuase we found some troubles
using it.. so..
Is there a way that we can use for fix this situation ?
Best regards.
Hello Group:
I am looking for a way to allow any SIP client to register to my (development)
network without having to be already registered in the database. Is there a way
for the user client to register and create a valid user subscription in the
database? The SIP clients I am using have hard coded passwords and I can not
change them. I think once loaded into the database, I can delete the ones I do
not want later after I close automatic registration feature...
The second question is on STUN servers. Is there a good way to test to see if
one is working from outside your network? I was looking for some sort of web
based tool I could access to see if my public STUN server is really working. I
am using the "reTurnServer" software on Linux. I am only allowing TCP based STUN
requests.
Thank you.
Sample log entry for a external user trying to access the development network. I
would like to give this person access to place calls on the system.
199.58.xxx.xxx.nebraskalink.com - - [25/Aug/2016:18:02:49 +0000] "GET
/download/?ojo-mac=00:02:54:00:a5:eb&ojo-id=2000-0005-2F52&ojo-rev=rev02.01.15&ojo-config-id=e712e6cb088ab9b4ef246488b979cbf6&ojo-stun-type=Blocked&ojo-sn=15190252560146703100&ojo-key-id=e0142f126a5197845a24f33deedc358645e67e5f
HTTP/1.0" 200 1812 "-" "Wget/1.9.1"
Hello,
How can I deal with the error:
Aug 13 13:55:43 scscf kamailio[2961]: tcp: 192.168.0.101
[192.168.0.101]:5060
Aug 13 13:55:43 scscf kamailio[2961]: Aliases:
Aug 13 13:55:43 scscf kamailio[2961]: *: scscf.k-ims.test:5060
Aug 13 13:55:43 scscf kamailio[2961]: 0(2963) ERROR: ims_usrloc_scscf
[ul_mod.c:294]: mod_init(): can't bind presence
Aug 13 13:55:43 scscf kamailio[2961]: 0(2963) ERROR: <core>
[sr_module.c:968]: init_mod(): Error while initializing module
ims_usrloc_scscf (/usr/lib/x86_6..._scscf.so)
Aug 13 13:55:43 scscf kamailio[2961]: ERROR: error while initializing
modules
Aug 13 13:55:43 scscf kamailio[2961]: 0(2963) CRITICAL: cdp
[diameter_peer.c:487]: diameter_peer_destroy(): destroy_diameter_peer():
Bye Bye from C Diameter Peer test
Aug 13 13:55:43 scscf systemd[1]: kamailio.service: control process exited,
code=exited status=255
Aug 13 13:55:43 scscf systemd[1]: Failed to start Kamailio (OpenSER) - the
Open Source SIP Server.
Aug 13 13:55:43 scscf systemd[1]: Unit kamailio.service entered failed
state.
Thank you.
Regards.,
--
Rodrigo M.
(37) 9132-4539
(34) 9889-3069
rodrigo.moreira2007