Hi all:
i have the server loaded the path model , but the 200 ok didn't include
the "Supported" header filed .
REGISTER sip:example.com SIP/2.0
Via: SIP/2.0/TCP 192.0.2.2;branch=z9hG4bKnashds7
Max-Forwards: 70
From: Bob <sip:bob@example.com>;tag=7F94778B653B
To: Bob <sip:bob@example.com>
Call-ID: 16CB75F21C70
CSeq: 1 REGISTER
Supported: path, outbound
Route: <sip:ep1.example.com;lr>
Contact: <sip:bob@192.0.2.2;transport=tcp>;reg-id=1
;+sip.instance="<urn:uuid:00000000-0000-1000-8000-AABBCCDDEEFF>"
Content-Length: 0
SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.0.2.15;branch=z9hG4bKnuiqisi
Via: SIP/2.0/TCP 192.0.2.2;branch=z9hG4bKnashds7
From: Bob <sip:bob@example.com>;tag=7F94778B653B
To: Bob <sip:bob@example.com>;tag=6AF99445E44A
Call-ID: 16CB75F21C70
CSeq: 1 REGISTER
Supported: path, outbound (---------this line is not include-------------)
Require: outbound
Contact: <sip:bob@192.0.2.2;transport=tcp>;reg-id=1;expires=3600
;+sip.instance="<urn:uuid:00000000-0000-1000-8000-AABBCCDDEEFF>"
Path: <sip:VskztcQ/
how could i fix it ?
thanks
mike
Hi,
I have just built Kamailio from Git master, configured TCP and TLS, and an
HTTP event route. I was able to connect to Kamailio over TLS using Google
Chrome (and saw the "SSL Error: The site's security certificate is not
trusted!" page). After I clicked on "Proceed anyway" I saw the log
message I put in the HTTP event route come out.
I also logged in with Jitsi using TLS and that worked fine too.
I tried this with both the WebSocket module loaded and without it, and it
worked in both cases.
I also tried the above with TCP and that worked fine as well.
As far as I can tell TLS is working in Kamailio Git master.
Regards,
Peter
> On Wed, Jul 11, 2012 at 9:37 PM, Peter Dunkley
> <peter.dunkley(a)crocodile-rcs.com> wrote:
>>
>> Hi,
>>
>> WebSockets over TLS works which requires establishing a TLS connection
>> and
>> exchanging an HTTP request and response. It doesn't sound like this
>> connection is even getting passed the TLS handshake part?
>>
>> Peter
>>
>
> Hi,
> That was my first guess. I will run some tests with plain tcp socket
> and post update.
>
> cheers.
>
>>
>> On Wed, 2012-07-11 at 17:14 +0200, Klaus Darilion wrote:
>>
>> Maybe there were some changes fore websocket support which cause
>> problems. Do plain TCP connections work?
>>
>> klaus
>>
>> On 11.07.2012 16:20, Aft nix wrote:
>> > On Wed, Jul 11, 2012 at 6:56 PM, Klaus Darilion
>> > <klaus.mailinglists(a)pernau.at> wrote:
>> >> I just tested TLS with Kamailio 3.3.0 and Eyebeam and it works. Make
>> >> sure to
>> >> specify "ca_list" if intermediate certificates are used.
>> >>
>> >
>> > I was working with master branch, not 3.3 branch.
>> >
>> >>
>> >> regards
>> >> Klaus
>> >>
>> >> On 09.07.2012 13:27, Aft nix wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> I have enabled tls parameters as follows:
>> >>>
>> >>> in kamailio.cfg
>> >>>
>> >>> listen = tls:<IP>:<PORT>
>> >>>
>> >>> in tls.cfg
>> >>>
>> >>> [server:<IP>:<PORT>]
>> >>> method = TLSv1
>> >>> verify_certificate = no
>> >>> require_certificate = no
>> >>> private_key = /usr/local/etc/kamailio/kamailio-selfsigned.key
>> >>> certificate = /usr/local/etc/kamailio/
>> kamailio-selfsigned.pem
>> >>>
>> >>> Now if i try to connect to this interface using openssl s_client, it
>> >>> does connects,
>> >>> but now server certificate is sent from kamailio.
>> >>>
>> >>> kamailio log shows this :
>> >>>
>> >>> <core> [ip_addr.c:247]: tcpconn_new: new tcp connection: <CLIENT
>> >>> IP>
>> >>> <core> [tcp_main.c:10
I have 2 servers running Solaris and Kamailio 3.2.3 where on one
Kamailio is terminating when it tries to save the location for a
register request and the other is producing a core dump when processing
an Option request. I have one server handling Register request while the
other sip server forwards the register requests and handles the other
requests. I have included the backtraces from the core dumps and the
output from the log for the registrar server as well as the command that
is causing kamailio to terminate:
if (!save("location"))
sl_reply_error();
4(3364) ERROR: *** cfgtrace:
c=[/opt/kamailio-3.2/etc/kamailio/kamailio.cfg] l=714 a=17 n=if
4(3364) ERROR: *** cfgtrace:
c=[/opt/kamailio-3.2/etc/kamailio/kamailio.cfg] l=711 a=26 n=save
14(3374) : <core> [pass_fd.c:293]: ERROR: receive_fd: EOF on 15
14(3374) DEBUG: <core> [tcp_main.c:3555]: DBG: handle_ser_child: dead
child 4, pid 3364 (shutting down?)
14(3374) DEBUG: <core> [io_wait.h:617]: DBG: io_watch_del (1003743d8,
15, 0, 0x0) fd_no=18 called
0(3360) ALERT: <core> [main.c:751]: child process 3364 exited by a
signal 10
0(3360) ALERT: <core> [main.c:754]: core was not generated
0(3360) INFO: <core> [main.c:766]: INFO: terminating due to SIGCHLD
6(3366) INFO: <core> [main.c:817]: INFO: signal 15 received
1(3361) INFO: <core> [main.c:817]: INFO: signal 15 received
2(3362) INFO: <core> [main.c:817]: INFO: signal 15 received
3(3363) INFO: <core> [main.c:817]: INFO: signal 15 received
5(3365) INFO: <core> [main.c:817]: INFO: signal 15 received
7(3367) INFO: <core> [main.c:817]: INFO: signal 15 received
8(3368) INFO: <core> [main.c:817]: INFO: signal 15 received
9(3369) INFO: <core> [main.c:817]: INFO: signal 15 received
10(3370) INFO: <core> [main.c:817]: INFO: signal 15 received
11(3371) INFO: <core> [main.c:817]: INFO: signal 15 received
12(3372) INFO: <core> [main.c:817]: INFO: signal 15 received
13(3373) INFO: <core> [main.c:817]: INFO: signal 15 received
14(3374) INFO: <core> [main.c:817]: INFO: signal 15 received
0(3360) DEBUG: presence_xml [presence_xml.c:347]: start
0(3360) ERROR: ctl [ctl.c:379]: ERROR: ctl: could not delete unix
socket /tmp/kamailio_ctl: Permission denied (13)
0(3360) DEBUG: <core> [db_pool.c:102]: removing connection from the pool
0(3360) DEBUG: db_postgres [km_pg_con.c:122]: PQfinish(100842470)
0(3360) DEBUG: db_postgres [km_pg_con.c:126]: pkg_free(1004c1f30)
0(3360) DEBUG: tm [t_funcs.c:122]: DEBUG: tm_shutdown : start
0(3360) DEBUG: tm [t_funcs.c:125]: DEBUG: tm_shutdown : emptying hash
table
0(3360) DEBUG: tm [t_funcs.c:127]: DEBUG: tm_shutdown : removing
semaphores
0(3360) DEBUG: tm [t_funcs.c:129]: DEBUG: tm_shutdown : destroying
tmcb lists
0(3360) DEBUG: tm [t_funcs.c:132]: DEBUG: tm_shutdown : done
Thanks
Nathaniel
Hi,
I have enabled tls parameters as follows:
in kamailio.cfg
listen = tls:<IP>:<PORT>
in tls.cfg
[server:<IP>:<PORT>]
method = TLSv1
verify_certificate = no
require_certificate = no
private_key = /usr/local/etc/kamailio/kamailio-selfsigned.key
certificate = /usr/local/etc/kamailio/kamailio-selfsigned.pem
Now if i try to connect to this interface using openssl s_client, it
does connects,
but now server certificate is sent from kamailio.
kamailio log shows this :
<core> [ip_addr.c:247]: tcpconn_new: new tcp connection: <CLIENT IP>
<core> [tcp_main.c:1089]: tcpconn_new: on port 40727, type 3
<core> [tcp_main.c:1400]: tcpconn_add: hashes: 2614:2652:2494, 2
<core> [io_wait.h:390]: DBG: io_watch_add(0x82535e0, 23, 2,
0xb5701580), fd_no=11
<core> [io_wait.h:617]: DBG: io_watch_del (0x82535e0, 23, -1, 0x0)
fd_no=12 called
<core> [tcp_main.c:4296]: tcp: DBG: sending to child, events 1
<core> [tcp_main.c:3963]: WARNING: send2child: no free tcp receiver,
connection passed to the least busy one (3289651)
<core> [tcp_main.c:3967]: selected tcp worker 0 0(8) for activity on
[tls:<IP>:<PORT>], 0xb5701580
<core> [tcp_main.c:3576]: BUG: handle_ser_child: fd -1 for 0 (pid 2491)
I'm using kamailio from git. its updated to the latest.
Thanks in advance.
--
-aft
A
-original message-
Subject: Re: [SR-Users] GRUU support in Kamailio
From: Iñaki Baz Castillo <ibc(a)aliax.net>
Date: 11/07/2012 10:08 pm
2012/7/11 Olle E. Johansson <oej(a)edvina.net>:
> Thanks for your patience, Daniel!
And even more thanks for the code!
I will test it in depth very soon.
--
Iñaki Baz Castillo
<ibc(a)aliax.net>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hey,
Been trying to understand the GRUU support in Kamailio. I see that the registrar saves sip.instance - but I don't see any functions to generate gruu URIs or store them. A public GRUU is valid forever for a sip.instance and should propably be saved into some sort of database table. A temporary GRUU is only valid for as long as a device registers with the same Call-ID.
Please give me pointers to what I have missed!
Thanks,
/O
---
* Olle E Johansson - oej(a)edvina.net
* Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden
Hi!
For some reason I need to the enter the SQL statements manually on the
DB server (I do not want to copy the scripts to the DB server and there
is no superuser access over the network)
Is there a simple method to get all the SQL commands to create the
kamailio database?
I see there are all the files in "/usr/share/kamailio/postgres/" and
lots of other SQL statements in /usr/lib/kamailio/kamctl/kamdbctl.pgsql.
Does anyone know of a simple method to get all the raw SQL queries?
Thanks
Klaus
Hello
I installed kamailio version 3.2.0 and followed the instructions in
http://www.kamailio.org/wiki/install/3.2.x/git web site
Whene I permormed the command /etc/init.d/kamailio start I got the
following errors.
The modules are in the correct directory so actually I do not understand
the error.
I will be happy if someone can help me solve this issue:
[root@kamailio-dev-lab ~]# */etc/init.d/kamailio start
*
Not starting Kamailio: invalid configuration file!
0(8569) ERROR: <core> [sr_module.c:565]: ERROR: load_module: could not
open module </usr/local/lib/kamailio/modules/db_mysql.so>:
/usr/local/lib/kamailio/modules/db_mysql.so: undefined symbol: SSL_CTX_free
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 214, column 12-24: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <mi_fifo> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 217, column 12-23: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <kex> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 218, column 12-19: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <tmx> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 220, column 12-19: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <rr> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 222, column 12-18: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <pv> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 223, column 12-18: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <maxfwd> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 224, column 12-22: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <usrloc> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 225, column 12-22: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <registrar> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 226, column 12-25: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <textops> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 227, column 12-23: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <siputils> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 228, column 12-24: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <xlog> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 229, column 12-20: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <acc> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 234, column 12-19: failed to
load module
0(8569) ERROR: <core> [sr_module.c:553]: ERROR: load_module: could not
find module <auth_db> in </usr/local/lib/kamailio/modules>
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 238, column 12-23: failed to
load module
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <mi_fifo> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 287, column 54: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <rr> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 301, column 35: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <rr> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 303, column 35: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <registrar> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 307, column 44: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <registrar> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 313, column 42: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <acc> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 318, column 33: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <acc> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 319, column 32: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <acc> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 320, column 36: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <acc> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 324, column 38: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <acc> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 326, column 30: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <acc> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 327, column 37: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <acc> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 330, column 45: Can't set module
parameter
0(8569) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <acc> found
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 331, column 45: Can't set module
parameter
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 346, column 30-34: syntax error
0(8569) : <core> [cfg.y:3529]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 346, column 30-34: Invalid
arguments
0(8569) : <core> [cfg.y:3532]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 346, column 35:
ERROR: bad config file (30 errors)
[root@kamailio-dev-lab ~]#
Thanks in advance
Michal Yachimovitz
FYI: private emails sent from mailing lists discussions are simply
ignored, keep the mailing list in the discussion. Thanks.
On 7/11/12 9:13 AM, mike wrote:
> yes , i know that the path could be added by the path module , but
> ,the problem is the flow token,such as the path
>
> Path: <sip:VskztcQ/S8p4WPbOnHbuyh5iJvJIW3ib@ep1.example.com
> <mailto:S8p4WPbOnHbuyh5iJvJIW3ib@ep1.example.com>;lr;ob>
>
>
> the VskztcQ/S8p4WPbOnHbuyh5iJvJIW3ib is the token , so , where the
> kamilio 3.3 handle it ?
>
>
> On Wed, Jul 11, 2012 at 3:00 PM, Daniel-Constantin Mierla
> <miconda(a)gmail.com <mailto:miconda@gmail.com>> wrote:
>
> Hello,
>
>
> On 7/11/12 4:23 AM, mike wrote:
>
> dear kamilio developers :
>
> i read the kamilio 3.3.0' s new features , it say it support
> outbound , and i have place to handle reg-id and sip.instance
> . so , i wonder if the kamilio3.3.0 support RFC5626 now,so
> that the
> kamilio can be used as a edge proxy . i ask why because i
> can't find where kamilio add flow-token and path for the
> register request.
>
> sip.instance and reg-id are handled by the registrar/usrloc
> modules. Path has to be added by intermediary proxies and it is
> also handled by registrar module. If the intermediary proxies are
> kamailio, then adding path is possible via path module.
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla - http://www.asipto.com
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -
> http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 -
> http://asipto.com/u/katu
> Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 -
> http://asipto.com/u/kpw
>
>
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw
(Reposting from sr-dev because, in retrospect, it makes more sense here.)
Does anyone know of any issues running usrloc with DB backing ('location') in a multi-master DB-replicated environment? I am referring to plain usrloc, not p_usrloc.
I have such an environment set up with db_mode = 1 (immediate write-through) and have run into a problem where Kamailio occasionally stops writing to the location table for no apparent reason. I am wondering if this is because another Kamailio instance bound to the secondary replica is performing a DB sync as well, and at some point they collide in some sort of race condition. Would db_mode 2 fix? Would anything fix? Is this even the problem?
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com