Hi Apologies,
I was a bit hasty in my previous email, I forgot to run the Chown command
I still can’t get the service to start and I’m getting the below error. I’ve gone through all the steps multiple times, please help.
/etc/init.d/kamailio start
[....] Starting kamailio (via systemctl): kamailio.serviceFailed to start kamailio.service: Unit kamailio.service failed to load: No such file or directory.
failed!
Kind regards
Stephen tyers
Hi Guys,
Is to convert or obtain
$TV(s) - seconds (cached at first call per sip message)
$TV(u) - microseconds (cached at first call per sip message)
to datetime.microsecs?
I'm trying to save 180/183 datetime (cached) like YYYY-MM-DD
HH:mm:SS.microsecs
$dlg_var(ring_time) = $timef(%Y-%m-%d %H:%M:%S); <--this is current time,
not cached
$dlg_var(ring_time_micro) = $TV(u); <-- this is cached us
Thanks in advance!
Diego.
Hi,
I'm trying to use a htable array. For that, I have inserted some
values in the database (in pseudo CSV):
key_name; key_type; value_type; key_value
'1234567'; 1; 0; 'foo'
'1234567', 1, 0, 'bar'
'1234567', 1, 0, 'baz'
insert into htable (key_name , key_type , value_type , key_value )
values ('1234567', 1, 0, 'foo'),('1234567', 1, 0, 'bar'),('1234567',
1, 0, 'baz');
Now after just starting Kamailio, reading those values, from db and
then stopping Kamailio again, the table content looks like this:
key_name; key_type; value_type; key_value
'1234567[2]'; 0; 0; 'baz'
'1234567[0]', 0, 0, 'foo'
'1234567[1]', 0, 0, 'bar'
'1234567::size', 0, 1, 3
Is this how it is supposed to work? When re-reading those entries, the
htable contents look the same as during the first start, but in the
database it is a bit harder to read.
And while I'm at it: Is there a way to regularly write back the
current htable contents to the database? Or even to sync every write
directly into the database?
Thanks in advance
Sebastian
Hi All,
I am using pjsip client and kamailiio,both running on different servers.I want to replace the uri on which pjsip is running with the uri on which kamailio is running in contact header.
I put some logs on route[REGISTRAR] and able to see the $route_uri as kamailio server uri($avp(s:fs) and $hdr(Contact) as pjsip server uri ($avp(s:contact).But I am not able to replace the uri with avp_subst() function.
Can anybody help me how to replace the uri or with any any other function.
Below I have put the snippet of config file.
# Handle SIP registrations
route[REGISTRAR] {
if (!is_method("REGISTER")) return;
if(isflagset(FLT_NATS)) {
setbflag(FLB_NATB);
#!ifdef WITH_NATSIPPING
# do SIP NAT pinging
setbflag(FLB_NATSIPPING);
#!endif
}
xlog("Narayan: before sending contact\n");
$avp(s:contact) = $hdr(Contact);
$avp(s:fs) = $route_uri;
xlog("Narayan: Forced socket is $avp(s:fs)\n");
xlog("Narayan: contact header is $avp(s:contact)\n");
avp_subst("$avp(s:contact)/avp(s:contac)/g", "/(.*)(a)(.*)/$route_uri/");
#avp_pushto("$ru/domain","$fd");
#rewritehostport("185.122.206.62:5060");
t_on_reply("MANAGE_REPLY");
t_relay();
#if (!save("location")) {
# sl_reply_error();
#}
exit;
}
Any suggestion will be highly appreciated.
Thanks,
Narayan
Hi,
I’ve hit a road block when following URL http://kamailio.org/docs/tutorials/5.0.x/kamailio-install-guide-git/
I’m very new to open source and linux so please bare with me.
I’ve reached step Kamailio start and I get the below error. Please help, I’ve think I’ve followed all the proceeding commands and created the databases.
root@kamailio:/var/run# /etc/init.d/kamailio start
-bash: /etc/init.d/kamailio: Permission denied
Many thanks
Steve
Dear Sir,
This is Edward, nice to meet you.
When I follow the installation guide of Kamailio 5.0.x
https://kamailio.org/docs/tutorials/5.0.x/kamailio-install-guide-git/ to
install Kamailio, I met an issue, it report "unit kamailio.service not
found" when I issue command /etc/init.d/kamailio start. After google, I
found one step was missed: to copy kamailio.service to /etc/system.d/system.
Except above issue, all others are all okay for my installation on Ubuntu
16.04.
Thanks & Regards,
Edward
While implementing Kamailio to hold customer call, I would to send "Pls hold on looking for an agent" MSRP message from Kamailio config. Is it doable?
>From the module, we can only send msrp_reply and msrp_relay...
Please advise.
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.
Hello,
Maybe this isn't the right place.
Just installed SIREMIS (4.3.0) on a kamailio 5, everything works with the
admin user, but when creating a SIP USER, after clicking on "Save" the page
goes to http://1.2.3.4/siremis/system/user_detail/5 which just shows a
blank page.
Nevertheless, the user IS created and shows up on the "user management",
but when the user tried to login, after clicking on "login", it shows a
"processing login" and a pop-up comes up (
http://1.2.3.4/siremis/index.php/user/login) which just show a "1"
here's the log:
{code}
'04/27/2017','20:25:22','DEBUG','DATAOBJ','Query Sql = SELECT T0.id,
T0.username, T0.password, T0.enctype, T0.email, T0.status, T0.lastlogin,
T0.lastlogout, T0.create_by, T0.create_time, T0.update_by, T0.update_time
FROM user T0 WHERE T0.username='nocadmin' and status='1' LIMIT 1 BIND:
','n/a'
'04/27/2017','20:25:22','DEBUG','DATAOBJ','Query Sql = SELECT T0.id,
T0.username, T0.password, T0.enctype, T0.email, T0.status, T0.lastlogin,
T0.lastlogout, T0.create_by, T0.create_time, T0.update_by, T0.update_time
FROM user T0 WHERE T0.username='nocadmin' LIMIT 1 BIND: ','n/a'
'04/27/2017','20:25:22','DEBUG','DATAOBJ','Query Sql = SELECT T0.id,
T0.first_name, T0.last_name, T0.display_name, T0.company, T0.department,
T0.position, T0.fast_index, T0.photo, T0.phone, T0.mobile, T0.fax,
T0.zipcode, T0.province, T0.city, T0.street, T0.country, T0.email,
T0.webpage, T0.qq, T0.icq, T0.skype, T0.yahoo, T0.misc, T0.type_id,
T1.name, T0.sortorder, T0.user_id, T0.published, T0.default, T0.access,
T0.params, T0.create_by, T0.create_time, T0.update_by, T0.update_time FROM
contact T0 LEFT JOIN contact_type T1 ON T1.id = T0.type_id WHERE
(T0.published=1 or T0.user_id='4') AND T0.user_id='4' ORDER BY T0.sortorder
ASC, T0.id ASC LIMIT 1 BIND: ','n/a'
'04/27/2017','20:25:22','DEBUG','DATAOBJ','Query Sql = SELECT T0.id,
T0.user_id, T0.role_id, T1.name, T1.startpage FROM user_role T0 INNER JOIN
role T1 ON T1.id = T0.role_id WHERE T0.user_id='4' BIND: ','n/a'
'04/27/2017','20:25:22','DEBUG','DATAOBJ','Insert Sql = INSERT INTO
event_log (user_id, ipaddr, event, message, comment, timestamp) VALUES
(:_v1, :_v2, :_v3, :_v4, :_v5, :_v6); BIND:
4,6.7.8.9,LOGIN,MSG_LOGIN_SUCCESSFUL,a:2:{i:0;s:8:"nocadmin";i:1;s:13:"6.7.8.9";},2017-04-27
20:25:22','n/a'
'04/27/2017','20:25:22','DEBUG','DATAOBJ','New record Id is 14','n/a'
'04/27/2017','20:25:22','DEBUG','DATAOBJ','Query Sql = SELECT T0.id,
T0.username, T0.password, T0.enctype, T0.email, T0.status, T0.lastlogin,
T0.lastlogout, T0.create_by, T0.create_time, T0.update_by, T0.update_time
FROM user T0 WHERE T0.username='nocadmin' LIMIT 1 BIND: ','n/a'
'04/27/2017','20:25:22','DEBUG','DATAOBJ','Update Sql = UPDATE user SET
lastlogin = :_v1, update_by = :_v2, update_time = :_v3 WHERE id='4'; BIND:
2017-04-27 20:25:22,4,2017-04-27 20:25:22','n/a'
{code}
nothing else is shown, nothing happens...
Thanks for your help!
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
ᐧ