Why did 'transport=tls' 'r2=on' 'lr=on' and 'nat=yes' all disappear
after just adding 'record_route_preset("myurl.com");' (I had to edit my
routing logic to fix a problem with kamailio sending record-route to WAN
clients telling them to respond on my private NAT IP address)
# I'm concerned my edits to the routing logic is incorrect and would
like a second opinion. (I added record_route_preset on line 41 and
commented out line 42):
http://pastebin.com/3azFStmE
# Here is what record-route looked like Before adding
record_route_preset (3 lines):
Record-Route: <sip:66.111.222.111:5061;transport=tls;r2=on;lr=on;nat=yes>
Record-Route: <sip:66.111.222.111;r2=on;lr=on;nat=yes>
Record-Route: <sip:myurl.com;lr=on>
# And now here is what they look like After adding record_route_preset:
(1 line)
Record-Route: <sip:myurl.com;lr>
MISC INFO:
# kamailio -v
version: kamailio 4.0.4 (i386/linux) cabe58
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,
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: cabe58
compiled on 01:07:11 Nov 2 2013 with gcc 4.4.7
I seem to be in a catch 22, sure it's something I've done wrong.
I set dbhost in kamctlrc to be the ip of my remote mysql server
I run kamdbctl create and I get
root@pcscf:/etc/kamailio# kamdbctl create
MySQL password for root:
database engine 'mysql' loaded
INFO: test server charset
INFO: creating database kamailio ...
INFO: granting privileges to database kamailio ...
ERROR 1044 (42000) at line 1: Access denied for user 'root'@'172.16.101.27'
to database 'kamailio'
ERROR: granting privileges to database kamailio failed!
root@pcscf:/etc/kamailio#
Before I run the create from mysql:
mysql> select user,host from mysql.user;
+------+---------------+
| user | host |
+------+---------------+
| root | % |
| root | 172.16.101.27 |
| root | 172.16.101.28 |
| root | 172.16.101.29 |
| root | localhost |
+------+---------------+
5 rows in set (0.00 sec)
mysql> show grants for 'root'@'%';
+---------------------------------------------------------------------------
-----------------------------------+
| Grants for root@%
|
+---------------------------------------------------------------------------
-----------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY PASSWORD
'*FE04940F3F9B339AB9361B2D01AD3D940B215B52' |
+---------------------------------------------------------------------------
-----------------------------------+
1 row in set (0.00 sec)
If I rerun it the create scripts says:
root@pcscf:/etc/kamailio# kamdbctl create
MySQL password for root:
database engine 'mysql' loaded
INFO: test server charset
INFO: creating database kamailio ...
ERROR 1007 (HY000) at line 1: Can't create database 'kamailio'; database
exists
ERROR: Creating database kamailio failed!
root@pcscf:/etc/kamailio#
any ideas?
Hi, all
This is related to the previous tls.reload not safe email chain. Now we
have a detailed gdb output that shows the stack trace of the core dump.
Please take a look. This looks like a bug. Please let me know if you have
any insights on how to fix this. Thanks,
Ding
this kind of crash has occurred a few times now with kamailio 4.0:
Program terminated with signal 11, Segmentation fault.
#0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319
319 urecord.c: No such file or directory.
(gdb) where
#0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319
#1 0xb56a9602 in mem_timer_udomain (_d=0xa59574e8, istart=0, istep=1) at
udomain.c:879
#2 0xb569ae3e in synchronize_all_udomains (istart=0, istep=1) at dlist.c:742
#3 0xb56b0fff in destroy () at ul_mod.c:489
#4 0x0811408c in destroy_modules () at sr_module.c:790
#5 0x0809c6ec in cleanup (show_status=1) at main.c:573
#6 0x0809d529 in shutdown_children (show_status=1, sig=<optimized out>)
at main.c:715
#7 0x0809e800 in handle_sigs () at main.c:806
#8 0x0809fe18 in main_loop () at main.c:1767
#9 0x080a1bbe in main (argc=17, argv=0xbff02f74) at main.c:2566
would be nice to get it fixed.
-- juha
I got Siremis installed today but when I try to login it pops up a
debug window with the error:
Fatal error: Cannot find the class with name as service. in
/var/www/admin/siremis-4.0.0/openbiz/bin/ObjectFactory.php on line 157
Any suggestions on what I need to check to fix this so I can actually
login and start using it?
Thanks.
Mark II
--
Mark D. Montgomery II
http://www.techiem2.net
Hi,
I'm wondering how can I change the timezone when INVITE, ACK, BYE and CANCEL
are inserted into acc table? Indeed, today, each entrie has the same
datetime than the server. I would prefer to have UTC time in "time" column
instead.
I know that it was the behaviour with old SER releases.
Thank for your help.
Regards,
Igor.
---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active.
http://www.avast.com
---------- Forwarded message ----------
From: santosh satapathy <santosh.satapathy(a)gmail.com>
Date: Fri, Nov 15, 2013 at 4:23 PM
Subject: Fwd: sr-users Digest, Vol 102, Issue 53
To: Daniel-Constantin Mierla <miconda(a)gmail.com>
Appreciate for the input Daniel.
I was looking here little different scenario where in weights are dynamic.
Load distribution should happen in such a way that first it round robins
among the nodes with weight 3 until they are equal with other sets of nodes
with weight 2. Once this stage is reached where in all the nodes in both
the sets are equally weighted, then LB should round robin among all the
nodes uniformly.
This means that dynamically nodes with higher weights will get more calls
until their weight difference is substantiated and after that all nodes are
treated as equal.
Is it possible to configure script for the above scenario?
Thanks ,
Santosh
---------- Forwarded message ----------
From: <sr-users-request(a)lists.sip-router.org>
Date: Thu, Nov 14, 2013 at 2:26 AM
Subject: sr-users Digest, Vol 102, Issue 53
To: sr-users(a)lists.sip-router.org
Send sr-users mailing list submissions to
sr-users(a)lists.sip-router.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
or, via email, send a message with subject or body 'help' to
sr-users-request(a)lists.sip-router.org
You can reach the person managing the list at
sr-users-owner(a)lists.sip-router.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of sr-users digest..."
Today's Topics:
1. Re: Kamailio/Radius problem (Daniel-Constantin Mierla)
2. Re: Variables in event_route[sl:local-response]
(Daniel-Constantin Mierla)
3. Re: Query regd the dispatcher algorithm support
(Daniel-Constantin Mierla)
4. WORDS_BIGENDIAN error in auth_diameter.h (Sotas Development)
----------------------------------------------------------------------
Message: 1
Date: Thu, 14 Nov 2013 10:06:20 +0100
From: Daniel-Constantin Mierla <miconda(a)gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users(a)lists.sip-router.org>
Subject: Re: [SR-Users] Kamailio/Radius problem
Message-ID: <5284928C.9080300(a)gmail.com>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
On 11/14/13 10:02 AM, Daniel-Constantin Mierla wrote:
> Hello,
>
> On 11/14/13 4:31 AM, jonathan augenstine wrote:
>> I am working on the configuration to enable RADIUS in Kamailio 4.0.
>> The basic install worked successfully and the daemon started without
>> problems. I then install radiusclient-ng and configured RADIUS in
>> the Kamailio build/configuration. All seemed OK until the Kamailio
>> restart and I encountered the following error during the restart:
>>
>> Nov 13 06:52:23 lax-vproxy2-a kernel: [ 348.808624] kamailio[5346]:
>> segfault at 0 ip 00007f375d249a5d sp 00007fff4d42eed0 error 4 in
>> libradiusclient-ng.so.2.0.0[7f375d243000+c000]
>> Nov 13 06:52:23 lax-vproxy2-a kamailio: ERROR: <core>
>> [daemonize.c:307]: daemonize(): Main process exited before writing to
>> pipe
>>
>> After some research it seemed that others encountered a similar error
>> and traced it to the dictionary. I have gone through the dictionary
>> configuration and all seems to be correct. Any guidance on what
>> might be the issue or some troubleshooting steps?
> did you get a core dump? Looking at the backtrace may show where is
> the problem in libradiusclient-ng.
Just found this one that seems to be similar:
- http://sip-router.org/tracker/index.php?do=details&task_id=310&project=1
It mentions that acctserver was not set in radius config.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Trainings - Berlin, Nov 25-28
- more details about Kamailio trainings at http://www.asipto.com -
Hello there,
Im trying implement BLF with kamailio and snom phones, with the following
modules:
presence, presence_xml, presence_mwi, pua_dialoginfo, presence_dialoginfo,
pua and dialog
calls between phones registed in kamailio, BLF works fine.
The issue is, when the call comes from freeswitch --> Kamailio --> snom
phone,
Kamailio creates a Publish but doesn't send notify's to the phones that are
monitoring the ringing phone.
the logs shows the following:
DEBUG: presence [notify.c:1249]: publ_notify(): Could not find subs_dialog
Nov 15 16:36:47 vx00-kml01 /usr/local/sbin/kamailio[13953]: DEBUG: <core>
[msg_translator.c:2026]: build_res_buf_from_sip_res():
build_res_from_sip_res: copied size: orig:666, new: 596, rest: 302
msg=#012SIP/2.0 180 Ringing#015#012Via: SIP/2.0/UDP
94.46.248.80;received=10.0.20.10;rport=5060;branch=z9hG4bKDgmN81t5NZrDg#015#012Record-Route:
<sip:94.46.XX.XX:5060;r2=on;lr=on;ftag=ZvNgee3Uy81tr;lb=yes>#015#012Record-Route:
<sip:10.0.20.7:5062;r2=on;lr=on;ftag=ZvNgee3Uy81tr;lb=yes>#015#012Record-Route:
<sip:10.0.20.13;lr=on;ftag=ZvNgee3Uy81tr;proxy=yes;did=213.ae12;nat=yes>#015#012From:
"256370XXX" <sip:25637XXX@94.46.2X.XXX>;tag=ZvNgee3Uy81tr#015#012To: <
sip:+3513045XXXX@admin.com>;tag=fvt7h9az6c#015#012Call-ID:
3ef55a52-4e14-11e3-85cd-71b7082538d9#015#012CSeq: 51930666
INVITE#015#012Contact:
<sip:203@192.168.1.180:32768;alias=10.0.20.7~5062~1;alias=213.228.167.67~32768~1;line=sg3y775p>;reg-id=1#015#012Allow:
INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK,
MESSAGE, INFO, UPDATE#015#012Allow-Events: talk, hold, refer,
call-info#015#012Content-Length: 0#015#012P-VOICIS-Src-Ip:
213.228.167.67#015#012P-VOICIS-Src-Port: 32768#015#012P-VOICIS-Src-Proto:
udp#015#012#015#012
Nov 15 16:36:47 vx00-kml01 /usr/local/sbin/kamailio[13957]: DEBUG: presence
[notify.c:1249]: publ_notify(): Could not find subs_dialog
Nov 15 16:36:47 vx00-kml01 /usr/local/sbin/kamailio[13955]: DEBUG: presence
[notify.c:1249]: publ_notify(): Could not find subs_dialog
Anyone can help on this?
--
Regards
José Seabra