[SR-Users] SHM error after few days...

2014-05-13 Thread Krishna Kurapati
Hi,

After few days of running kamailio (I am using TLS for client), suddenly I
see that the connections are being dropped.

When I restart kamailio, I see following errors:

Stopping kamailio: [FAILED]
Not starting : invalid configuration file!

 0(20563) : core [mem/shm_mem.c:168]: shm_getmem(): ERROR: shm_mem_init:
could not attach shared memory segment: Cannot allocate memory
 0(20563) : core [mem/mem.c:125]: init_shm_mallocs(): could not
initialize shared memory pool, exiting...
Too much shared memory demanded: 4294967296
 0(20563) ERROR: core [sr_module.c:627]: load_module(): ERROR:
load_module: /usr/lib64/kamailio/modules/tls.so: mod_register failed
 0(20563) : core [cfg.y:3408]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 328, column 12-19: failed to load module
 0(20563) : core [mem/shm_mem.c:168]: shm_getmem(): ERROR: shm_mem_init:
could not attach shared memory segment: Cannot allocate memory
 0(20563) : core [mem/mem.c:125]: init_shm_mallocs(): could not
initialize shared memory pool, exiting...
Too much shared memory demanded: 4294967296
 0(20563) : core [cfg.y:3411]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 357, column 71: Can't initialize shared
memory
ERROR: bad config file (2 errors)
 0(20563) ERROR: mi_fifo [mi_fifo.c:271]: mi_destroy(): FIFO stat failed:
Bad address

My shared memory size for the kamailio is 4096M.

It started fine initially. However, after I noticed connection drops, I see
the above
issue.

THen I reduced shared memory to 2048M and it started fine.

I am under the impression that shared memory is just a filed I/O mapped
which can be several hundred gigs.

I looked at my filesystem. It looks fine

df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sda3958788080 200734800 709349640  23% /
tmpfs  3975996 0   3975996   0% /dev/shm
/dev/sda1   495844 37498432746   8% /boot


What could be wrong here?

Any help greatly appreciated.

Krish Kurapati
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Core file issue

2013-07-04 Thread Krishna Kurapati
Hi,

I am having the problem with core file generation on ubuntu

For some reason the core file is not complete even though ulimit is set to
unlimited

$ullmit -a

core file size  (blocks, -c) unlimited
- Unlimitd
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 0
file size   (blocks, -f) unlimited
pending signals (-i) 15891
max locked memory   (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files  (-n) 1024
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 8192
cpu time   (seconds, -t) unlimited
max user processes  (-u) 15891
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited


But when core is generated, and I try to open gdb, it is complaining that
the core file is smaller

$sudo gdb /usr/local/sbin/kamailio core
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://bugs.launchpad.net/gdb-linaro/...
Reading symbols from /usr/local/sbin/kamailio...done.
BFD: Warning: /home/krishna/corefiles/core is truncated: expected core file
size = 2164264960, found: 176357376.
[New LWP 2547]
Cannot access memory at address 0x7fe56e85d2a8
Cannot access memory at address 0x7fe56e85d2a0


What could be going wrong?

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] rtimer forking error while starting Kamailio

2013-06-27 Thread Krishna Kurapati
Hi,

After few crashes of the Kamailio during prcessing of the messages,
Kamailio fails to start

I see rtimer is failing. Here is the log

0(20082) DEBUG: core [sr_module.c:892]: DEBUG: init_mod_child (0): sqlops
 0(20082) DEBUG: core [sr_module.c:892]: DEBUG: init_mod_child (0):
app_lua
 0(20082) DEBUG: core [sr_module.c:892]: DEBUG: init_mod_child (0): rtimer
 0(20082) ERROR: rtimer [rtimer_mod.c:162]: failed to start timer routine
as process
 0(20082) ERROR: core [sr_module.c:896]: init_mod_child(): Error while
initializing module rtimer (/usr/local/lib64/imckamailio/modules/rtimer.so)
 0(20082) ERROR: core [main.c:1716]: ERROR: main: error in init_child
 6(20091) INFO: core [main.c:854]: INFO: signal 15 received

What can I do to fix this issue?

Thanks
Krish
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio is crashing while parsing Via header

2013-06-26 Thread Krishna Kurapati
Once I increased package memory the crash went away.

 4(21729) DEBUG: core [parser/msg_parser.c:623]: SIP Request:
 4(21729) DEBUG: core [parser/msg_parser.c:625]:  method:  MESSAGE
 4(21729) DEBUG: core [parser/msg_parser.c:627]:  uri:
sip:50.62.72.174:15060;transport=udp
 4(21729) DEBUG: core [parser/msg_parser.c:629]:  version: SIP/2.0
 0(21722) ALERT: core [main.c:788]: child process 21729 exited by a
signal 11
 0(21722) ALERT: core [main.c:791]: core was generated
 0(21722) INFO: core [main.c:803]: INFO: terminating due to SIGCHLD

(gdb) backtrace
#0  qm_detach_free (qm=0x2b7b70759010, size=64)
at mem/q_malloc.c:269
#1  qm_malloc (qm=0x2b7b70759010, size=64)
at mem/q_malloc.c:386
#2  0x00560fa1 in parse_via (
buffer=0x8c6a3b SIP/2.0/UDP
50.62.72.174;branch=z9hG4bK3f84.7fd8a5e.0;i=3\r\nVia: SIP/2.0/TCP
75.43.10.221:60659;rport=60660;branch=z9hG4bKPjc9713006b62149648240ed4ea4686b85\r\nMax-Forwards:
16\r\nFrom: sip:578626051@50.6...,
end=0x8c6e7d , vbody=0x2b7b7077ae90)
at parser/parse_via.c:2540
#3  0x00538e68 in get_hdr_field (
buf=value optimized out, end=0x8c6e7d ,
hdr=0x2b7b707aa9c0) at parser/msg_parser.c:140
#4  0x00539ac9 in parse_headers (msg=0x2b7b7079b100,
flags=2, next=value optimized out)
at parser/msg_parser.c:351
#5  0x0053af8d in parse_msg (
buf=value optimized out, len=value optimized out,
msg=0x2b7b7079b100) at parser/msg_parser.c:650
#6  0x0049a2ef in receive_msg (
buf=0x8c6a00 MESSAGE sip:50.62.72.174:15060;transport=udp
SIP/2.0\r\nVia: SIP/2.0/UDP
50.62.72.174;branch=z9hG4bK3f84.7fd8a5e.0;i=3\r\nVia: SIP/2.0/TCP
75.43.10.221:60659;rport=60660;branch=z9hG4bKPjc9713006b621496482...,
len=1149,
rcv_info=0x7fff932d32e0) at receive.c:144
#7  0x00528666 in udp_rcv_loop () at udp_server.c:557
#8  0x00464daa in main_loop () at main.c:1638
#9  0x00467adc in main (argc=value optimized out,
argv=value optimized out) at main.c:2566
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] After increasing to pkg memory to 64 mb it ran for a little while and crashed again in parsing via

2013-06-26 Thread Krishna Kurapati
Program terminated with signal 11, Segmentation fault.
#0  qm_detach_free (qm=0x2acc4a44b010, size=64) at mem/q_malloc.c:269
269 FRAG_END(next)-prev_free=prev;
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.80.el6_3.4.x86_64 keyutils-libs-1.4-4.el6.x86_64
krb5-libs-1.9-33.el6_3.2.x86_64 libcom_err-1.41.12-12.el6.x86_64
libselinux-2.0.94-5.3.el6.x86_64 lua-5.1.4-4.1.el6.x86_64
mysql-libs-5.1.61-4.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64
openssl-1.0.0-25.el6_3.1.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) backtrace
#0  qm_detach_free (qm=0x2acc4a44b010, size=64) at mem/q_malloc.c:269
#1  qm_malloc (qm=0x2acc4a44b010, size=64) at mem/q_malloc.c:386
#2  0x00560fa1 in parse_via (
buffer=0x8c6a3b SIP/2.0/UDP
50.62.72.174;branch=z9hG4bK0719.d5bdc555.0;i=5\r\nVia: SIP/2.0/TCP
75.43.10.221:60779;rport=60779;branch=z9hG4bKPj9c54a027dea04c58a1cb56b938face6b\r\nMax-Forwards:
16\r\nFrom: sip:578626051@50, end=0x8c7289 , vbody=0x2acc4a492390)
at parser/parse_via.c:2540
#3  0x00538e68 in get_hdr_field (buf=value optimized out,
end=0x8c7289 , hdr=0x2acc4a49c930) at parser/msg_parser.c:140
#4  0x00539ac9 in parse_headers (msg=0x2acc4a48d100, flags=2,
next=value optimized out) at parser/msg_parser.c:351
#5  0x0053af8d in parse_msg (buf=value optimized out,
len=value optimized out, msg=0x2acc4a48d100)
at parser/msg_parser.c:650
#6  0x0049a2ef in receive_msg (
buf=0x8c6a00 MESSAGE sip:50.62.72.174:15060;transport=udp
SIP/2.0\r\nVia: SIP/2.0/UDP
50.62.72.174;branch=z9hG4bK0719.d5bdc555.0;i=5\r\nVia: SIP/2.0/TCP
75.43.10.221:60779;rport=60779;branch=z9hG4bKPj9c54a027dea04c58a...,
len=2185, rcv_info=0x7fff5632c830) at receive.c:144
#7  0x00528666 in udp_rcv_loop () at udp_server.c:557
#8  0x00464daa in main_loop () at main.c:1638
#9  0x00467adc in main (argc=value optimized out,
argv=value optimized out) at main.c:2566
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio Crashing with excessive Via headers

2013-06-25 Thread Krishna Kurapati
In 4.x, Following message is crashing the Kamailio.

MESSAGE sip:50.62.12.174:15060;transport=udp SIP/2.0..Via: SIP/2.0/UDP
50.62.72.174:15060;branch=z9hG4bK.defaafa4.0..Via: SIP/2.0/UDP
50.62.72.174:15060;branch=z9hG4bK.cefaafa4.0..
  Via: SIP/2.0/UDP 50.62.12.174:15060;branch=z9hG4bK.befaafa4.0..
  Via: SIP/2.0/UDP 50.62.12.174:15060;branch=z9hG4bK.aefaafa4.0..
  Via: SIP/2.0/UDP 50.62.12.174:15060;branch=z9hG4bK9efaafa4.0..
  Via: SIP/2.0/UDP 50.62.12.174:15060;branch=z9hG4bK.8efaafa4.0..
  Via: SIP/2.0/UDP 50.62.12.174:15060;branch=z9hG4bK.7efaafa4.0..
  Via: SIP/2.0/UDP 50.62.12.174;branch=z9hk4bK.4b488206.0..
  Via: SIP/2.0/UDP 50.62.12.174;rport=5060;branch=z9hG4bK.3b488206.0..
To: sip:578626051@50.62.12.174..
From: sip:notif...@abc.com;tag=5571efee096a394dda7d0dffc5bb
  32a5-c771..CSeq: 10 MESSAGE..Call-ID:
presence-T[578626051]-R[578626051]..Max-Forwards:  9..Co
  ntent-Length: 110..User-Agent: kamailio (4.0.1
(x86_64/linux))..Content-Type: text/html; chars
  et=utf-8.

stack trace:

#0  qm_detach_free (qm=0x2ac39d748010, size=64) at mem/q_malloc.c:269
#1  qm_malloc (qm=0x2ac39d748010, size=64) at mem/q_malloc.c:386
#2  0x00560fa1 in parse_via (
buffer=0x8c6a3b SIP/2.0/UDP
50.62.72.174:15060;branch=z9hG4bK.defaafa4.0\r\nVia:
SIP/2.0/UDP 50.62.72.174:15060;branch=z9hG4bK.cefaafa4.0\r\nVia:
SIP/2.0/UDP 50.62.72.174:15060;branch=z9hG4bK.befaafa4.0\r\nVia:...,
end=0x8c6e31 , vbody=0x2ac39d769e90)
at parser/parse_via.c:2540
#3  0x00538e68 in get_hdr_field (buf=value optimized out,
end=0x8c6e31 ,
hdr=0x2ac39d7999c0) at parser/msg_parser.c:140
#4  0x00539ac9 in parse_headers (msg=0x2ac39d78a100, flags=2,
next=value optimized out)
at parser/msg_parser.c:351
#5  0x0053af8d in parse_msg (buf=value optimized out, len=value
optimized out,
msg=0x2ac39d78a100) at parser/msg_parser.c:650
#6  0x0049a2ef in receive_msg (
buf=0x8c6a00 MESSAGE sip:50.62.72.174:15060;transport=udp
SIP/2.0\r\nVia: SIP/2.0/UDP
50.62.72.174:15060;branch=z9hG4bK.defaafa4.0\r\nVia:
SIP/2.0/UDP 50.62.72.174:15060;branch=z9hG4bK.cefaafa4.0\r\nVia:
SIP/2.0..., len=1073, rcv_info=0x7fffb40ab770) at receive.c:144
#7  0x00528666 in udp_rcv_loop () at udp_server.c:557
#8  0x00464daa in main_loop () at main.c:1638
#9  0x00467adc in main (argc=value optimized out, argv=value
optimized out)
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio 3.3.x is crashing frequently...

2013-05-14 Thread Krishna Kurapati
Hi,

When the Server is running it is crashing occasionally.

(gdb) bac
#0  0x0043359e in ?? ()
#1  0x in ?? ()
(gdb) file /usr/local/sbin/kamailio
Reading symbols from /usr/local/sbin/kamailio...done.
(gdb) bac
#0  free_lump_list (lump_list=value optimized out) at data_lump.c:504
#1  del_nonshm_lump (lump_list=value optimized out) at data_lump.c:661
#2  0x7f571ff6cd9c in ?? ()
#3  0x008db480 in mem_pool ()
#4  0x7f571ff6c7e1 in ?? ()
#5  0x0139086e in ?? ()
#6  0x0039294546e1 in ?? ()
#7  0x0140c7d0 in ?? ()
#8  0x7f561f7acb80 in ?? ()
#9  0x7f561f3fa6e0 in ?? ()
#10 0x7f561f3fa6e0 in ?? ()
#11 0x0001 in ?? ()
#12 0x in ?? ()

What could be going wrong here?

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Max TCP connections

2013-04-15 Thread Krishna Kurapati
Hi,

Has anyone tested max TCP connections that a Kamailio node can handle? I
have an i7, 8GB server. I am trying to set max to 64K now. I want to set it
to 256K connections.

Would that work?

Thnx
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] How to tie Registration with Client TCP connection

2013-04-04 Thread Krishna Kurapati
Hi,

With TCP, there is no way Server can establish a TCP connection through
client's Firewall/NAT.
So, when Client connection is disconnected from the server due to Network
issues, the Registration should be removed.

I tried to handle this with a Event Route in tcp_read.c. However, There is
not an easy way to find the Registration with TCP socket info (IP and Port
of the Client).

Could anyone suggest a solution?

Thanks

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] CentOS 6 crash

2013-03-19 Thread Krishna Kurapati
Daniel,

Thanks for the help. YES after disabling TLS for Kamailio, it is working
fine.

Is there a solution to have both TLS for Kamailio and SSL for LUA?

Thanks

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Runaway TCP Log

2013-03-18 Thread Krishna Kurapati
Hi,

My Log filled to 20G overnight with these


Mar 18 09:59:44 sipprod /usr/local/sbin/kamailio[26157]: ERROR: core
[tcp_main.c:4049]: WARNING: handle_new_connect: error while accepting
connection(24): Too many open files
Mar 18 09:59:44 sipprod /usr/local/sbin/kamailio[26157]: ERROR: core
[tcp_main.c:4049]: WARNING: handle_new_connect: error while accepting
connection(24): Too many open files
Mar 18 09:59:44 sipprod /usr/local/sbin/kamailio[26157]: ERROR: core
[tcp_main.c:4049]: WARNING: handle_new_connect: error while accepting
connection(24): Too many open files^C

I looked at the code segment it is here where it is logging.

   new_sock=accept(si-socket, (su.s), su_len);
if (unlikely(new_sock==-1)){
if ((errno==EAGAIN)||(errno==EWOULDBLOCK))
return 0;
LOG(L_ERR,  WARNING: handle_new_connect: error while
accepting
 connection(%d): %s\n, errno,
strerror(errno));
return -1;
}


I am using 3.3.x

Is this an issue with Kamailio or something else?

Appreciate any help regarding this matter

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio 4.0 crashing in LUA on CentOS 6 - What could be wrong?

2013-03-18 Thread Krishna Kurapati
36(8606) DEBUG: core [db.c:327]: connection 0x7fd474542320 found in pool
36(8606) DEBUG: core [sr_module.c:892]: DEBUG: init_mod_child (32): sqlops
 9(8567) DEBUG: app_lua [app_lua_sr.c:51]: someone probing from lua
36(8606) DEBUG: core [sr_module.c:674]: find_export_record: found
db_bind_api in module db_mysql
[/usr/local/lib64/kamailio/modules/db_mysql.so]
36(8606) DEBUG: core [db.c:213]: using db bind api for db_mysql
36(8606) DEBUG: core [db.c:327]: connection 0x7fd4745424f0 found in pool
36(8606) DEBUG: core [sr_module.c:892]: DEBUG: init_mod_child (32):
app_lua
36(8606) DEBUG: app_lua [app_lua_sr.c:51]: someone probing from lua
39(8615) DEBUG: app_lua [app_lua_sr.c:51]: someone probing from lua
34(8604) DEBUG: app_lua [app_lua_sr.c:51]: someone probing from lua
40(8616) DEBUG: app_lua [app_lua_sr.c:51]: someone probing from lua
41(8617) : core [pass_fd.c:293]: ERROR: receive_fd: EOF on 15
41(8617) DEBUG: core [tcp_main.c:3592]: DBG: handle_ser_child: dead child
6, pid 8558 (shutting down?)
 0(8543) ALERT: core [main.c:788]: child process 8558 exited by a signal
11
 0(8543) ALERT: core [main.c:791]: core was generated


And here is backtrace



done.
Loaded symbols for /usr/lib64/lua/5.1/ssl.so
Core was generated by `/usr/local/sbin/kamailio -L
/usr/local/lib64/kamailio/modules/:/usr/local/lib64'.
Program terminated with signal 11, Segmentation fault.
#0  qm_detach_free (qm=0x7fd370304000, size=32) at mem/q_malloc.c:269
269 FRAG_END(next)-prev_free=prev;
Missing separate debuginfos, use: debuginfo-install lua-5.1.4-4.1.el6.x86_64
(gdb) backtrace
#0  qm_detach_free (qm=0x7fd370304000, size=32) at mem/q_malloc.c:269
#1  qm_malloc (qm=0x7fd370304000, size=32) at mem/q_malloc.c:386
#2  0x7fd47052ae71 in shm_malloc (size=24) at ../../mem/shm_mem.h:262
#3  ser_malloc (size=24) at tls_init.c:285
#4  0x003928c5d95e in CRYPTO_malloc (num=24,
file=0x3928d24a84 o_names.c, line=195) at mem.c:306
#5  0x003928c6085f in OBJ_NAME_add (name=0x3928d27c52 RSA-SHA512,
type=1, data=0x3928d27c56 SHA512) at o_names.c:195
#6  0x003928cc076a in EVP_add_digest (md=0x3928f84440) at names.c:99
#7  0x00392b442f18 in SSL_library_init () at ssl_algs.c:165
#8  0x7fd36ea1d3c9 in luaopen_ssl_core () from /usr/lib64/lua/5.1/ssl.so
#9  0x7fd36f6785d1 in ?? () from /usr/lib64/liblua-5.1.so
#10 0x7fd36f678a54 in ?? () from /usr/lib64/liblua-5.1.so
#11 0x7fd36f673d56 in lua_call () from /usr/lib64/liblua-5.1.so
#12 0x7fd36f68cf2c in ?? () from /usr/lib64/liblua-5.1.so
#13 0x7fd36f6785d1 in ?? () from /usr/lib64/liblua-5.1.so
#14 0x7fd36f683249 in ?? () from /usr/lib64/liblua-5.1.so
#15 0x7fd36f678a9d in ?? () from /usr/lib64/liblua-5.1.so
#16 0x7fd36f673d56 in lua_call () from /usr/lib64/liblua-5.1.so
#17 0x7fd36f68cf2c in ?? () from /usr/lib64/liblua-5.1.so
#18 0x7fd36f6785d1 in ?? () from /usr/lib64/liblua-5.1.so
#19 0x7fd36f683249 in ?? () from /usr/lib64/liblua-5.1.so
#20 0x7fd36f678a9d in ?? () from /usr/lib64/liblua-5.1.so
---Type return to continue, or q return to quit---
#21 0x7fd36f678137 in ?? () from /usr/lib64/liblua-5.1.so
#22 0x7fd36f6781b2 in ?? () from /usr/lib64/liblua-5.1.so
#23 0x7fd36f673b61 in lua_pcall () from /usr/lib64/liblua-5.1.so
#24 0x7fd36f89e69d in lua_sr_init_child () at app_lua_api.c:227
#25 0x004e4aa3 in init_mod_child (m=0x7fd474485060, rank=-1)
at sr_module.c:893
#26 0x004e4a24 in init_mod_child (m=0x7fd474485980, rank=-1)
at sr_module.c:890
#27 0x004e4a24 in init_mod_child (m=0x7fd474485bf0, rank=-1)
at sr_module.c:890
#28 0x00489d15 in fork_process (child_id=-1,
desc=value optimized out, make_sock=value optimized out) at pt.c:347
#29 0x00466dec in main_loop () at main.c:1700
#30 0x00468afe in main (argc=value optimized out,
argv=value optimized out) at main.c:2566
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Warning - What does this mean?

2013-02-15 Thread Krishna Kurapati
I am seeing this error lately.

/usr/local/sbin/kamailio[28559]: WARNING: tm [t_lookup.c:1543]: WARNING:
script writer didn't release transaction

What does this mean?

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Registration and TCP connection

2013-02-14 Thread Krishna Kurapati
Hi,

When client connects to server over TCP/TLS and REGISTERs two things that
can happen.

1. Client can disconnect the connection when the App is killed abruptly and
the client did not get a chance to send unregiter.

2. CRLF KA did not arrive due to network failures in the middle.

Is there a way to remove contact from usrloc table.

This can spare server from trying to send message to a client who is no
longer connected to the server.

It would be ideal if this can be done automatically with a module param in
tcp or registrar.

Any suggestion on how to tie TCP connection with usrloc?

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Pseudo variable to get instance in the contact....

2013-01-21 Thread Krishna Kurapati
Hi,

I added in my local branch $ct.inst pseudo variable to retrieve instance.
Since instance could be an important attribute to make routing decisions,
having quick access to it in the message may be useful.

Anyone else need this functionality?

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Pseudo variable to access SIP instance in contact

2013-01-19 Thread Krishna Kurapati
Hi,

Is there a way to directly access the SIP instance present in message from
the script?

Thanks

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] raw_query is crashing....

2013-01-07 Thread Krishna Kurapati
Hi,

Since there is no way to limit the result set to 1, I tried to use
raw_query inside msilo module. Everytime it executes, it is crashing. The
same query if I run in mysql shell, it is returning successfully.

Here is the code That I added:

query_len = snprintf(query, 2048, SELECT *  FROM %.*s  WHERE %.*s='%.*s'
AND %.*s='%.*s' AND %.*s!=%i AND %.*s%i LIMIT 1;, ms_db_table.len,
ms_db_table.s, sc_uri_touser.len, sc_uri_touser.s, puri.user.len,
puri.user.s, sc_uri_tohost.len, sc_uri_tohost.s, puri.host.len,
puri.host.s, sc_status.len, sc_status.s, 200, sc_status.len, sc_status.s,
MSG_NOTIFY_OFFSET);
if (query_len  0) {
LM_ERR(error in sql snprintf);
goto error;
}

LM_DBG(m_dump_msg: Query=%s\n, query);

query_str.s = query;
query_str.len = query_len;
if (msilo_dbf.raw_query(db_con, query_str, db_res)  0) {
LM_ERR(Failed to query database. Query = %s\n, query);
goto error;
}

The Debug Log at Level 4 shows following:

11(7520) DEBUG: msilo [msilo.c:1120]: m_dump_msg: Query=SELECT *  FROM silo
 WHERE tousername='968257197' AND todomain='50.62.1.7' AND status!=200 AND
status1000 LIMIT 1;
11(7520) DEBUG: core [db_res.c:118]: allocate 48 bytes for result set at
0x7fdd4b605540
11(7520) DEBUG: db_mysql [km_res.c:68]: 16 columns returned from the query
11(7520) DEBUG: core [db_res.c:155]: allocate 128 bytes for result names
at 0x7fdd4b5d8dc0
11(7520) DEBUG: core [db_res.c:165]: allocate 64 bytes for result types
at 0x7fdd4b5d8e60
11(7520) DEBUG: db_mysql [km_res.c:85]: allocate 16 bytes for RES_NAMES[0]
at 0x7fdd4b5d8d90
11(7520) DEBUG: db_mysql [km_res.c:92]: RES_NAMES(0x7fdd4b5d8d90)[0]=[id]
11(7520) DEBUG: db_mysql [km_res.c:100]: use DB1_INT result type
11(7520) DEBUG: db_mysql [km_res.c:85]: allocate 16 bytes for RES_NAMES[1]
at 0x7fdd4b5d8d60
11(7520) DEBUG: db_mysql [km_res.c:92]:
RES_NAMES(0x7fdd4b5d8d60)[1]=[src_addr]
11(7520) DEBUG: db_mysql [km_res.c:136]: use DB1_STRING result type
11(7520) DEBUG: db_mysql [km_res.c:85]: allocate 16 bytes for RES_NAMES[2]
at 0x7fdd4b5d8d30
11(7520) DEBUG: db_mysql [km_res.c:92]:
RES_NAMES(0x7fdd4b5d8d30)[2]=[dst_addr]
11(7520) DEBUG: db_mysql [km_res.c:136]: use DB1_STRING result type

skip

11(7520) DEBUG: core [db_val.c:117]: converting STRING
[ac3aeddd9b6f45e6822c824aa2c133b2]
11(7520) DEBUG: core [db_val.c:73]: converting INT [0]
11(7520) DEBUG: core [db_val.c:73]: converting INT [1]
26(7552) : core [pass_fd.c:293]: ERROR: receive_fd: EOF on 22
26(7552) DEBUG: core [tcp_main.c:3592]: DBG: handle_ser_child: dead child
11, pid 7520 (shutting down?)
26(7552) DEBUG: core [io_wait.h:617]: DBG: io_watch_del (0x842d20, 22,
-1, 0x0) fd_no=44 called
26(7552) DEBUG: core [tcp_main.c:3353]: DBG: handle_tcp_child: dead tcp
child 1 (pid 7520, no 11) (shutting down?)
26(7552) DEBUG: core [io_wait.h:617]: DBG: io_watch_del (0x842d20, 25,
-1, 0x0) fd_no=43 called
 0(7509) ALERT: core [main.c:787]: child process 7520 exited by a signal
11
 0(7509) ALERT: core [main.c:790]: core was not generated
 0(7509) INFO: core [main.c:802]: INFO: terminating due to SIGCHLD


As you can see something happening to Database connection. Not sure why I
am unable to use raw_query. Normal API query from msilo works just fine.

What am I doing wrong to make it crash?

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] How to use LIMIT 1 in db_query api

2012-12-08 Thread Krishna Kurapati
Hi,

I need a way to limit the results to just one row. The only way I know I
could do is to call db_query followed by fetch_result of 1 row. However
this is not optimal as all the rows are fetched to dynamic memory with
db_query.

Is there an alternative approach?

Thanks

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] One active registration per sip instance.

2012-11-26 Thread Krishna Kurapati
Hi,

I have 3.x Kamailio with GRUU support. I see SIP Instance in the contact.
However, I see a problem. When I kill the SIP client on a device and
restart, it sends registration on a different port. The server instead of
updating the contact in user location table, is creating a new contact for
the same instance. Do I need to turn on something to get the expected
behavior? Here is the output from kamctl ul show.

Thanks

Krish Kura

AOR:: 100227074
Contact:: sip:100227074@10.132.60.70:50845;transport=TCP;ob Q=
Expires:: 3132
Callid:: ATZJcr.HqXxwWdsPmanjERetcdeRVeZy
Cseq:: 4399
User-agent:: n/a
Received:: sip:166.137.120.37:48873;transport=TCP
State:: CS_SYNC
Flags:: 0
Cflag:: 192
Socket:: tcp:10.1.0.6:5060
Methods:: 8143
Ruid:: uloc-50b3602b-50e-1
Instance::
urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
Reg-Id:: 1
Contact:: sip:100227074@10.132.60.70:50839;transport=TCP;ob Q=
Expires:: 3029
Callid:: oYsIYUyP3N77MKSoQ3EDChEph.lD4fjB
Cseq:: 37489
User-agent:: n/a
Received:: sip:166.137.120.37:61763;transport=TCP
State:: CS_SYNC
Flags:: 0
Cflag:: 192
Socket:: tcp:10.1.0.6:5060
Methods:: 8143
Ruid:: uloc-50b3602b-507-1
Instance::
urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
Reg-Id:: 1
Contact:: sip:100227074@10.132.60.70:50803;transport=TCP;ob Q=
Expires:: 1527
Callid:: b4IeJXybn6Yr.jB8sc-Kz8CJ0kt0hNbO
Cseq:: 30014
User-agent:: n/a
Received:: sip:166.137.120.37:36879;transport=TCP
State:: CS_SYNC
Flags:: 0
Cflag:: 192
Socket:: tcp:10.1.0.6:5060
Methods:: 8143
Ruid:: uloc-50b35a12-7f5c-1
Instance::
urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
Reg-Id:: 1
Contact:: sip:100227074@10.132.60.70:50818;transport=TCP;ob Q=
Expires:: 2199
Callid:: DM0Z1d-ZenGHknjmT.7Cle5cos7Uhs7H
Cseq:: 22942
User-agent:: n/a
Received:: sip:166.137.120.37:39471;transport=TCP
State:: CS_SYNC
Flags:: 0
Cflag:: 192
Socket:: tcp:10.1.0.6:5060
Methods:: 8143
Ruid:: uloc-50b35a12-7f6f-1
Instance::
urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
Reg-Id:: 1
Contact:: sip:100227074@10.132.60.70:50815;transport=TCP;ob Q=
Expires:: 1833
Callid:: VJy3SNE66U1U971u5BEeqbYJi6a-puT-
Cseq:: 64347
User-agent:: n/a
Received:: sip:166.137.120.37:35872;transport=TCP
State:: CS_SYNC
Flags:: 0
Cflag:: 192
Socket:: tcp:10.1.0.6:5060
Methods:: 8143
Ruid:: uloc-50b35a12-7f5a-2
Instance::
urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
Reg-Id:: 1
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] One active registration per sip instance.

2012-11-26 Thread Krishna Kurapati
Daniel,

Here are the usrloc params

# - usrloc params -
#!ifdef WITH_USRLOCDB
/* enable DB persistency for location entries */
modparam(usrloc, db_url, DBURL)
modparam(usrloc, db_mode, 2)
modparam(usrloc, use_domain, MULTIDOMAIN)
modparam(usrloc, desc_time_order, 1)
#!endif

# params needed for NAT traversal in other modules
modparam(nathelper|registrar, received_avp, $avp(i:42))
modparam(usrloc, nat_bflag, FLB_NATB)

# - registrar params -
modparam(registrar, method_filtering, 1)
/* uncomment the next line to disable parallel forking via location */
# modparam(registrar, append_branches, 0)
/* uncomment the next line not to allow more than 5 contacts per AOR */
modparam(registrar, max_contacts, 5)







On Mon, Nov 26, 2012 at 7:35 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  Hello,

 what are the parameters of registrar and usrloc modules in your config?

 Cheers,
 Daniel


 On 11/26/12 2:17 PM, Krishna Kurapati wrote:

 Hi,

  I have 3.x Kamailio with GRUU support. I see SIP Instance in the
 contact. However, I see a problem. When I kill the SIP client on a device
 and restart, it sends registration on a different port. The server instead
 of updating the contact in user location table, is creating a new contact
 for the same instance. Do I need to turn on something to get the expected
 behavior? Here is the output from kamctl ul show.

  Thanks

  Krish Kura

  AOR:: 100227074
  Contact:: sip:100227074@10.132.60.70:50845;transport=TCP;ob Q=
  Expires:: 3132
  Callid:: ATZJcr.HqXxwWdsPmanjERetcdeRVeZy
  Cseq:: 4399
  User-agent:: n/a
  Received:: sip:166.137.120.37:48873;transport=TCP
  State:: CS_SYNC
  Flags:: 0
  Cflag:: 192
  Socket:: tcp:10.1.0.6:5060
  Methods:: 8143
  Ruid:: uloc-50b3602b-50e-1
  Instance::
 urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
  Reg-Id:: 1
  Contact:: sip:100227074@10.132.60.70:50839;transport=TCP;ob Q=
  Expires:: 3029
  Callid:: oYsIYUyP3N77MKSoQ3EDChEph.lD4fjB
  Cseq:: 37489
  User-agent:: n/a
  Received:: sip:166.137.120.37:61763;transport=TCP
  State:: CS_SYNC
  Flags:: 0
  Cflag:: 192
  Socket:: tcp:10.1.0.6:5060
  Methods:: 8143
  Ruid:: uloc-50b3602b-507-1
  Instance::
 urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
  Reg-Id:: 1
  Contact:: sip:100227074@10.132.60.70:50803;transport=TCP;ob Q=
  Expires:: 1527
  Callid:: b4IeJXybn6Yr.jB8sc-Kz8CJ0kt0hNbO
  Cseq:: 30014
  User-agent:: n/a
  Received:: sip:166.137.120.37:36879;transport=TCP
  State:: CS_SYNC
  Flags:: 0
  Cflag:: 192
  Socket:: tcp:10.1.0.6:5060
  Methods:: 8143
  Ruid:: uloc-50b35a12-7f5c-1
  Instance::
 urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
  Reg-Id:: 1
  Contact:: sip:100227074@10.132.60.70:50818;transport=TCP;ob Q=
  Expires:: 2199
  Callid:: DM0Z1d-ZenGHknjmT.7Cle5cos7Uhs7H
  Cseq:: 22942
  User-agent:: n/a
  Received:: sip:166.137.120.37:39471;transport=TCP
  State:: CS_SYNC
  Flags:: 0
  Cflag:: 192
  Socket:: tcp:10.1.0.6:5060
  Methods:: 8143
  Ruid:: uloc-50b35a12-7f6f-1
  Instance::
 urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
  Reg-Id:: 1
  Contact:: sip:100227074@10.132.60.70:50815;transport=TCP;ob Q=
  Expires:: 1833
  Callid:: VJy3SNE66U1U971u5BEeqbYJi6a-puT-
  Cseq:: 64347
  User-agent:: n/a
  Received:: sip:166.137.120.37:35872;transport=TCP
  State:: CS_SYNC
  Flags:: 0
  Cflag:: 192
  Socket:: tcp:10.1.0.6:5060
  Methods:: 8143
  Ruid:: uloc-50b35a12-7f5a-2
  Instance::
 urn:uuid:237BF2F6-2FDE-47E8-A9E2-32D46D43F174-319-0121AFA29D2E
  Reg-Id:: 1



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda 
 - http://www.linkedin.com/in/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] collecting stats per subscriber

2012-09-14 Thread Krishna Kurapati
Thanks Daniel for quick response.

Can we access these using XMLRPC interface remotely?
Appreciate if you could share the command to dump htable.

Thanks

On Fri, Sep 14, 2012 at 3:04 AM, Daniel-Constantin Mierla
mico...@gmail.com wrote:
 Hello,


 On 9/13/12 10:44 PM, Krishna Kurapati wrote:

 Hi,

 Is there a module that can be used to collect number of MESSAGEs sent
 or received by a subscriber;
 number of registrations by a subscriber? These will be per subscriber
 as oppose to statistics collected for
 entire system.

 there is no dedicated module for such functionality, but you can achieve it
 using htable module

 Define a hash table where to store the statistics, then you can increment
 the values using variables:

 modparam(htable, htable, stats=size=8;initval=0;)
 ...
 if(is_method(REGISTER)) {
 $var(x) = $shtinc(stats=regs:$tU);
 }

 You can dump the content of hash table via MI/RPC commands (using
 kamctl/sercmd).

 Cheers,
 Daniel

 --
 Daniel-Constantin Mierla - http://www.asipto.com
 http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
 Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
 Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 -
 http://asipto.com/u/katu


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] collecting stats per subscriber

2012-09-13 Thread Krishna Kurapati
Hi,

Is there a module that can be used to collect number of MESSAGEs sent
or received by a subscriber;
number of registrations by a subscriber? These will be per subscriber
as oppose to statistics collected for
entire system.

Thanks
Krish Kura

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Sending NOTIFY using t_uac_dlg over xmlrpc

2012-05-04 Thread Krishna Kurapati
That's what I thought too. There are no errors in the debug log. Since I am
using xmlrpc instead of fifo,
are there any restrictions on the format?

Krish Kura

On Fri, May 4, 2012 at 3:16 AM, Daniel-Constantin Mierla
mico...@gmail.comwrote:

  Hello,

 t_uac_dlg is general purpose command, so it should work with notify as
 well -- iirc, kamctl had some ping command that used NOTIFY.

 Do you get any error in the log messages?

 Cheers,
 Daniel


 On 4/27/12 11:48 PM, Krishna Kurapati wrote:

 Hi,

  I was able to send MESSAGE using xmlrpc (mi and t_uac_dlg) I got the 200
 OK response to the message.
 However, when I try to send NOTIFY, I receive HTTP response but with empty
 methodResponse.

  Is NOTIFY not suppored by t_uac_dlg?

  Thanks
 Krish Kura

   POST /RPC2 HTTP/1.0
 User-Agent: ruby-sip-client
 Host: 10.1.0.6
 Content-Type: text/xml
 Connection: keep-alive
 Content-Length: 650

  ?xml version=1.0
 ?methodCallmethodNamemi/methodNameparamsparamvaluestringt_uac_dlg/string/value/paramparamvaluestringNOTIFY/string/value/paramparamvaluestring
 sip:kkurapati_staff_test@10.1.0.6/string/value/paramparamvaluestring./string/value/paramparamvaluestring./string/value/paramparamvaluestringFrom:
 lt;sip:kkurapati_provider_test@10.1.0.6gt;

  To: lt;sip:kkurapati_staff_test@10.1.0.6gt;

  Max-Forwards: 70

  Call-ID: e3f15b5dc200234cff2c7b648d79c49f@10.1.0.3

  /string/value/paramparamvaluestringUser
 added/string/value/param/params/methodCall


  ##
 T 2012/04/27 14:39:11.579281 10.1.0.6:5060 - 10.1.0.3:44817 [AP]
 HTTP/1.0 200 OK.
 Via: SIP/2.0/TCP 10.1.0.3:44817.
 Server: kamailio (3.3.0-dev7 (x86_64/linux)).
 Content-Length: 137.
 .
 ?xml version=1.0?
 methodResponse
 params
 param
 valuearraydata
 /data/array/value
 /param
 /params
 /methodResponse



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda 
 - http://www.linkedin.com/in/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Routing based on gruu

2012-05-03 Thread Krishna Kurapati
Hi,

I am trying to use GRUU for routing MESSAGEs. For example
if I want to route to specific instance of the registered user, what do I
need
to send in the MESSAGE? If I know pub-gruu of the instance, where do I
insert it so that kamailio can correctly process it and send it to the
right instance?


Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Sending NOTIFY using t_uac_dlg over xmlrpc

2012-04-27 Thread Krishna Kurapati
Hi,

I was able to send MESSAGE using xmlrpc (mi and t_uac_dlg) I got the 200 OK
response to the message.
However, when I try to send NOTIFY, I receive HTTP response but with empty
methodResponse.

Is NOTIFY not suppored by t_uac_dlg?

Thanks
Krish Kura

POST /RPC2 HTTP/1.0
User-Agent: ruby-sip-client
Host: 10.1.0.6
Content-Type: text/xml
Connection: keep-alive
Content-Length: 650

?xml version=1.0
?methodCallmethodNamemi/methodNameparamsparamvaluestringt_uac_dlg/string/value/paramparamvaluestringNOTIFY/string/value/paramparamvaluestring
sip:kkurapati_staff_test@10.1.0.6/string/value/paramparamvaluestring./string/value/paramparamvaluestring./string/value/paramparamvaluestringFrom:
lt;sip:kkurapati_provider_test@10.1.0.6gt;

To: lt;sip:kkurapati_staff_test@10.1.0.6gt;

Max-Forwards: 70

Call-ID: e3f15b5dc200234cff2c7b648d79c49f@10.1.0.3

/string/value/paramparamvaluestringUser
added/string/value/param/params/methodCall


##
T 2012/04/27 14:39:11.579281 10.1.0.6:5060 - 10.1.0.3:44817 [AP]
HTTP/1.0 200 OK.
Via: SIP/2.0/TCP 10.1.0.3:44817.
Server: kamailio (3.3.0-dev7 (x86_64/linux)).
Content-Length: 137.
.
?xml version=1.0?
methodResponse
params
param
valuearraydata
/data/array/value
/param
/params
/methodResponse
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] xhttp and xmlrpc

2012-04-24 Thread Krishna Kurapati
Thanks Daniel. I added following module param and it worked!

modparam(xhttp, url_skip, ^/RPC2)

Thanks
Krish Kura

On Tue, Apr 24, 2012 at 12:58 AM, Daniel-Constantin Mierla 
mico...@gmail.com wrote:

  Hello,

 you have to set uri_skip or uri_match parameters, they are in both modules:

 http://kamailio.org/docs/modules/stable/modules/xhttp.html#id2531902

 In this way, you can get one route executed for some urls and the other
 for different.

 Cheers,
 Daniel


 On 4/23/12 6:00 PM, Krishna Kurapati wrote:

 Hi,

  I have two routes

  event_route[xhttp:request] {
  }

  route[XMLRPC]{
 }

  Both are using HTTP as transport. When I tried to send a XMLRPC POST
 command, the event_route
 is getting triggered.

  Do I need to handle the XMLRPC inside the event_route?

  Since I am using XMLRPC for Click2Dial kind of feature, I am wondering
 how the async responses be handled
 if I include in event_route.

  Krish Kura


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda 
 - http://www.linkedin.com/in/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] xhttp and xmlrpc

2012-04-23 Thread Krishna Kurapati
Hi,

I have two routes

event_route[xhttp:request] {
}

route[XMLRPC]{
}

Both are using HTTP as transport. When I tried to send a XMLRPC POST
command, the event_route
is getting triggered.

Do I need to handle the XMLRPC inside the event_route?

Since I am using XMLRPC for Click2Dial kind of feature, I am wondering how
the async responses be handled
if I include in event_route.

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] t_relay is failing after 45 seconds...

2012-04-04 Thread Krishna Kurapati
Daniel,

I tried this configuration snippet.

t_on_failure(FAIL_ONE);
# Do not try opening connections with clients since they are behind
NAT
set_forward_no_connect();

xlog(L_ALERT, calling t_relay\n);

# set timeout to be less 30s for INVITE and 20s for Non-INVTIEs
t_set_fr(3, 2);
if (!t_relay())
{
...
}

I don't see a change in the response... It is still taking 45-50 secs for
the 477 error response to MESSAGE from t_relay().

Krish Kura

On Tue, Apr 3, 2012 at 6:39 AM, Daniel-Constantin Mierla
mico...@gmail.comwrote:

 Hello,


 On 3/30/12 2:27 PM, Krishna Kurapati wrote:

 Hi,

 I have

 # Time in seconds after a TCP connection will be closed if it is not
 available for writing in this interval
 tcp_send_timeout=2

 And I am using

 save(location, 0x04))

 to save only one contact per user.

 However, when I tried to relay message to a user, sometimes it is taking
 over 45 seconds for t_relay to timeout
 and return 477 error.

 How can I reduce the t_relay timeout?


 tm related timeouts can be adjusted via parameters or functions from tm
 module:

 http://kamailio.org/docs/**modules/stable/modules/tm.htmlhttp://kamailio.org/docs/modules/stable/modules/tm.html

 look for fr_timer...

 Cheers,
 Daniel

 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
 http://www.asipto.com/index.**php/kamailio-advanced-**training/http://www.asipto.com/index.php/kamailio-advanced-training/


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Failed to open TLS connection from the client...

2012-04-01 Thread Krishna Kurapati
I restarted Kamailio after a while and I see this issue...

Not sure what triggered this. It was working fine before.

Krish Kura

Apr  1 07:41:02 (none) /usr/sbin/kamailio[24074]: INFO: tls
[tls_domain.c:235]: TLSs10.1.0.4:5061: verify_certificate=1
Apr  1 07:41:02 (none) /usr/sbin/kamailio[24074]: INFO: tls
[tls_domain.c:238]: TLSs10.1.0.4:5061: verify_depth=3
Apr  1 07:41:02 (none) /usr/sbin/kamailio[24074]: INFO: tls
[tls_domain.c:567]: TLSs10.1.0.4:5061: IF client provides certificate
then it MUST be valid
Apr  1 07:41:02 (none) /usr/sbin/kamailio[24082]: INFO: ctl
[io_listener.c:225]: io_listen_loop:  using epoll_lt io watch method
(config)
Apr  1 07:41:41 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
Apr  1 07:41:41 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
no 0)
Apr  1 07:41:41 (none) /usr/sbin/kamailio[24084]: : core [pass_fd.c:209]:
ERROR: send_fd: sendmsg failed sending 19 on -1061109568: Bad file
descriptor (9)
Apr  1 07:41:41 (none) /usr/sbin/kamailio[24084]: ERROR: core
[tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
(flags 0x4018), fd 19
Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
no 0)
Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core [pass_fd.c:209]:
ERROR: send_fd: sendmsg failed sending 19 on -1061109568: Bad file
descriptor (9)
Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: ERROR: core
[tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
(flags 0x4018), fd 19
Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
no 0)
Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core [pass_fd.c:209]:
ERROR: send_fd: sendmsg failed sending 19 on -1061109568: Bad file
descriptor (9)
Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: ERROR: core
[tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
(flags 0x4018), fd 19
Apr  1 07:42:45 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
Apr  1 07:42:45 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
no 0)
Apr  1 07:42:45 (none) /usr/sbin/kamailio[24084]: : core [pass_fd.c:209]:
ERROR: send_fd: sendmsg failed sending 19 on -1061109568: Bad file
descriptor (9)
Apr  1 07:42:45 (none) /usr/sbin/kamailio[24084]: ERROR: core
[tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
(flags 0x4018), fd 19
Apr  1 07:43:39 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
Apr  1 07:43:39 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
no 0)
Apr  1 07:43:39 (none) /usr/sbin/kamailio[24084]: : core [pass_fd.c:209]:
ERROR: send_fd: sendmsg failed sending 19 on -1061109568: Bad file
descriptor (9)
Apr  1 07:43:39 (none) /usr/sbin/kamailio[24084]: ERROR: core
[tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
(flags 0x4018), fd 19
Apr  1 07:45:22 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
Apr  1 07:45:22 (none) /usr/sbin/kamailio[24084]: : core
[tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
no 0)
Apr  1 07:45:22 (none) /usr/sbin/kamailio[24084]: : core [pass_fd.c:209]:
ERROR: send_fd: sendmsg failed sending 19 on -1061109568: Bad file
descriptor (9)
Apr  1 07:45:22 (none) /usr/sbin/kamailio[24084]: ERROR: core
[tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
(flags 0x4018), fd 19
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Failed to open TLS connection from the client...

2012-04-01 Thread Krishna Kurapati
I enabled DEBUG LEVEL 4 and tried to see what is going on... Here is the
log...

10(24471) DEBUG: core [io_wait.h:390]: DBG: io_watch_add(0x83bbc0, 18, 2,
0x7f3334f85820), fd_no=10
10(24471) DEBUG: core [io_wait.h:617]: DBG: io_watch_del (0x83bbc0, 18,
-1, 0x0) fd_no=11 called
10(24471) DEBUG: core [tcp_main.c:4295]: tcp: DBG: sending to child,
events 1
10(24471) DEBUG: core [tcp_main.c:3962]: WARNING: send2child: no free tcp
receiver,  connection passed to the least busy one (2)
10(24471) DEBUG: core [tcp_main.c:3966]: selected tcp worker 0 0(0) for
activity on [tls:10.1.0.4:5061], 0x7f3334f85820
10(24471) : core [tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0
(pid 24461)
10(24471) : core [tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568
for 0 (pid 0, ser no 0)
10(24471) : core [pass_fd.c:209]: ERROR: send_fd: sendmsg failed sending
18 on -1061109568: Bad file descriptor (9)
10(24471) ERROR: core [tcp_main.c:4003]: ERROR: send2child: send_fd
failed for 0x7f3334f85820 (flags 0x4018), fd 18
10(24471) DEBUG: tls [tls_server.c:601]: Closing SSL connection (nil)


send2child is not finding a tcp receiver. I restarted the server. It should
find some child...

On Sun, Apr 1, 2012 at 9:53 AM, Krishna Kurapati kkura...@gmail.com wrote:

 I restarted Kamailio after a while and I see this issue...

 Not sure what triggered this. It was working fine before.

 Krish Kura

 Apr  1 07:41:02 (none) /usr/sbin/kamailio[24074]: INFO: tls
 [tls_domain.c:235]: TLSs10.1.0.4:5061: verify_certificate=1
 Apr  1 07:41:02 (none) /usr/sbin/kamailio[24074]: INFO: tls
 [tls_domain.c:238]: TLSs10.1.0.4:5061: verify_depth=3
 Apr  1 07:41:02 (none) /usr/sbin/kamailio[24074]: INFO: tls
 [tls_domain.c:567]: TLSs10.1.0.4:5061: IF client provides certificate
 then it MUST be valid
 Apr  1 07:41:02 (none) /usr/sbin/kamailio[24082]: INFO: ctl
 [io_listener.c:225]: io_listen_loop:  using epoll_lt io watch method
 (config)
 Apr  1 07:41:41 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
 Apr  1 07:41:41 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
 no 0)
 Apr  1 07:41:41 (none) /usr/sbin/kamailio[24084]: : core
 [pass_fd.c:209]: ERROR: send_fd: sendmsg failed sending 19 on -1061109568:
 Bad file descriptor (9)
 Apr  1 07:41:41 (none) /usr/sbin/kamailio[24084]: ERROR: core
 [tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
 (flags 0x4018), fd 19
 Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
 Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
 no 0)
 Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
 [pass_fd.c:209]: ERROR: send_fd: sendmsg failed sending 19 on -1061109568:
 Bad file descriptor (9)
 Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: ERROR: core
 [tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
 (flags 0x4018), fd 19
 Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
 Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
 no 0)
 Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: : core
 [pass_fd.c:209]: ERROR: send_fd: sendmsg failed sending 19 on -1061109568:
 Bad file descriptor (9)
 Apr  1 07:42:21 (none) /usr/sbin/kamailio[24084]: ERROR: core
 [tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
 (flags 0x4018), fd 19
 Apr  1 07:42:45 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
 Apr  1 07:42:45 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
 no 0)
 Apr  1 07:42:45 (none) /usr/sbin/kamailio[24084]: : core
 [pass_fd.c:209]: ERROR: send_fd: sendmsg failed sending 19 on -1061109568:
 Bad file descriptor (9)
 Apr  1 07:42:45 (none) /usr/sbin/kamailio[24084]: ERROR: core
 [tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
 (flags 0x4018), fd 19
 Apr  1 07:43:39 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
 Apr  1 07:43:39 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3338]: BUG: handle_tcp_child: fd -1061109568 for 0 (pid 0, ser
 no 0)
 Apr  1 07:43:39 (none) /usr/sbin/kamailio[24084]: : core
 [pass_fd.c:209]: ERROR: send_fd: sendmsg failed sending 19 on -1061109568:
 Bad file descriptor (9)
 Apr  1 07:43:39 (none) /usr/sbin/kamailio[24084]: ERROR: core
 [tcp_main.c:4003]: ERROR: send2child: send_fd failed for 0x7ff3c82b3bb8
 (flags 0x4018), fd 19
 Apr  1 07:45:22 (none) /usr/sbin/kamailio[24084]: : core
 [tcp_main.c:3575]: BUG: handle_ser_child: fd -1 for 0 (pid 24074)
 Apr  1 07:45:22 (none

[SR-Users] t_relay is failing after 45 seconds...

2012-03-30 Thread Krishna Kurapati
Hi,

I have

# Time in seconds after a TCP connection will be closed if it is not
available for writing in this interval
tcp_send_timeout=2

And I am using

save(location, 0x04))

to save only one contact per user.

However, when I tried to relay message to a user, sometimes it is taking
over 45 seconds for t_relay to timeout
and return 477 error.

How can I reduce the t_relay timeout?

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] siptrace error...

2012-03-29 Thread Krishna Kurapati
Daniel,

I finally had some time to put a log after it failed to convert from to
socket.

ERROR: siptrace [siptrace.c:1704]: there is not a valid number port 5060??k5
Mar 29 13:30:32 siptest /usr/sbin/kamailio[19848]: ERROR: siptrace
[siptrace.c:1514]: ERROR: bad FROM tcp:10.1.0.6:5060 or TO tcp:
75.62.17.45:63343

The passing parameter to the function look fine. Well formed and null
terminated. Inside it is failing.
Any ideas

Attaching the code segments around the lines


Code around line 1514:

   /* Convert proto:ip:port to sockaddress union SRC IP */
if (pipport2su(from-s, from_su, proto)==-1 || (pipport2su(to-s,
to_su, proto)==-1))
{
LOG(L_ERR, ERROR: bad FROM %s or TO %s\n, from-s, to-s);
goto error;
}


Code around line 1704:

   else {
/*the address contains a port number*/
*p = '\0';
p++;
port_str.s = p;
port_str.len = strlen(p);
LM_DBG(the port string is %s\n, p);
if(str2int(port_str, port_no) != 0 ) {
LM_ERR(there is not a valid number port %s\n, p);
goto error;
}
*p = '\0';
}






On Wed, Mar 28, 2012 at 2:16 PM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  have you changed the log line to print the port? can you print the entire
 string, with proto and ip to see if there are spaces/invalid characters
 (print it between special chars, like [])?

 The line is inside the mirroring traffic via hep protocol, is what you
 want to get, right?

 Cheers,
 Daniel


 On 3/28/12 12:53 PM, Krishna Kurapati wrote:

 I tried to pull null terminator to see if that fixes the issue. That is
 why there is shift in the lines. It is same as line 1701.

  Krish Kura

 On Wed, Mar 28, 2012 at 3:57 AM, Daniel-Constantin Mierla 
 mico...@gmail.com wrote:

  Hello,

 are you working with a custom siptrace module? the line in siptrace.c
 does not match. If you changed the sources, paste here the lines in
 siptrace.c around 1705, 10 before and 10 after.

 Cheers,
 Daniel


 On 3/26/12 3:23 PM, Krishna Kurapati wrote:

  Hi,

  I keep getting this error in the sip_trace module:

  Mar 26 06:19:26 siptest /usr/sbin/kamailio[4279]: ERROR: siptrace
 [siptrace.c:1705]: there is not a valid number port 5060?/??

  Krish Kura


  ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, 
 Germanyhttp://www.asipto.com/index.php/kamailio-advanced-training/



 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, 
 Germanyhttp://www.asipto.com/index.php/kamailio-advanced-training/


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] siptrace error...

2012-03-28 Thread Krishna Kurapati
I tried to pull null terminator to see if that fixes the issue. That is why
there is shift in the lines. It is same as line 1701.

Krish Kura

On Wed, Mar 28, 2012 at 3:57 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  Hello,

 are you working with a custom siptrace module? the line in siptrace.c does
 not match. If you changed the sources, paste here the lines in siptrace.c
 around 1705, 10 before and 10 after.

 Cheers,
 Daniel


 On 3/26/12 3:23 PM, Krishna Kurapati wrote:

 Hi,

  I keep getting this error in the sip_trace module:

  Mar 26 06:19:26 siptest /usr/sbin/kamailio[4279]: ERROR: siptrace
 [siptrace.c:1705]: there is not a valid number port 5060?/??

  Krish Kura


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, 
 Germanyhttp://www.asipto.com/index.php/kamailio-advanced-training/


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] TCP memory failures...

2012-03-28 Thread Krishna Kurapati
Thanks Daniel, What is a typical configuration for 1000 and 1
connections?

On Wed, Mar 28, 2012 at 4:04 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  Hello,

 looks like you haven't reserved enough shared memory for the load you want
 to handle. Increase it via -m command line parameter, by default is 32MB
 which is quite low for stress testing.

 Cheers,
 Daniel


 On 3/26/12 3:57 PM, Krishna Kurapati wrote:

 I keep getting these... I am using master branch...

  Mar 26 06:46:34 siptest /usr/sbin/kamailio[5062]: ERROR: core
 [tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
 Mar 26 06:46:34 siptest /usr/sbin/kamailio[5062]: ERROR: core
 [tcp_main.c:4135]: ERROR: handle_new_connect: tcpconn_new failed, closing
 socket
 Mar 26 06:46:48 siptest /usr/sbin/kamailio[5062]: ERROR: core
 [tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
 Mar 26 06:46:48 siptest /usr/sbin/kamailio[5062]: ERROR: core
 [tcp_main.c:4135]: ERROR: handle_new_connect: tcpconn_new failed, closing
 socket
 Mar 26 06:47:51 siptest /usr/sbin/kamailio[5062]: ERROR: core
 [tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
 Mar 26 06:47:51 siptest /usr/sbin/kamailio[5062]: ERROR: core
 [tcp_main.c:4135]: ERROR: handle_new_connect: tcpconn_new failed, closing
 socket
 Mar 26 06:48:45 siptest /usr/sbin/kamailio[5062]: ERROR: core
 [tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
 Mar 26 06:48:45 siptest /usr/sbin/kamailio[5062]: ERROR: core
 [tcp_main.c:4135]: ERROR: handle_new_connect: tcpconn_new failed, closing
 socket

  I have never seen this before...

  what could cause this? Is there something I could do to fix this issue?

  Krish Kura


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, 
 Germanyhttp://www.asipto.com/index.php/kamailio-advanced-training/


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] 2 rollover contacts per user

2012-03-26 Thread Krishna Kurapati
Will do.

On Mon, Mar 26, 2012 at 2:57 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  Hello,


 On 3/24/12 2:35 PM, Krishna Kurapati wrote:

 Thanks Daniel for the suggestions. To make the script manageable, I am
 thinking of implementing last option.
 Have another flag to save. May be 0x8?

 yes, it is ok.

 Perhaps this should have lower priority than 0x4, just in case someone
 sets both of them.



  We will still use max_contacts = 2 in mod params.
 And when the save(location, 0x08) is called, the oldest contact is
 removed and the new contact is
 added. This can apply to any number of max_contacts...


 Perfect. As said in previous email, this value can be set per registration
 right now, with devel version.

 Cheers,
 Daniel



  This way everything else remains the same.

  Krish Kura

 On Sat, Mar 24, 2012 at 3:48 AM, Daniel-Constantin Mierla 
 mico...@gmail.com wrote:

 Hello,


 On 3/23/12 3:21 PM, Krishna Kurapati wrote:

 Hi,

 Is there a way to set up maximum of 2 active roll over contacts per
 user? Currently when I setup max contacts param as 2,
 The third one is responding with 503 error for 3rd Register. How can we
 remove one of the contacts and replace it with the
 new one.

 I need it when the device is switching over from Wifi to 3G and back. or
 Wifi network to Wifi network switching.

  the master branch support setting number of contacts per registration,
 but it is the old fashion of rejecting new contacts.

 Some ideas coming in my mind, not sure if all get to a proper solution:
 - play with two tables for usrloc, like location1 and location2, each
 with save(...) last registration and you do round robing with the
 registration (use htable to keep which location table to use next). Then do
 lookup/append_branch over the table one, revert the uri and do lookup over
 the second table -- combine these operations as you need
 - use database mode only and then sqlops to remove entries that are no
 longer useful for you. defining location table in memory (possible with
 mysql), gives you good performances

 Of course, an extension to c code to have such functionality would be
 another option, contributions will be accepted as usual.

 Cheers,
 Daniel

 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
 http://www.asipto.com/index.php/kamailio-advanced-training/



 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, 
 Germanyhttp://www.asipto.com/index.php/kamailio-advanced-training/


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] TCP memory failures...

2012-03-26 Thread Krishna Kurapati
I keep getting these... I am using master branch...

Mar 26 06:46:34 siptest /usr/sbin/kamailio[5062]: ERROR: core
[tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
Mar 26 06:46:34 siptest /usr/sbin/kamailio[5062]: ERROR: core
[tcp_main.c:4135]: ERROR: handle_new_connect: tcpconn_new failed, closing
socket
Mar 26 06:46:48 siptest /usr/sbin/kamailio[5062]: ERROR: core
[tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
Mar 26 06:46:48 siptest /usr/sbin/kamailio[5062]: ERROR: core
[tcp_main.c:4135]: ERROR: handle_new_connect: tcpconn_new failed, closing
socket
Mar 26 06:47:51 siptest /usr/sbin/kamailio[5062]: ERROR: core
[tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
Mar 26 06:47:51 siptest /usr/sbin/kamailio[5062]: ERROR: core
[tcp_main.c:4135]: ERROR: handle_new_connect: tcpconn_new failed, closing
socket
Mar 26 06:48:45 siptest /usr/sbin/kamailio[5062]: ERROR: core
[tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
Mar 26 06:48:45 siptest /usr/sbin/kamailio[5062]: ERROR: core
[tcp_main.c:4135]: ERROR: handle_new_connect: tcpconn_new failed, closing
socket

I have never seen this before...

what could cause this? Is there something I could do to fix this issue?

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] 2 rollover contacts per user

2012-03-24 Thread Krishna Kurapati
Thanks Daniel for the suggestions. To make the script manageable, I am
thinking of implementing last option.
Have another flag to save. May be 0x8?

We will still use max_contacts = 2 in mod params.
And when the save(location, 0x08) is called, the oldest contact is
removed and the new contact is
added. This can apply to any number of max_contacts...

This way everything else remains the same.

Krish Kura

On Sat, Mar 24, 2012 at 3:48 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

 Hello,


 On 3/23/12 3:21 PM, Krishna Kurapati wrote:

 Hi,

 Is there a way to set up maximum of 2 active roll over contacts per user?
 Currently when I setup max contacts param as 2,
 The third one is responding with 503 error for 3rd Register. How can we
 remove one of the contacts and replace it with the
 new one.

 I need it when the device is switching over from Wifi to 3G and back. or
 Wifi network to Wifi network switching.

 the master branch support setting number of contacts per registration, but
 it is the old fashion of rejecting new contacts.

 Some ideas coming in my mind, not sure if all get to a proper solution:
 - play with two tables for usrloc, like location1 and location2, each with
 save(...) last registration and you do round robing with the registration
 (use htable to keep which location table to use next). Then do
 lookup/append_branch over the table one, revert the uri and do lookup over
 the second table -- combine these operations as you need
 - use database mode only and then sqlops to remove entries that are no
 longer useful for you. defining location table in memory (possible with
 mysql), gives you good performances

 Of course, an extension to c code to have such functionality would be
 another option, contributions will be accepted as usual.

 Cheers,
 Daniel

 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
 http://www.asipto.com/index.**php/kamailio-advanced-**training/http://www.asipto.com/index.php/kamailio-advanced-training/


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] 2 rollover contacts per user

2012-03-23 Thread Krishna Kurapati
Hi,

Is there a way to set up maximum of 2 active roll over contacts per user?
Currently when I setup max contacts param as 2,
The third one is responding with 503 error for 3rd Register. How can we
remove one of the contacts and replace it with the
new one.

I need it when the device is switching over from Wifi to 3G and back. or
Wifi network to Wifi network switching.

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Relaying message to Recent contact list...

2012-03-22 Thread Krishna Kurapati
Thanks Daniel.

I  found your posting four years ago about saving one contact per user

http://lists.kamailio.org/pipermail/devel/2008-October/016273.html


and used save(location, 0x04). However, I noticed a problem with this.
The contact is not storing in the memory. Whenever there is a
Reregistration
happening, the contact is briefly not available for routing.

Then I looked at the resgistrar code, I am befuddled.

-- code snippet:

/*! \brief
 * Wrapper to save(location)
 */
static int w_save(struct sip_msg* _m, char* _d, char* _cflags)
{
return save(_m, (udomain_t*)_d, ((int)(unsigned long)_cflags));
}

The string 0x04 looks like getting type-casted to long.

Krish Kura


On Thu, Mar 22, 2012 at 11:11 AM, Daniel-Constantin Mierla 
mico...@gmail.com wrote:

  Hello,

 if you don't use the other contacts, then might be simpler to just store
 one contact per AoR (which will be from last registration) -- see save(...)
 second parameter flags.

 Don't remember by hart, but registrar or usrloc has a parameter to control
 whether to add or not additional branches from a location lookup - check
 the readmeas, but I am not sure the first result is the most recent, you
 would have to test it or check the sources.

 The last coming in my mind right now would be to program it in config via
 reg_fetch_contacts() and $ulc(...).

 Cheers,
 Daniel


 On 3/22/12 4:49 PM, Krishna Kurapati wrote:

 Hi,

  I am trying to relay the message to the Registered user. However, I
 would like to relay only to a recent contact.
 In case, there are multiple contact, I do not want to relay to older
 contacts.

  I am using t_relay() which is currently forking the request to all
 contacts.

  Any other way to accomplish my need?

  Thanks
 Krish Kura


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, 
 Germanyhttp://www.asipto.com/index.php/kamailio-advanced-training/


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] message offline store questions...

2012-03-15 Thread Krishna Kurapati
Hi,

I am using msilo module to store offline message. I am sending back 202
pending when the message is stored (m_store)
However, when I message delivered (m_dump), how do I inform the sender that
the message is successfully
delivered? Also, how do I handle if the sender if offline when I try to
inform about the delivery of the message. I think I need
offline notify store to handle this condition. Instead of removing the
message from the silo table upon receipt of 200 OK
from the receiver, I am thinking keep the message there until the NOTIFY is
successfully delivered to the sender. In effect,
the silo table in the database function as offline message and notify
store.

I reviewed module_k/msilo source code, and the functionality that I need
seems missing. I am thinking of two
approaches.

1) Extend the msilo module to implement the feature, if more people need
it, then I can submit the changes.

2) Write sqlops + lua script to address the missing function.

In either case, I am thinking of storing the callid of the original message
(possibly in silo table?) in the database
and sending the NOTIFY with the callid to the sender.

I would like to extend the silo table with two columns:

1. the callid of the message
2. flags to indicate status of the delivery of the message.

Appreciate your comments, suggestions and alternatives.

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Compilation errors...

2012-03-13 Thread Krishna Kurapati
Thanks for the guidance. I excluded the module. I will migrate to using
xmlrpc module.

On Tue, Mar 13, 2012 at 3:23 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  Hello,


 On 3/12/12 10:55 PM, Krishna Kurapati wrote:

 Hi,

  git cloned main branch and tried to compile it on Cent OS 6.

  The mi_xmlrpc module is failing to compile

  make
 Makefile:46: You are using an unsupported libxmlrpc-c3 version  (1.16.24),
 compile at your own risk!
 Makefile:46: You are using an unsupported libxmlrpc-c3 version  (1.16.24),
 compile at your own risk!


 as the above log message says, you compile against an unsupported lib
 version.

 As a matter of fact, you should use xmlrpc module from modules/ folder
 instead of mi_xmlrpc which is going to be obsolete. With xmlrpc you can run
 any MI command via RPC command 'mi', with first parameter the MI command,
 and of course, any RPC command exported from modules.

 xmlrpc does not use an external library for transport layer, but the
 tcp/tls from the core.

 Cheers,
 Daniel

  CC (gcc) [M mi_xmlrpc.so] abyss_conf.o
 CC (gcc) [M mi_xmlrpc.so] abyss_conn.o
 CC (gcc) [M mi_xmlrpc.so] abyss_data.o
  abyss_data.c:219: error: expected ‘)’ before ‘*’ token
 abyss_data.c:236: error: expected ‘)’ before ‘*’ token
 abyss_data.c:249: error: expected ‘)’ before ‘*’ token
 abyss_data.c:287: error: expected ‘)’ before ‘*’ token
 abyss_data.c:299: error: expected ‘)’ before ‘*’ token
 abyss_data.c:312: error: expected ‘)’ before ‘*’ token
 abyss_data.c:326: error: expected ‘)’ before ‘*’ token
 abyss_data.c:332: error: expected ‘)’ before ‘*’ token
 make: *** [abyss_data.o] Error 1


  I have installed following rpms:

  xmlrpc-c-devel-1.16.24-1200.1840.el6_1.4.x86_64
 xmlrpc-c-client-1.16.24-1200.1840.el6_1.4.x86_64
 xmlrpc-c-client++-1.16.24-1200.1840.el6_1.4.x86_64
 xmlrpc-c-c++-1.16.24-1200.1840.el6_1.4.x86_64
 xmlrpc-c-1.16.24-1200.1840.el6_1.4.x86_64

  Can someone help with this?

  Thanks
 Krish


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla
 Kamailio Advanced Training, April 23-26, 2012, Berlin, 
 Germanyhttp://www.asipto.com/index.php/kamailio-advanced-training/


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Compilation errors...

2012-03-12 Thread Krishna Kurapati
Hi,

git cloned main branch and tried to compile it on Cent OS 6.

The mi_xmlrpc module is failing to compile

make
Makefile:46: You are using an unsupported libxmlrpc-c3 version  (1.16.24),
compile at your own risk!
Makefile:46: You are using an unsupported libxmlrpc-c3 version  (1.16.24),
compile at your own risk!
CC (gcc) [M mi_xmlrpc.so] abyss_conf.o
CC (gcc) [M mi_xmlrpc.so] abyss_conn.o
CC (gcc) [M mi_xmlrpc.so] abyss_data.o
abyss_data.c:219: error: expected ‘)’ before ‘*’ token
abyss_data.c:236: error: expected ‘)’ before ‘*’ token
abyss_data.c:249: error: expected ‘)’ before ‘*’ token
abyss_data.c:287: error: expected ‘)’ before ‘*’ token
abyss_data.c:299: error: expected ‘)’ before ‘*’ token
abyss_data.c:312: error: expected ‘)’ before ‘*’ token
abyss_data.c:326: error: expected ‘)’ before ‘*’ token
abyss_data.c:332: error: expected ‘)’ before ‘*’ token
make: *** [abyss_data.o] Error 1


I have installed following rpms:

xmlrpc-c-devel-1.16.24-1200.1840.el6_1.4.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6_1.4.x86_64
xmlrpc-c-client++-1.16.24-1200.1840.el6_1.4.x86_64
xmlrpc-c-c++-1.16.24-1200.1840.el6_1.4.x86_64
xmlrpc-c-1.16.24-1200.1840.el6_1.4.x86_64

Can someone help with this?

Thanks
Krish
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio and MySQL/Galera Replication...

2012-03-10 Thread Krishna Kurapati
Hi,

I am trying to setup Kamailio in an Active-Active configuration behind a
TCP load balancer.
On the database side, looking at MySQL cluster as independent node set vs.
Kamailio/MySQL
server with Galera synchronous replication.

The first configuration requires 3 or 5 servers. 2 for Kamailio and 3 for
MySQL. The second probably
just requires 2 servers.

I am leaning towards Kamailio/MySQL/Galera. Could you share
 setup/performance issue...

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Backing up htable to SQL table ...

2012-03-09 Thread Krishna Kurapati
Ramona.

I pulled and it worked fine. Thanks for your support.

Krish

On Fri, Mar 9, 2012 at 11:10 AM, Elena-Ramona Modroiu ram...@asipto.comwrote:

  Hi,

 I committed the patch in master branch, but I removed the condition
 'ht_db_expires_flag!=0', because it is used to control if expires column is
 saved in database, nothing else. If I misunderstood something, let me know,
 if not and all works fine for you with the commit, then the patch can be
 backported to 3.2.

 Ramona

 On 3/8/12 10:38 PM, Krishna Kurapati wrote:

 Thanks Daniel for the help. I was looking at other module parameters.
 I added this like and tried it again

  modparam(htable, htable,xhash=size=8;dbtable=htable;dbmode=1;)

  However, it was still not backing up to the database. Seems like there
 is bug when the expiration is not set or
 set to 0. I modified the code and it worked.

  Here is the change log:

  --- a/modules_k/htable/ht_db.c
 +++ b/modules_k/htable/ht_db.c
 @@ -369,10 +369,12 @@ int ht_db_save_table(ht_t *ht, str *dbtable)
 it-name.len, it-name.s,
 it-value.n);
 }

 -   if (it-expire = now) {
 +   if(ht-htexpire  0  ht_db_expires_flag!=0) {
 +  if (it-expire = now) {
 LM_DBG(skipping expired entry);
 it = it-next;
 continue;
 +  }
 }


  If this is the right fix for the bug, can someone commit this to the
 main?

  Thanks
 Krishna Kura

  On Wed, Mar 7, 2012 at 9:48 PM, Krishna Kurapati kkura...@gmail.comwrote:

 Any help on how to backup the htable content to database table?

  Thanks


 On Tue, Mar 6, 2012 at 5:28 PM, Krishna Kurapati kkura...@gmail.comwrote:

 I did little more digging into htable source code. It looks like syncing
 to database is happening when the module is being
 destroyed.

  To see if this is working, I tried to stop Kamailio and looked into
 the database. The htable is still empty. Any configuration
 changes required to make the process happen?

  Thanks
 Krish Kura

 On Tue, Mar 6, 2012 at 8:38 AM, Krishna Kurapati kkura...@gmail.comwrote:

 Hi,

  This is my first time attempt using htable module.
 How can I back up the htable content in the database incase the server
 restarts. I saw a htable in the MySQL database.
 My observation has been that htable module is not automatically backing
 up to database even though I added
 modparams to point to the database. Do I need to explicitly backup
 htable content to database using sqlops or some
 other mechanism?

  Thanks
 Krish Kura






 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Backing up htable to SQL table ...

2012-03-08 Thread Krishna Kurapati
Thanks Daniel for the help. I was looking at other module parameters.
I added this like and tried it again

modparam(htable, htable,xhash=size=8;dbtable=htable;dbmode=1;)

However, it was still not backing up to the database. Seems like there is
bug when the expiration is not set or
set to 0. I modified the code and it worked.

Here is the change log:

--- a/modules_k/htable/ht_db.c
+++ b/modules_k/htable/ht_db.c
@@ -369,10 +369,12 @@ int ht_db_save_table(ht_t *ht, str *dbtable)
it-name.len, it-name.s,
it-value.n);
}

-   if (it-expire = now) {
+   if(ht-htexpire  0  ht_db_expires_flag!=0) {
+  if (it-expire = now) {
LM_DBG(skipping expired entry);
it = it-next;
continue;
+  }
}


If this is the right fix for the bug, can someone commit this to the main?

Thanks
Krishna Kura

On Wed, Mar 7, 2012 at 9:48 PM, Krishna Kurapati kkura...@gmail.com wrote:

 Any help on how to backup the htable content to database table?

 Thanks


 On Tue, Mar 6, 2012 at 5:28 PM, Krishna Kurapati kkura...@gmail.comwrote:

 I did little more digging into htable source code. It looks like syncing
 to database is happening when the module is being
 destroyed.

 To see if this is working, I tried to stop Kamailio and looked into the
 database. The htable is still empty. Any configuration
 changes required to make the process happen?

 Thanks
 Krish Kura

 On Tue, Mar 6, 2012 at 8:38 AM, Krishna Kurapati kkura...@gmail.comwrote:

 Hi,

 This is my first time attempt using htable module.
 How can I back up the htable content in the database incase the server
 restarts. I saw a htable in the MySQL database.
 My observation has been that htable module is not automatically backing
 up to database even though I added
 modparams to point to the database. Do I need to explicitly backup
 htable content to database using sqlops or some
 other mechanism?

 Thanks
 Krish Kura




___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Backing up htable to SQL table ...

2012-03-07 Thread Krishna Kurapati
Any help on how to backup the htable content to database table?

Thanks

On Tue, Mar 6, 2012 at 5:28 PM, Krishna Kurapati kkura...@gmail.com wrote:

 I did little more digging into htable source code. It looks like syncing
 to database is happening when the module is being
 destroyed.

 To see if this is working, I tried to stop Kamailio and looked into the
 database. The htable is still empty. Any configuration
 changes required to make the process happen?

 Thanks
 Krish Kura

 On Tue, Mar 6, 2012 at 8:38 AM, Krishna Kurapati kkura...@gmail.comwrote:

 Hi,

 This is my first time attempt using htable module.
 How can I back up the htable content in the database incase the server
 restarts. I saw a htable in the MySQL database.
 My observation has been that htable module is not automatically backing
 up to database even though I added
 modparams to point to the database. Do I need to explicitly backup htable
 content to database using sqlops or some
 other mechanism?

 Thanks
 Krish Kura



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] msilo is failing to in db connection...

2012-03-06 Thread Krishna Kurapati
Hi,

It finally worked. I reconstructed the config file step by step with the
same modparam() and it worked.
Still not sure what really was wrong before.

The other day, I tried to create routes for sending asynchronous messages
to web service and the entire system
stopped working. The routes became  empty. The config parser never
complained. I rebuilt the config file and checked
to see if the file is ok by running Kamailio step by step. I could not
trust kamailio config check since it is
the one that threw me off track.

Are there any best practices out there in constructing long config file?
Is it possible to create smaller modular config files and link them to
create the system? Or a better tool to
identify errors in the config file?

Best,
Krish Kura

On Sat, Mar 3, 2012 at 11:16 AM, Krishna Kurapati kkura...@gmail.comwrote:

 Further investigation into the issue revealed that the db_conn in the
 module_init is failing... When I commented out the code,
 the module is initialized ok. Not sure if this is will fine.

 #if 0
 db_con = msilo_dbf.init(ms_db_url);
 if (!db_con)
 {
 LM_ERR(failed to connect to the database\n);
 return -1;
 }

 if(db_check_table_version(msilo_dbf, db_con, ms_db_table,
 S_TABLE_VERSION)  0) {
 LM_ERR(error during table version check.\n);
 return -1;
 }
 if(db_con)
 msilo_dbf.close(db_con);
 db_con = NULL;
 #endif

 Is the module not suppose to connect to database in the module init?

 Thanks


 On Sat, Mar 3, 2012 at 10:13 AM, Krishna Kurapati kkura...@gmail.comwrote:

 Hi,

 Thanks for the response. I looked at the DBURL and it looked just fine. I
 wanted to test and see if the module is reading the config
 param or not, I deliberately changed it to

 modparam(msilo, db_url, mysql://root:x@localhost/openser);

 When I ran it, the logs shows the user as 'openser' not the 'root' that I
 gave in config param. May be somewhere in the code,
 db_url is being overwritten by DEFAULT_DB_URL.

 0(28806) DEBUG: db_mysql [km_my_con.c:94]: opening connection:
 mysql://:@localhost/openser
  0(28806) ERROR: db_mysql [km_my_con.c:109]: driver error: Access denied
 for user 'openser'@'localhost' (using password: YES)
  0(28806) ERROR: core [db.c:312]: could not add connection to the pool
 0(28806) ERROR: msilo [msilo.c:365]: failed to connect to the database

 Thanks
 Krish Kura

 On Sat, Mar 3, 2012 at 5:14 AM, Daniel-Constantin Mierla 
 mico...@gmail.com wrote:

  Hello,

 the error says the username, password or IP address are invalid to
 connect to mysql -- access denied. There does not seem like being other
 connections using same db_url, check for typos in db_url parameter.

 Cheers,
 Daniel



 On 3/3/12 12:39 AM, Krishna Kurapati wrote:

 Hi all,

  I am trying to use msilo module from modules_k. Unfortunately it if
 failing during DB initialization.
 Other modules are initializing fine. I am using Kamailio 3.2.2.

  Not sure why the connection is not found. I tried to increase the MAX
 mysql connections to 250. I see the
 same error after I increase the connections.

  The config file is pretty standard:

  loadmodule msilo.so
  modparam(msilo, add_date, 0);
 modparam(msilo, db_url, DBURL);  # The DBURL works for other
 modules...

  Here is the Log output:

  0(14115) DEBUG: core [cfg.y:1684]: loading module msilo.so
  0(14115) DEBUG: core [sr_module.c:557]: load_module: trying to load
 /usr/local/kamailio-3.2.2/lib64/kamailio/modules_k/msilo.so

  .

  0(14117) DEBUG: core [sr_module.c:928]: DEBUG: init_mod: msilo
  0(14117) DEBUG: core [sr_module.c:667]: find_export_record: found
 db_bind_api in module db_mysql
 [/usr/local/kamailio-3.2.2/lib64/kamailio/modules/db_mysql.so]
  0(14117) DEBUG: core [db.c:212]: using db bind api for db_mysql
  0(14117) DEBUG: core [db.c:299]: connection 0x7fc20d1ace60 not found
 in pool
  0(14117) DEBUG: db_mysql [km_my_con.c:94]: opening connection:
 mysql://:@localhost/openser
  0(14117) ERROR: db_mysql [km_my_con.c:109]: driver error: Access denied
 for user 'openser'@'localhost' (using password: YES)
  0(14117) ERROR: core [db.c:303]: could not add connection to the pool
 0(14117) ERROR: msilo [msilo.c:319]: failed to connect to the database
  0(14117) ERROR: core [sr_module.c:932]: init_mod(): Error while
 initializing module msilo
 (/usr/local/kamailio-3.2.2/lib64/kamailio/modules_k/msilo.so)
 ERROR: error while initializing modules

  Any help?

  Thanks



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla -- 
 http://www.asipto.comhttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda




___
SIP Express Router (SER) and Kamailio

Re: [SR-Users] msilo is failing to in db connection...

2012-03-06 Thread Krishna Kurapati
Thanks for the advice. Krish

On Tue, Mar 6, 2012 at 10:35 AM, Henning Westerholt h...@kamailio.org wrote:

 On Tuesday 06 March 2012, Krishna Kurapati wrote:
  It finally worked. I reconstructed the config file step by step with the
  same modparam() and it worked. Still not sure what really was wrong
  before.
 
  The other day, I tried to create routes for sending asynchronous messages
  to web service and the entire system  stopped working. The routes became
   empty. The config parser never complained. I rebuilt the config file and
  checked to see if the file is ok by running Kamailio step by step. I
 could
  not trust kamailio config check since it is the one that threw me off
  track.
 
  Are there any best practices out there in constructing long config file?
  Is it possible to create smaller modular config files and link them to
  create the system? Or a better tool to identify errors in the config
 file?

 Hi Krishna,

 just some small suggestions, I'd suggest that you modularize your cfg in
 smaller parts by using sub-routes which you call then from the main routing
 logic. You can also use the include directive to move certain parts of
 the
 configuration to separate files.

 Viele Grüße/ best regards,

 Henning Westerholt

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Improving Kamailo configuration parser ...

2012-03-06 Thread Krishna Kurapati
I used

if ($var(x) != null) { ... }

in one of the routes, and tried to run Kamailio server.
The server exited with an error. I did not know why.

Once I changed it to if ($var(x) != $null) {} the error went away.
I missed $ infront null. I think it is hard to trace such problems once a
large chunk
of logic is written since many of us come from C++ and scripting background
where $null
is not a common practice.

Also if I tried to use if (!$var(x)) { ... } Kamailio tries to convert the
value of $var(x) to integer.
prints WARNINGS in the log when the $var(x) consists of a string.

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] msilo is failing to in db connection...

2012-03-03 Thread Krishna Kurapati
Hi,

Thanks for the response. I looked at the DBURL and it looked just fine. I
wanted to test and see if the module is reading the config
param or not, I deliberately changed it to

modparam(msilo, db_url, mysql://root:x@localhost/openser);

When I ran it, the logs shows the user as 'openser' not the 'root' that I
gave in config param. May be somewhere in the code,
db_url is being overwritten by DEFAULT_DB_URL.

0(28806) DEBUG: db_mysql [km_my_con.c:94]: opening connection:
mysql://:@localhost/openser
 0(28806) ERROR: db_mysql [km_my_con.c:109]: driver error: Access denied
for user 'openser'@'localhost' (using password: YES)
 0(28806) ERROR: core [db.c:312]: could not add connection to the pool
0(28806) ERROR: msilo [msilo.c:365]: failed to connect to the database

Thanks
Krish Kura

On Sat, Mar 3, 2012 at 5:14 AM, Daniel-Constantin Mierla
mico...@gmail.comwrote:

  Hello,

 the error says the username, password or IP address are invalid to connect
 to mysql -- access denied. There does not seem like being other connections
 using same db_url, check for typos in db_url parameter.

 Cheers,
 Daniel



 On 3/3/12 12:39 AM, Krishna Kurapati wrote:

 Hi all,

  I am trying to use msilo module from modules_k. Unfortunately it if
 failing during DB initialization.
 Other modules are initializing fine. I am using Kamailio 3.2.2.

  Not sure why the connection is not found. I tried to increase the MAX
 mysql connections to 250. I see the
 same error after I increase the connections.

  The config file is pretty standard:

  loadmodule msilo.so
  modparam(msilo, add_date, 0);
 modparam(msilo, db_url, DBURL);  # The DBURL works for other modules...

  Here is the Log output:

  0(14115) DEBUG: core [cfg.y:1684]: loading module msilo.so
  0(14115) DEBUG: core [sr_module.c:557]: load_module: trying to load
 /usr/local/kamailio-3.2.2/lib64/kamailio/modules_k/msilo.so

  .

  0(14117) DEBUG: core [sr_module.c:928]: DEBUG: init_mod: msilo
  0(14117) DEBUG: core [sr_module.c:667]: find_export_record: found
 db_bind_api in module db_mysql
 [/usr/local/kamailio-3.2.2/lib64/kamailio/modules/db_mysql.so]
  0(14117) DEBUG: core [db.c:212]: using db bind api for db_mysql
  0(14117) DEBUG: core [db.c:299]: connection 0x7fc20d1ace60 not found in
 pool
  0(14117) DEBUG: db_mysql [km_my_con.c:94]: opening connection:
 mysql://:@localhost/openser
  0(14117) ERROR: db_mysql [km_my_con.c:109]: driver error: Access denied
 for user 'openser'@'localhost' (using password: YES)
  0(14117) ERROR: core [db.c:303]: could not add connection to the pool
 0(14117) ERROR: msilo [msilo.c:319]: failed to connect to the database
  0(14117) ERROR: core [sr_module.c:932]: init_mod(): Error while
 initializing module msilo
 (/usr/local/kamailio-3.2.2/lib64/kamailio/modules_k/msilo.so)
 ERROR: error while initializing modules

  Any help?

  Thanks



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla -- 
 http://www.asipto.comhttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] msilo is failing to in db connection...

2012-03-03 Thread Krishna Kurapati
Further investigation into the issue revealed that the db_conn in the
module_init is failing... When I commented out the code,
the module is initialized ok. Not sure if this is will fine.

#if 0
db_con = msilo_dbf.init(ms_db_url);
if (!db_con)
{
LM_ERR(failed to connect to the database\n);
return -1;
}

if(db_check_table_version(msilo_dbf, db_con, ms_db_table,
S_TABLE_VERSION)  0) {
LM_ERR(error during table version check.\n);
return -1;
}
if(db_con)
msilo_dbf.close(db_con);
db_con = NULL;
#endif

Is the module not suppose to connect to database in the module init?

Thanks


On Sat, Mar 3, 2012 at 10:13 AM, Krishna Kurapati kkura...@gmail.comwrote:

 Hi,

 Thanks for the response. I looked at the DBURL and it looked just fine. I
 wanted to test and see if the module is reading the config
 param or not, I deliberately changed it to

 modparam(msilo, db_url, mysql://root:x@localhost/openser);

 When I ran it, the logs shows the user as 'openser' not the 'root' that I
 gave in config param. May be somewhere in the code,
 db_url is being overwritten by DEFAULT_DB_URL.

 0(28806) DEBUG: db_mysql [km_my_con.c:94]: opening connection:
 mysql://:@localhost/openser
  0(28806) ERROR: db_mysql [km_my_con.c:109]: driver error: Access denied
 for user 'openser'@'localhost' (using password: YES)
  0(28806) ERROR: core [db.c:312]: could not add connection to the pool
 0(28806) ERROR: msilo [msilo.c:365]: failed to connect to the database

 Thanks
 Krish Kura

 On Sat, Mar 3, 2012 at 5:14 AM, Daniel-Constantin Mierla 
 mico...@gmail.com wrote:

  Hello,

 the error says the username, password or IP address are invalid to
 connect to mysql -- access denied. There does not seem like being other
 connections using same db_url, check for typos in db_url parameter.

 Cheers,
 Daniel



 On 3/3/12 12:39 AM, Krishna Kurapati wrote:

 Hi all,

  I am trying to use msilo module from modules_k. Unfortunately it if
 failing during DB initialization.
 Other modules are initializing fine. I am using Kamailio 3.2.2.

  Not sure why the connection is not found. I tried to increase the MAX
 mysql connections to 250. I see the
 same error after I increase the connections.

  The config file is pretty standard:

  loadmodule msilo.so
  modparam(msilo, add_date, 0);
 modparam(msilo, db_url, DBURL);  # The DBURL works for other
 modules...

  Here is the Log output:

  0(14115) DEBUG: core [cfg.y:1684]: loading module msilo.so
  0(14115) DEBUG: core [sr_module.c:557]: load_module: trying to load
 /usr/local/kamailio-3.2.2/lib64/kamailio/modules_k/msilo.so

  .

  0(14117) DEBUG: core [sr_module.c:928]: DEBUG: init_mod: msilo
  0(14117) DEBUG: core [sr_module.c:667]: find_export_record: found
 db_bind_api in module db_mysql
 [/usr/local/kamailio-3.2.2/lib64/kamailio/modules/db_mysql.so]
  0(14117) DEBUG: core [db.c:212]: using db bind api for db_mysql
  0(14117) DEBUG: core [db.c:299]: connection 0x7fc20d1ace60 not found
 in pool
  0(14117) DEBUG: db_mysql [km_my_con.c:94]: opening connection:
 mysql://:@localhost/openser
  0(14117) ERROR: db_mysql [km_my_con.c:109]: driver error: Access denied
 for user 'openser'@'localhost' (using password: YES)
  0(14117) ERROR: core [db.c:303]: could not add connection to the pool
 0(14117) ERROR: msilo [msilo.c:319]: failed to connect to the database
  0(14117) ERROR: core [sr_module.c:932]: init_mod(): Error while
 initializing module msilo
 (/usr/local/kamailio-3.2.2/lib64/kamailio/modules_k/msilo.so)
 ERROR: error while initializing modules

  Any help?

  Thanks



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla -- 
 http://www.asipto.comhttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio with Private IP - ACK for 200 OK problem

2012-01-26 Thread Krishna Kurapati
Hi,

I am having trouble with setting Record Route when Kamailio is behind a
Load balancer.

The Load balancer acts as a static NAT where the public IP of the load
balancer is mapped to
private IP of the Kamailio.

This is creating issues with ACK for 200 OK since Kamailio is stuffing the
200 OK with private-ip in the Record-Route.
The UAC looks like trying to send ACK back to this private IP which is not
reachable.
Is there a configuration option to let kamailio use Public IP when setting
record-route in 200 OK?

Thanks for any help...

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] using xhttp_rpc to send MESSAGE to SIP user from web server

2011-12-19 Thread Krishna Kurapati
Daniel,

Thanks for the clarification. Since mi_xmlrpc is equivalent to mi_fifo, I
could use this module
to send MESSAGE and INVITE from a remote server.

Krish Kura

On Mon, Dec 19, 2011 at 6:27 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

 Hello,

 On 12/17/11 6:08 PM, Ovidiu Sas wrote:

 It is rather difficult to properly craft SIP messages in a single line
 (to properly pass all parameters).
 Therefore, the xhttp_rpc module does not support this kind of
 functionality.
 Asynchronous commands are not implemented by the xhttp_rpc module:
 http://kamailio.org/docs/**modules/devel/modules/xhttp_**
 rpc.html#id2521422http://kamailio.org/docs/modules/devel/modules/xhttp_rpc.html#id2521422

 It is better to use the xmlrpc module for this kind of functionality.
 http://kamailio.org/docs/**modules/stable/modules/xmlrpc.**htmlhttp://kamailio.org/docs/modules/stable/modules/xmlrpc.html

 just to add a bit and make clear that xmlrpc module is different that
 mi_xmlrpc. Practically xmlrpc uses internally the same mechanism as xhttp,
 so no dependencies on http libs. You need libxml2, but since you deal with
 presence, you should have it.

 Cheers,
 Daniel

 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 http://linkedin.com/in/miconda -- http://twitter.com/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] using xhttp_rpc to send MESSAGE to SIP user from web server

2011-12-17 Thread Krishna Kurapati
Dear list members,

I have seen examples of using mi_fifo and mi_xmlrpc modules to send a
MESSAGE or INVITE
from a webserver.

Since I am using xhttp to control presence policies from webserver, I would
like to use xhttp_rpc
module to send MESSAGE and INVITE from webserver.

Are there any examples of using xhttp_rpc to achieve the function?

Thanks

Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] cleaning up contacts...

2011-10-16 Thread Krishna Kurapati
Hi,

I am seeing several Contacts for same AOR in userlocation when I do kamctl
ul show. I suspect,
it's a result of UA crashing after registering and then registering with
different contact after restart.
Since the UA crashed, it could not send Register with expire=0 to remove the
previous contact.

Since the userlocation API is not exported to configuration scripting, I am
wondering how to clean any spurious
contacts.

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Removing Contact from location table when TCP connection from UA is dropped...

2011-10-05 Thread Krishna Kurapati
Hi,

When UA connects with the Proxy over TCP, the contact is mostly bound to the
firewall's binding IP and port
for that connection. When the connection is dropped, the contact in Kamailio
is no longer valid even though there is time left to expire the contact.

Is there some way to link TCP connection and the contact in such a way that
when TCP connection is dropped, contact from the location can be removed?

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Cflag is not getting updated.

2011-10-02 Thread Krishna Kurapati
I looked at the source code. Updating cflags seems straight forward. I even
did upgrade of
the kamailio to latest. The behavior is the same with the upgraded -the
cflags in userlocation are not getting updated. Also, the received column is
not being set either.

Domain:: location table=512 records=1 max_slot=1
AOR:: p_krishna_test_com
Contact:: sip:p_krishna_test_com@75.62.17.45:55763;transport=tcp;ob Q=
Expires:: 23
Callid:: 2f34414ed33149cb9ec750d98f311525
Cseq:: 40154
User-agent:: QliqDesktop 1.0.0 (pjproject 1.10.0/win32)
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: tcp:10.1.0.6:5060
Methods:: 8143


My kamailio version is nightly build from yesterday

$kamailio -V
version: kamailio 3.2.0-pre3 (x86_64/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 04:45:31 Oct  2 2011 with gcc 4.4.3


On Sat, Oct 1, 2011 at 6:21 PM, Krishna Kurapati kkura...@gmail.com wrote:

 Hi,

 I am  hitting bit of a wall here.

 - I am setting bflags for NAT, and SIPPING before save(location)
 however,
 when I do kamctl ul show, the Cflag is 0.

 I also checked see if the bflags are set or not in the register routine -
 they are being set.

 What am I missing?

 snippets of the config files.

 #!define FLB_NATB 6
 #!define FLB_NATSIPPING 7
 modparam(nathelper, natping_interval, 30)
 modparam(nathelper, ping_nated_only, 1)
 modparam(nathelper, sipping_bflag, FLB_NATSIPPING)
 modparam(nathelper, sipping_method, INFO)
 modparam(nathelper, sipping_from, sip:pinger@50.62.1.7)

 # params needed for NAT traversal in other modules
 modparam(nathelper|registrar|usrloc, received_avp, $avp(RECEIVED))
 modparam(usrloc, nat_bflag, FLB_NATB)

 # Caller NAT detection route
 route[NAT] {
 #!ifdef WITH_NAT
 force_rport();
 if (nat_uac_test(19)) {
 if (method==REGISTER) {
 fix_nated_register();
 } else {
 fix_nated_contact();
 }
 setflag(FLT_NATS);
 setbflag(FLB_NATB);
 }
 #!endif
 return;
 }

 # Handle SIP registrations
 route[REGISTRAR] {
 if (is_method(REGISTER))
 {
 xlog(L_ALERT, REGISTER: From $fU, $fd  To $tU, $td);
 if (isflagset(FLT_NATS) || isbflagset(FLB_NATB))
 {
 setbflag(FLB_NATB);
 # uncomment next line to do SIP NAT pinging
 setbflag(FLB_NATSIPPING);
 }
 # 7/28/11 - make sure only one contact location is active
 # at any given time
 # unregister(location, $rU);
 if (isbflagset(FLB_NATB))
 {
 xlog(L_ALERT, REGISTRAR: For $fU, $fd  FLB_NATB
 set);
 }

 if (isbflagset(FLB_NATSIPPING))
 {
 xlog(L_ALERT, REGISTRAR: For $fU, $fd
  FLB_NATSIPPING set);
 }

 if (!save(location))
 {
 xlog(L_ALERT, REGISTRAR: From $fU, $fd  Location
 could not be saved);
 sl_reply_error();
 }

 exit;
 }
 }


 The debug log snippets
 ==
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
 REGISTER: From p_krishna_test_com, 50.62.1.7  To p_krishna_test_com,
 50.62.1.7
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
 REGISTRAR: For p_krishna_test_com, 50.62.1.7  FLB_NATB set
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
 REGISTRAR: For p_krishna_test_com, 50.62.1.7  FLB_NATSIPPING set
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: DEBUG: sl [sl.c:278]:
 reply in stateless mode (sl)

 Output of kamctl command
 
 $ sudo kamctl ul show
 Domain:: location table=512 records=1 max_slot=1
 AOR:: p_krishna_test_com
 Contact:: sip:p_krishna_test_com@75.62.17.45:50073;transport=tcp;ob Q=
  Expires:: 287
 Callid:: ad2d3a7bf39a4345861db1661576a7f3
 Cseq:: 54856
  User-agent:: QliqDesktop 1.0.0 (pjproject 1.10.0/win32)
 State:: CS_NEW
  Flags:: 0
 Cflag:: 0
  = Cflag is not being set.
  Socket:: tcp:10.1.0.6:5060
 Methods:: 8143

 Thanks
 Krish Kura

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Cflag is not getting updated.

2011-10-02 Thread Krishna Kurapati
Finally, I figured what is going on. The client is the culprit. I am using
pjsip library
which  by default  is configured to rewrite the Contact Header when it
detects a change
in IP address in response. It is basically Unregistering the Private address
contact and Registering the public IP contact. This is erasing the Cflags
recorded before.

Krish Kura

On Sat, Oct 1, 2011 at 6:21 PM, Krishna Kurapati kkura...@gmail.com wrote:

 Hi,

 I am  hitting bit of a wall here.

 - I am setting bflags for NAT, and SIPPING before save(location)
 however,
 when I do kamctl ul show, the Cflag is 0.

 I also checked see if the bflags are set or not in the register routine -
 they are being set.

 What am I missing?

 snippets of the config files.

 #!define FLB_NATB 6
 #!define FLB_NATSIPPING 7
 modparam(nathelper, natping_interval, 30)
 modparam(nathelper, ping_nated_only, 1)
 modparam(nathelper, sipping_bflag, FLB_NATSIPPING)
 modparam(nathelper, sipping_method, INFO)
 modparam(nathelper, sipping_from, sip:pinger@50.62.1.7)

 # params needed for NAT traversal in other modules
 modparam(nathelper|registrar|usrloc, received_avp, $avp(RECEIVED))
 modparam(usrloc, nat_bflag, FLB_NATB)

 # Caller NAT detection route
 route[NAT] {
 #!ifdef WITH_NAT
 force_rport();
 if (nat_uac_test(19)) {
 if (method==REGISTER) {
 fix_nated_register();
 } else {
 fix_nated_contact();
 }
 setflag(FLT_NATS);
 setbflag(FLB_NATB);
 }
 #!endif
 return;
 }

 # Handle SIP registrations
 route[REGISTRAR] {
 if (is_method(REGISTER))
 {
 xlog(L_ALERT, REGISTER: From $fU, $fd  To $tU, $td);
 if (isflagset(FLT_NATS) || isbflagset(FLB_NATB))
 {
 setbflag(FLB_NATB);
 # uncomment next line to do SIP NAT pinging
 setbflag(FLB_NATSIPPING);
 }
 # 7/28/11 - make sure only one contact location is active
 # at any given time
 # unregister(location, $rU);
 if (isbflagset(FLB_NATB))
 {
 xlog(L_ALERT, REGISTRAR: For $fU, $fd  FLB_NATB
 set);
 }

 if (isbflagset(FLB_NATSIPPING))
 {
 xlog(L_ALERT, REGISTRAR: For $fU, $fd
  FLB_NATSIPPING set);
 }

 if (!save(location))
 {
 xlog(L_ALERT, REGISTRAR: From $fU, $fd  Location
 could not be saved);
 sl_reply_error();
 }

 exit;
 }
 }


 The debug log snippets
 ==
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
 REGISTER: From p_krishna_test_com, 50.62.1.7  To p_krishna_test_com,
 50.62.1.7
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
 REGISTRAR: For p_krishna_test_com, 50.62.1.7  FLB_NATB set
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
 REGISTRAR: For p_krishna_test_com, 50.62.1.7  FLB_NATSIPPING set
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: DEBUG: sl [sl.c:278]:
 reply in stateless mode (sl)

 Output of kamctl command
 
 $ sudo kamctl ul show
 Domain:: location table=512 records=1 max_slot=1
 AOR:: p_krishna_test_com
 Contact:: sip:p_krishna_test_com@75.62.17.45:50073;transport=tcp;ob Q=
  Expires:: 287
 Callid:: ad2d3a7bf39a4345861db1661576a7f3
 Cseq:: 54856
  User-agent:: QliqDesktop 1.0.0 (pjproject 1.10.0/win32)
 State:: CS_NEW
  Flags:: 0
 Cflag:: 0
  = Cflag is not being set.
  Socket:: tcp:10.1.0.6:5060
 Methods:: 8143

 Thanks
 Krish Kura

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Cflag is not getting updated.

2011-10-02 Thread Krishna Kurapati
Looks like sipping does not work with TCP transport. I looked at the code it
expects the
client waits on UDP port.

code snippet from nathelper.c

  if (curi.proto != PROTO_UDP  curi.proto != PROTO_NONE)
continue;

I would like it to use TCP transport and send the packet to the client on
the same socket
that the client has connected to server with.

Any suggestions on how to do this?

Thanks
Krish Kura

On Sat, Oct 1, 2011 at 6:21 PM, Krishna Kurapati kkura...@gmail.com wrote:

 Hi,

 I am  hitting bit of a wall here.

 - I am setting bflags for NAT, and SIPPING before save(location)
 however,
 when I do kamctl ul show, the Cflag is 0.

 I also checked see if the bflags are set or not in the register routine -
 they are being set.

 What am I missing?

 snippets of the config files.

 #!define FLB_NATB 6
 #!define FLB_NATSIPPING 7
 modparam(nathelper, natping_interval, 30)
 modparam(nathelper, ping_nated_only, 1)
 modparam(nathelper, sipping_bflag, FLB_NATSIPPING)
 modparam(nathelper, sipping_method, INFO)
 modparam(nathelper, sipping_from, sip:pinger@50.62.1.7)

 # params needed for NAT traversal in other modules
 modparam(nathelper|registrar|usrloc, received_avp, $avp(RECEIVED))
 modparam(usrloc, nat_bflag, FLB_NATB)

 # Caller NAT detection route
 route[NAT] {
 #!ifdef WITH_NAT
 force_rport();
 if (nat_uac_test(19)) {
 if (method==REGISTER) {
 fix_nated_register();
 } else {
 fix_nated_contact();
 }
 setflag(FLT_NATS);
 setbflag(FLB_NATB);
 }
 #!endif
 return;
 }

 # Handle SIP registrations
 route[REGISTRAR] {
 if (is_method(REGISTER))
 {
 xlog(L_ALERT, REGISTER: From $fU, $fd  To $tU, $td);
 if (isflagset(FLT_NATS) || isbflagset(FLB_NATB))
 {
 setbflag(FLB_NATB);
 # uncomment next line to do SIP NAT pinging
 setbflag(FLB_NATSIPPING);
 }
 # 7/28/11 - make sure only one contact location is active
 # at any given time
 # unregister(location, $rU);
 if (isbflagset(FLB_NATB))
 {
 xlog(L_ALERT, REGISTRAR: For $fU, $fd  FLB_NATB
 set);
 }

 if (isbflagset(FLB_NATSIPPING))
 {
 xlog(L_ALERT, REGISTRAR: For $fU, $fd
  FLB_NATSIPPING set);
 }

 if (!save(location))
 {
 xlog(L_ALERT, REGISTRAR: From $fU, $fd  Location
 could not be saved);
 sl_reply_error();
 }

 exit;
 }
 }


 The debug log snippets
 ==
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
 REGISTER: From p_krishna_test_com, 50.62.1.7  To p_krishna_test_com,
 50.62.1.7
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
 REGISTRAR: For p_krishna_test_com, 50.62.1.7  FLB_NATB set
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
 REGISTRAR: For p_krishna_test_com, 50.62.1.7  FLB_NATSIPPING set
 Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: DEBUG: sl [sl.c:278]:
 reply in stateless mode (sl)

 Output of kamctl command
 
 $ sudo kamctl ul show
 Domain:: location table=512 records=1 max_slot=1
 AOR:: p_krishna_test_com
 Contact:: sip:p_krishna_test_com@75.62.17.45:50073;transport=tcp;ob Q=
  Expires:: 287
 Callid:: ad2d3a7bf39a4345861db1661576a7f3
 Cseq:: 54856
  User-agent:: QliqDesktop 1.0.0 (pjproject 1.10.0/win32)
 State:: CS_NEW
  Flags:: 0
 Cflag:: 0
  = Cflag is not being set.
  Socket:: tcp:10.1.0.6:5060
 Methods:: 8143

 Thanks
 Krish Kura

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Cflag is not getting updated.

2011-10-01 Thread Krishna Kurapati
Hi,

I am  hitting bit of a wall here.

- I am setting bflags for NAT, and SIPPING before save(location) however,
when I do kamctl ul show, the Cflag is 0.

I also checked see if the bflags are set or not in the register routine -
they are being set.

What am I missing?

snippets of the config files.

#!define FLB_NATB 6
#!define FLB_NATSIPPING 7
modparam(nathelper, natping_interval, 30)
modparam(nathelper, ping_nated_only, 1)
modparam(nathelper, sipping_bflag, FLB_NATSIPPING)
modparam(nathelper, sipping_method, INFO)
modparam(nathelper, sipping_from, sip:pinger@50.62.1.7)

# params needed for NAT traversal in other modules
modparam(nathelper|registrar|usrloc, received_avp, $avp(RECEIVED))
modparam(usrloc, nat_bflag, FLB_NATB)

# Caller NAT detection route
route[NAT] {
#!ifdef WITH_NAT
force_rport();
if (nat_uac_test(19)) {
if (method==REGISTER) {
fix_nated_register();
} else {
fix_nated_contact();
}
setflag(FLT_NATS);
setbflag(FLB_NATB);
}
#!endif
return;
}

# Handle SIP registrations
route[REGISTRAR] {
if (is_method(REGISTER))
{
xlog(L_ALERT, REGISTER: From $fU, $fd  To $tU, $td);
if (isflagset(FLT_NATS) || isbflagset(FLB_NATB))
{
setbflag(FLB_NATB);
# uncomment next line to do SIP NAT pinging
setbflag(FLB_NATSIPPING);
}
# 7/28/11 - make sure only one contact location is active
# at any given time
# unregister(location, $rU);
if (isbflagset(FLB_NATB))
{
xlog(L_ALERT, REGISTRAR: For $fU, $fd  FLB_NATB
set);
}

if (isbflagset(FLB_NATSIPPING))
{
xlog(L_ALERT, REGISTRAR: For $fU, $fd
 FLB_NATSIPPING set);
}

if (!save(location))
{
xlog(L_ALERT, REGISTRAR: From $fU, $fd  Location
could not be saved);
sl_reply_error();
}

exit;
}
}


The debug log snippets
==
Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
REGISTER: From p_krishna_test_com, 50.62.1.7  To p_krishna_test_com,
50.62.1.7
Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
REGISTRAR: For p_krishna_test_com, 50.62.1.7  FLB_NATB set
Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: script:
REGISTRAR: For p_krishna_test_com, 50.62.1.7  FLB_NATSIPPING set
Oct  1 15:58:30 siptest /usr/sbin/kamailio[19515]: DEBUG: sl [sl.c:278]:
reply in stateless mode (sl)

Output of kamctl command

$ sudo kamctl ul show
Domain:: location table=512 records=1 max_slot=1
AOR:: p_krishna_test_com
Contact:: sip:p_krishna_test_com@75.62.17.45:50073;transport=tcp;ob Q=
Expires:: 287
Callid:: ad2d3a7bf39a4345861db1661576a7f3
Cseq:: 54856
User-agent:: QliqDesktop 1.0.0 (pjproject 1.10.0/win32)
State:: CS_NEW
Flags:: 0
Cflag:: 0
 = Cflag is not being set.
Socket:: tcp:10.1.0.6:5060
Methods:: 8143

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Cleaning up presence info when user is deleted

2011-09-30 Thread Krishna Kurapati
Thanks for the help. I was wondering if I needed remove from the cache also.
I am now
removing from subscriber and xcap table just to make sure that the database
does not
contain stale data.

Krish Kura

On Fri, Sep 30, 2011 at 3:01 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  Hello,

 just to add that besides having the records in xcap table, if the user is
 removed, it should have no access to it because it will be authenticated for
 that. But since there is no record in subscriber table anymore, the
 authentication will fail always. So besides taking harddrive space, it is no
 impact in SIP side. IIRC, siremis has a web interface for xcap, but also the
 delete operation has to be done manually.

 Cheers,
 Daniel

 On 9/28/11 4:10 PM, Peter Dunkley wrote:

 Hello,

 You don't need to worry about the contents of the presentity, watcher, and
 active watcher tables.  Entries in these tables will be deleted if the user
 un-subscribes or logs out properly, and failing that automatically cleaned
 up when the records themselves expire.

 When you remove a user you probably should remove any documents belonging
 to them in xcap.  At the moment this is a manual process and not tied into
 the kamctl command.

 Regards,

 Peter


 On Tue, 2011-09-27 at 13:49 -0500, Krishna Kurapati wrote:

 Hi,



  When a user is removed using kamctl rm, is there way way to clean up
 presence information

  in the database (xcap, presentity, watcher and active watcher tables) and
 in the cache? Is there a

  event that gets fired when the user  is removed from subscriber table
 which I could handle in config

  file and and cleanup?





  Thanks

  Krish Kura

  ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


   --
 Peter Dunkley
 Technical Director
 Crocodile RCS Ltd



 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: 
 http://asipto.com/u/kathttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Making iPhone SIP client work with Kamailio

2011-09-30 Thread Krishna Kurapati
Thanks for the suggestion. I added following lines to the config

#!define FLB_NATB 6
#!define FLB_NATSIPPING 7
# - nathelper params -
modparam(nathelper, natping_interval, 30)
modparam(nathelper, ping_nated_only, 1)
modparam(nathelper, sipping_bflag, FLB_NATSIPPING)
modparam(nathelper, sipping_method, INFO)
modparam(nathelper, sipping_from, sip:pinger@10.1.0.6)

# params needed for NAT traversal in other modules
modparam(nathelper|registrar, received_avp, $avp(RECEIVED))
modparam(usrloc, nat_bflag, FLB_NATB)

However, I do not see INFO messages from server to client in ngrep
Am I missing something else to configure here?

Thanks
Krish Kura

On Fri, Sep 30, 2011 at 2:52 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  Hello,


 On 9/30/11 12:51 AM, Krishna Kurapati wrote:

  Hi,

  The iPhone client, when it goes into background, can only respond to
 incoming messages.
 That makes the Registration expire when there is no communication from the
 server before
 the expire time. I could make the Registration not expire at all. Not sure
 it's the only option.

  Is there a way to send a Ping message from server periodically to the
 iPhone SIP client. This
 will wakeup the SIP client and resend REGISTER message.

   you can set the nat_bflag (see usrloc module) to mark the registration
 as being natted. Then use nathelper module mark it to send OPTIONS ping
 (sipping_bflag parameter).

 http://kamailio.org/docs/modules/stable/modules_k/usrloc.html
 http://kamailio.org/docs/modules/stable/modules_k/nathelper.html

 Cheers,
 Daniel

 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: 
 http://asipto.com/u/kathttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Making iPhone SIP client work with Kamailio

2011-09-29 Thread Krishna Kurapati

 Hi,

 The iPhone client, when it goes into background, can only respond to
 incoming messages.
 That makes the Registration expire when there is no communication from the
 server before
 the expire time. I could make the Registration not expire at all. Not sure
 it's the only option.

 Is there a way to send a Ping message from server periodically to the
 iPhone SIP client. This
 will wakeup the SIP client and resend REGISTER message.

 Thanks
 Krish Kura

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Cleaning up presence info when user is deleted

2011-09-27 Thread Krishna Kurapati
Hi,

When a user is removed using kamctl rm, is there way way to clean up
presence information
in the database (xcap, presentity, watcher and active watcher tables) and in
the cache? Is there a
event that gets fired when the user  is removed from subscriber table which
I could handle in config
file and and cleanup?


Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] I am getting this error in the log When REGISTER message is received from jitsi

2011-09-23 Thread Krishna Kurapati
Daniel,

I am not using said AVP parameter

I have

# - registrar params -
modparam(registrar, method_filtering, 1)

only.

I am suspecting if the name has _ like krishn_kura is causing this
problem.

Krish
On Fri, Sep 23, 2011 at 3:56 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  Hello,


 On 9/23/11 12:15 AM, Krishna Kurapati wrote:

 Daniel,

  Just got back...

  Here is the Log at Level 4

  Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: ALERT: script:
 REGISTER: From krishna_p_test_com, 50.62.1.7  To krishna_p_test_com,
 50.62.1.7
 Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: core
 [parser/parse_uri.c:1218]: parse_uri: bad uri,  state 0 parsed: nul (4) /
 null (6)

 the URI is null value, are you using aor_avp parameter for registrar
 module?

 http://kamailio.org/docs/modules/stable/modules_k/registrar.html#id2965190

 Cheers,
 Daniel


  Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: ERROR: registrar
 [common.c:75]: failed to parse Address of Record
 Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: ERROR: registrar
 [save.c:822]: failed to extract Address Of Record
 Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: usrloc
 [ucontact.c:805]: exists callback for type= UL_CONTACT_UPDATE
 Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: registrar
 [reply.c:192]: created Contact HF: Contact:
 sip:krishna_p_test_com@192.168.1.68:61539;transport=tcp;registering_acc=50_62_1_7
 ;expires=223;received=sip:75.62.17.45:61650;transport=TCP,
 sip:krishna_p_test_com@192.168.1.68:61650;transport=tcp;registering_acc=50_62_1_7
 ;expires=600;received=sip:75.62.17.45:61650;transport=TCP#015#012
 Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: sl [sl.c:278]:
 reply in stateless mode (sl)
 Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: core
 [msg_translator.c:204]: check_via_address(75.62.17.45, 192.168.1.68, 0)
 Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: core
 [tcp_main.c:2284]: tcp_send: send from reader (17031 (9)), reusing fd
 Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: core
 [tcp_main.c:2520]: tcp_send: sending...

  Krish

 On Thu, Sep 22, 2011 at 2:19 PM, Daniel-Constantin Mierla 
 mico...@gmail.com wrote:



 On 9/22/11 9:04 PM, Krishna Kurapati wrote:

 Thanks Daniel,

  Here it is...

  [...]


 It looked ok for my eye. Can you run kamailio with higher debug level
 (debug=4 in config file) and send the log messages related to parsing the
 URI for AoR?

 Cheers,
  Daniel




 On Thu, Sep 22, 2011 at 1:44 PM, Daniel-Constantin Mierla 
 mico...@gmail.com wrote:

  Hello,

 can you grab such REGISTER with ngrep (or wireshark) and past it here?

 Cheers,
 Daniel


 On 9/22/11 8:07 PM, Krishna Kurapati wrote:

  Sep 22 09:49:53 siptest /usr/sbin/kamailio[3160]: ERROR: registrar
 [common.c:75]: failed to parse Address of Record
 Sep 22 09:49:53 siptest /usr/sbin/kamailio[3160]: ERROR: registrar
 [save.c:822]: failed to extract Address Of Record

  Is there a problem when AoR contains _

  for example is AoR  krish_k...@sip.org is not allowed?

  Thanks
 Krish Kura



  ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: 
 http://asipto.com/u/kathttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda



 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: 
 http://asipto.com/u/kathttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda




 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: 
 http://asipto.com/u/kathttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] I am getting this error in the log When REGISTER message is received from jitsi

2011-09-22 Thread Krishna Kurapati
Sep 22 09:49:53 siptest /usr/sbin/kamailio[3160]: ERROR: registrar
[common.c:75]: failed to parse Address of Record
Sep 22 09:49:53 siptest /usr/sbin/kamailio[3160]: ERROR: registrar
[save.c:822]: failed to extract Address Of Record

Is there a problem when AoR contains _

for example is AoR  krish_k...@sip.org is not allowed?

Thanks
Krish Kura
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] XCAP over SIP

2011-09-22 Thread Krishna Kurapati
Hi,

The document http://kb.asipto.com/kamailio:presence:k31-made-simple

describes that XCAP can be sent over SIP instead of over HTTP. I tried to do
however, the server is unable to update presence rules. I was using PUBLISH
method.
I was using content-type = text...

Has anyone used SIP to send over XCAP? Appreciate if someone could share a
link or configuration changes required.

Thanks

Krish
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] I am getting this error in the log When REGISTER message is received from jitsi

2011-09-22 Thread Krishna Kurapati
Daniel,

Just got back...

Here is the Log at Level 4

Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: ALERT: script:
REGISTER: From krishna_p_test_com, 50.62.1.7  To krishna_p_test_com,
50.62.1.7
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: core
[parser/parse_uri.c:1218]: parse_uri: bad uri,  state 0 parsed: nul (4) /
null (6)
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: ERROR: registrar
[common.c:75]: failed to parse Address of Record
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: ERROR: registrar
[save.c:822]: failed to extract Address Of Record
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: usrloc
[ucontact.c:805]: exists callback for type= UL_CONTACT_UPDATE
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: registrar
[reply.c:192]: created Contact HF: Contact:
sip:krishna_p_test_com@192.168.1.68:61539
;transport=tcp;registering_acc=50_62_1_7;expires=223;received=sip:75.62.17.45:61650;transport=TCP,
sip:krishna_p_test_com@192.168.1.68:61650
;transport=tcp;registering_acc=50_62_1_7;expires=600;received=sip:75.62.17.45:61650
;transport=TCP#015#012
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: sl [sl.c:278]:
reply in stateless mode (sl)
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: core
[msg_translator.c:204]: check_via_address(75.62.17.45, 192.168.1.68, 0)
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: core
[tcp_main.c:2284]: tcp_send: send from reader (17031 (9)), reusing fd
Sep 22 15:07:09 siptest /usr/sbin/kamailio[17031]: DEBUG: core
[tcp_main.c:2520]: tcp_send: sending...

Krish

On Thu, Sep 22, 2011 at 2:19 PM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:



 On 9/22/11 9:04 PM, Krishna Kurapati wrote:

 Thanks Daniel,

  Here it is...

  [...]


 It looked ok for my eye. Can you run kamailio with higher debug level
 (debug=4 in config file) and send the log messages related to parsing the
 URI for AoR?

 Cheers,
 Daniel




 On Thu, Sep 22, 2011 at 1:44 PM, Daniel-Constantin Mierla 
 mico...@gmail.com wrote:

  Hello,

 can you grab such REGISTER with ngrep (or wireshark) and past it here?

 Cheers,
 Daniel


 On 9/22/11 8:07 PM, Krishna Kurapati wrote:

  Sep 22 09:49:53 siptest /usr/sbin/kamailio[3160]: ERROR: registrar
 [common.c:75]: failed to parse Address of Record
 Sep 22 09:49:53 siptest /usr/sbin/kamailio[3160]: ERROR: registrar
 [save.c:822]: failed to extract Address Of Record

  Is there a problem when AoR contains _

  for example is AoR  krish_k...@sip.org is not allowed?

  Thanks
 Krish Kura



  ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
 listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: 
 http://asipto.com/u/kathttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda



 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: 
 http://asipto.com/u/kathttp://linkedin.com/in/miconda -- 
 http://twitter.com/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users