Yes, I saw this part of kamailio doc, and even I added this part in my.cnf:
[kamailio]
socket = /path/to/mysql.sock
user = kamailiouser
password = kamailiopass
default-character-set = utf8
(with valid password) it didn't help me (of course I restarted the mysqld).
Both of the following syntax worked fine for me:
# mysql --user=xxx --password=xx --host=localhost --protocol=tcp <database>
# mysql --user=xxx --password=xx --protocol=socket <database>
So that, I could get into a mysql console (with kamailioro user/pasword).
I mentioned in a previous message, that Kamailio is installed from
repository and is not compiled.
But, kamailio-mysql-modules:amd64 is installed.
So looks, like there is no problem with socket connection, because kamailio
doesn't say that problem depends on mysql module, it said that problem
consists of accessing for kamailioro user.
>Hi,
>
>So, I have not been using Kamailio with MySQL before, but I do have
>some basic MySQL knowledge.
>
>MySQL can be used with both socket and TCP, have you verified that
>your setup is matching the server setup.
>
>Have you look at this section:
>https://kamailio.org/docs/modules/4.3.x/modules/db_mysql.html#idp3037648
>
>You can also test/check that socket/tcp is working by testing it like this:
># mysql --user=xxx --password=xx --host=localhost --protocol=tcp <database>
># mysql --user=xxx --password=xx --protocol=socket <database>
>
>
>On Fri, May 5, 2017 at 4:47 PM, Донат Зеничев <donat.zenichev at gmail.com>
wrote:
>> Hi.
>>
>> I have just written routing logic for my new sip-proxy server, but have a
>> problem with start of kamailio.
>>
>> ./kamailio.cfg file has no mistakes - it's made well done.
>>
>> before to start coding with routing logic, of course I installed kamailio
>> (ver 4.3.4) from repository.
>> OS - ubuntu 16.04
>>
>> and add next modules from repository:
>> kamailio-mysql-modules:amd64
>> kamailio-perl-modules:amd64
>> kamailio-radius-modules:amd64
>> kamailio-tls-modules:amd64
>> kamailio-utils-modules:amd64
>>
>> next step, I edited the ./kamctlrc file to contain proper user/password
and
>> mysql engine settings.
>> And than, ran the kamdbctl create (without special parameters).
>>
>> A bit about my kamailio.cfg :
>> fork=yes
>> children=4
>> disable_tcp=no
>> tcp_children=4
>> tcp_send_timeout=3
>> tcp_connect_timeout=5
>> tcp_connection_lifetime=3600
>> tcp_max_connections=4096
>>
>> of course mpath is defined and proper modparams (depending on my ver) for
>> modules are used.
>>
>> A bit about my kamctlrc:
>> Ro and rw user are defined (and connections to needed db from these
users is
>> checked, as like it was real kamailio that tries to update some values
in db
>> - well done).
>>
>> Also PID_FILE and FIFOPATH are defined (/var/run/kamailio dir. created)
>>
>> So that, now I'm trying to start the server as a daemon, I have the
>> following row in systemctl:
>> ERROR: db_mysql [km_my_con.c:124]: db_mysql_new_connection(): driver
error:
>> Access denied for user 'kamailioro'@'localhost' (using password: YES)
>>
>> And of course all other modules can't run because they depend on the db
>> connections.
>> So looks like very simple problem, just need to edit mysql user table to
>> have proper passwords.
>>
>> But I've refurbished ro and rw user several times, it didn't help me.
>> Also tried to drop kamailio db with db users and run kamdbctl create
again -
>> nothing changed.
>>
>> I tried to find where kamailioro user can be defined as default, but
didn't
>> find any files (apart of kamctlrc in /etc/kamailio directory).
>> /etc/default/kamailio file contains proper values and paths.
>>
>> Please advise something.
>>
>>
>>
>> --
>> --
>> BR, Donat Zenichev
>> Wnet VoIP team
>> Tel: +380(44) 5-900-808
>> http://wnet.ua
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
>
>--
>Best regards,
>
>Glenn O. Larsen
--
--
BR, Donat Zenichev
Wnet VoIP team
Tel: +380(44) 5-900-808
http://wnet.ua
Guys, I'm so sorry for wasting your time.
I've just dropped all kamailio mysql users, database and commented
kamailioro user in kamctlrc config file and than ran a kamdbctl create
command again, to refurbish all the structure.
So that, it didn't create kamailioro user, like it was in previous time.
And now it doesn't requesting the kamailioro user credentials at all.
Works fine, daemon starts without problem.
Thanks for reply!
Question is now closed for me.
>Yes, I saw this part of kamailio doc, and even I added this part in my.cnf:
>[kamailio]
>socket = /path/to/mysql.sock
>user = kamailiouser
>password = kamailiopass
>default-character-set = utf8
>
>(with valid password) it didn't help me (of course I restarted the mysqld).
>
>Both of the following syntax worked fine for me:
># mysql --user=xxx --password=xx --host=localhost --protocol=tcp <database>
># mysql --user=xxx --password=xx --protocol=socket <database>
>
>So that, I could get into a mysql console (with kamailioro user/pasword).
>
>I mentioned in a previous message, that Kamailio is installed from
repository and is not compiled.
>But, kamailio-mysql-modules:amd64 is installed.
>
>So looks, like there is no problem with socket connection, because
kamailio doesn't say that problem depends on mysql module, it said that
problem consists of accessing for kamailioro user.
>
>>Hi,
>>
>>So, I have not been using Kamailio with MySQL before, but I do have
>>some basic MySQL knowledge.
>>
>>MySQL can be used with both socket and TCP, have you verified that
>>your setup is matching the server setup.
>>
>>Have you look at this section:
>>https://kamailio.org/docs/modules/4.3.x/modules/db_mysql.html#idp3037648
>>
>>You can also test/check that socket/tcp is working by testing it like
this:
>># mysql --user=xxx --password=xx --host=localhost --protocol=tcp
<database>
>># mysql --user=xxx --password=xx --protocol=socket <database>
>>
>>
>>On Fri, May 5, 2017 at 4:47 PM, Донат Зеничев <donat.zenichev at gmail.com>
wrote:
>>> Hi.
>>>
>>> I have just written routing logic for my new sip-proxy server, but have
a
>>> problem with start of kamailio.
>>>
>>> ./kamailio.cfg file has no mistakes - it's made well done.
>>>
>>> before to start coding with routing logic, of course I installed
kamailio
>>> (ver 4.3.4) from repository.
>>> OS - ubuntu 16.04
>>>
>>> and add next modules from repository:
>>> kamailio-mysql-modules:amd64
>>> kamailio-perl-modules:amd64
>>> kamailio-radius-modules:amd64
>>> kamailio-tls-modules:amd64
>>> kamailio-utils-modules:amd64
>>>
>>> next step, I edited the ./kamctlrc file to contain proper user/password
and
>>> mysql engine settings.
>>> And than, ran the kamdbctl create (without special parameters).
>>>
>>> A bit about my kamailio.cfg :
>>> fork=yes
>>> children=4
>>> disable_tcp=no
>>> tcp_children=4
>>> tcp_send_timeout=3
>>> tcp_connect_timeout=5
>>> tcp_connection_lifetime=3600
>>> tcp_max_connections=4096
>>>
>>> of course mpath is defined and proper modparams (depending on my ver)
for
>>> modules are used.
>>>
>>> A bit about my kamctlrc:
>>> Ro and rw user are defined (and connections to needed db from these
users is
>>> checked, as like it was real kamailio that tries to update some values
in db
>>> - well done).
>>>
>>> Also PID_FILE and FIFOPATH are defined (/var/run/kamailio dir. created)
>>>
>>> So that, now I'm trying to start the server as a daemon, I have the
>>> following row in systemctl:
>>> ERROR: db_mysql [km_my_con.c:124]: db_mysql_new_connection(): driver
error:
>>> Access denied for user 'kamailioro'@'localhost' (using password: YES)
>>>
>>> And of course all other modules can't run because they depend on the db
>>> connections.
>>> So looks like very simple problem, just need to edit mysql user table to
>>> have proper passwords.
>>>
>>> But I've refurbished ro and rw user several times, it didn't help me.
>>> Also tried to drop kamailio db with db users and run kamdbctl create
again -
>>> nothing changed.
>>>
>>> I tried to find where kamailioro user can be defined as default, but
didn't
>>> find any files (apart of kamctlrc in /etc/kamailio directory).
>>> /etc/default/kamailio file contains proper values and paths.
>>>
>>> Please advise something.
>>>
>>>
>>>
>>> --
>>> --
>>> BR, Donat Zenichev
>>> Wnet VoIP team
>>> Tel: +380(44) 5-900-808
>>> http://wnet.ua
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>
>>
>>
>>--
>>Best regards,
>>
>>Glenn O. Larsen
--
--
BR, Donat Zenichev
Wnet VoIP team
Tel: +380(44) 5-900-808
http://wnet.ua
Hi,
I am calling dlg_refer after dialog is confirmed on both sides. This time the callee is a real client, so call was established end to end.
But still I get the error "No contact available" when callee dialog is being created - see below.
I am attaching the snippet of my config where I am calling dlg_refer as well..
Is there something wrong with my usage? Please advise.
Thanks,
Pranathi
4719 May 8 22:27:31 devsip00 /sbin/kamailio[1125]: INFO: <script>: Translation: Dialog confirmed 3 and agenturi: sip:agent1@devtranslation.sms-test.cyracom.com
4720 May 8 22:27:31 devsip00 /sbin/kamailio[1125]: exec: *** cfgtrace:local_route=[dialog:start] c=[routingdev.cfg] l=573 a=16 n=if
4721 May 8 22:27:31 devsip00 /sbin/kamailio[1125]: exec: *** cfgtrace:local_route=[dialog:start] c=[routingdev.cfg] l=567 a=26 n=xlog
4722 May 8 22:27:31 devsip00 /sbin/kamailio[1125]: INFO: <script>: Translation: Referring dialog from sip:71594386@10.11.200.59:49376;alias=10.11.200.59~49376~1
4723 May 8 22:27:31 devsip00 /sbin/kamailio[1125]: exec: *** cfgtrace:local_route=[dialog:start] c=[routingdev.cfg] l=568 a=26 n=dlg_refer
4724 May 8 22:27:31 devsip00 /sbin/kamailio[1125]: ERROR: dialog [dlg_req_within.c:85]: build_dlg_t(): no contact available
4725 May 8 22:27:31 devsip00 /sbin/kamailio[1125]: ERROR: dialog [dlg_transfer.c:188]: dlg_refer_callee(): failed to create dlg_t
event_route[dialog:start] {
if(is_known_dlg()) {
$var(agentUri) = $dlg_var("agenturi");
xlog("L_INFO", "Translation: Dialog confirmed $dlg(state) and agenturi: $var(agentUri)");
if ($(var(agentUri){uri.user}) != "")
{
xlog("L_INFO", "Translation: Referring dialog from $dlg(from_contact)");
dlg_refer("caller", "$var(agentUri)");
}
else
{
xlog("L_INFO", "Translation: Dialog confirmed $dlg(state) but no agent info yet\n");
}
}
}
Pranathi Venkatayogi
System Developer II
(520) 745-9447 x4466
www.cyracom.com<http://www.cyracom.com/>
Join us: [cid:image001.gif@01D1C9C9.C4E8B6D0] <https://www.facebook.com/pages/CyraCom-LLC/134704783312720> [cid:image002.gif@01D1C9C9.C4E8B6D0] <https://twitter.com/cyracom> [cid:image003.gif@01D1C9C9.C4E8B6D0] <http://www.linkedin.com/company/cyracom> [cid:image004.gif@01D1C9C9.C4E8B6D0] <http://www.cyracom.com/blog/>
[cid:image005.png@01D1C9C9.C4E8B6D0]
DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom, LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.
Hi all. I m trying to use KEMI with lua and want to make call http client
lua module (external). I want to ask: is it will block kamailio event loop
(or somethig like it in kamailio)?
For more understanding what im talking about i will provide example with
openresty (nginx + lua)
It uses nginx cosockets and if i will use not cosockets based module in
openresty it will block nginx eventloop because of using network operations
in nginx worker context.
On 9 May 2017 at 15:18, Bogdan-Andrei Iancu <bogdan(a)opensips.org> wrote:
> Thank you Giovanni, that is a useful tool - we will document it in the
> OpenSIPS TLS tutorial, so other can benefit ;)
>
>
Glad about it!
Be sure to get it from https://freeswitch.org/confluence/display/FREESWITCH/
Packet+Capture#PacketCapture-TLSwithsharka , is the latest version with a
couple fixes.
-giovanni
> Many thanks,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
> http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 05/02/2017 05:52 PM, Giovanni Maruzzelli wrote:
>
> For a cut and paste ready version, that has the correct carriage returns
> (mangled by mail), check it in FreeSWITCH documentation:
>
> https://freeswitch.org/confluence/display/FREESWITCH/
> Packet+Capture#PacketCapture-TLSwithsharka
>
> -giovanni
>
> On 2 May 2017 at 16:26, Giovanni Maruzzelli <gmaruzz(a)gmail.com> wrote:
>
>> Hello fellows,
>>
>> after some experimentation with various tools, I come out with a little
>> shell tool that maybe can be useful to you too.
>>
>> It can only work with non-forward secrecy ciphers, obviously, and only if
>> is started before the client do the initial TLS handshake (eg, just restart
>> the client). Forward secrecy cannot be decrypted after fact, so don't waste
>> effort.
>>
>> An example of ciphers that can be decrypted are the "AES256-SHA" openssl
>> cipher group. You can use ssldump to check what cipher is used by
>> serverhello.
>>
>> Enjoy, make it better, and share it :)
>>
>>
>> #!/bin/bash
>> # brought to you by Giovanni Maruzzelli
>> #
>> SERVERIP="192.168.1.150"
>> SERVERPORT="5061"
>> PRIVKEY="/etc/certs/privkey.pem"
>> STDERR2DEVNULL=" 2>/dev/null "
>> REGEX="notyet"
>>
>> if [ -z "$1" ]; then
>> REGEX="\\\.*"
>> else
>> REGEX="$1"
>> fi
>> FILTER="ssl.app_data and sip matches"
>> FILTER2="$FILTER \"$REGEX\""
>> FILTER3="'$FILTER2'"
>> ARGUMENT="-i 1 -Y $FILTER3 -E header=y -T fields -e frame.number -e
>> frame.time -e frame.time_delta_displayed -e ip.src -e ip.dst -e
>> sip.Status-Line -e sip.Request-Line -e sip.msg_hdr -l -d
>> tcp.port\=\=5061,sip -o \"ssl.keys_list: $SERVERIP,$SERVERPORT,sip,$PRIVKEY\"
>> $STDERR2DEVNULL | sed -u 's/\t/\n/g' | sed -u '/^$/d' | sed -u
>> 's/^[0-9]*$/\n==&==============================/g'"
>>
>> echo ""
>> echo "NB: if it do not works, edit script so that STDERR2DEVNULL=\" \"
>> and try again"
>> echo ""
>> echo "NB: remember to quote and escape match patterns, using triple slash"
>> echo " eg, for matching 1010(a)pbx.example.com, use \"
>> 1010(a)pbx.example.com\""
>> echo " eg, for matching anything, use \"\\\\\\.*\""
>> echo " eg, for matching *98, use \"\\\\\\*98\""
>> echo "USAGE: $0 \"\\\\\\*98(a)pbx.example.com\""
>> echo ""
>>
>>
>> case "$1" in
>> -help|--help|?)
>> exit 0
>> ;;
>> *)
>> echo "THIS TIME WE'RE DOING:"
>> echo "tshark $ARGUMENT"
>> echo ""
>> bash -c "tshark $ARGUMENT"
>> ;;
>> esac
>>
>>
>>
>> --
>>
>> Sincerely,
>>
>> Giovanni Maruzzelli
>> OpenTelecom.IT
>> cell: +39 347 266 56 18
>>
>
>
>
> --
>
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
>
> _______________________________________________
> Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
--
Sincerely,
Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18
Hi list!
I'm using kamailio 4.2 for load-balancing and failover via dispatcher,
but I'm having some NAT related issues and I was hoping that someone
might point me in the right direction.
My setup is the following:
PSTN - PBX - kamailio - NAT - client
Calls from the NATed client to PSTN and/or PBX features (e.g. voicemail)
work just fine.
However, when a call comes from PSTN to the client, kamailio sends the
INVITE to the client's RFC1918 IP and I can't figure out how to send it
to the correct destination. I tried loading the registrar and usrloc
modules and used save("location") during REGISTER and lookup("location")
just before loose_route(), but the end result was that kamailio replied
to REGISTERs with any username/password with a 200 OK and the endpoints
never registered with the PBX.
I can attach the config file if that will help.
Thanks for all input in advance!
Regards,
Iskren
Hi,
Just a quick question: if I use the Kamailio rtpproxy module with the Sippy
RTPproxy, can I stream audio within a call? Or is it only possible before
call audio is established?
For example can I mix/playback audio file into an existing established call
session at any time using functions rtpproxy_stream2uac() and
rtpproxy_stream2uas()
somehow? If it is possible, does it need to be triggered by an in-dialog
message from either UAC or UAS?
Cheers,
Yufei
Hi,
when one of the proxies receive CANCEL,
and it also the tries to generate 408 because of frv_inv_timer timeout at
the sametime
the e2e_cancel tries to generate a response to CANCEL - 487
at this time kamailio crashes from build_res_buf_from_sip_req,
<< for(lump=msg->reply_lump;lump;lump=lump->next) {
len += lump->text.len; >>
is it because the 408 generated deletes the reply lump or
how can it be prevented.
thanks for looking
--
View this message in context: http://sip-router.1086192.n5.nabble.com/kamailio-crashes-when-it-receives-C…
Sent from the Users mailing list archive at Nabble.com.
We have old ser running and in "serctl moni" command output in
"Transaction Statistics" section "waiting counter" is growing it's
almost millions sometime i do restart to get it clear so wanted to
understand what is that counter for and why its keep growing? see
following output after restart its 237 but it will grow by time..
#serctl moni
[cycle #: 20; if constant make sure server lives and fifo is on]
Server: Vivox Proxy (0.10.99+cvs20050913 (i386/linux))
Now: Fri May 5 21:20:10 2017
Up Since: Sun Apr 30 02:31:34 2017
Up time: 499716 [sec]
Transaction Statistics
Current: 73 (237 waiting) Total: 1015654 (0 local)
Replied localy: 1748134 Deleted: 1015581
Completion status 6xx: 0, 5xx: 226, 4xx: 241347, 3xx: 0, 2xx: 848765