Hello,
Following is an output from my sercmd dispatcher.list command.
I have noticed that sometimes the FLAGS: value is set to IX ( which is ok, it just means DEST is de-registered )
No calls are routed to this DEST, but for some reason the load balancing such as hash over callid is affected.
So If I had 4 DESTs and the first DEST had FLAGS:IX, no calls would be routed to it but the next destination
would get more calls than the rest.
So, in the example below DEST 132.24 would get more calls than DEST 132.25
[root@ser-kam-001 ~]# sercmd dispatcher.list
{
SET_NO: 1
SET: {
SET_ID: 1
DEST: {
URI: sip:176.22.132.23:5060
FLAGS: IX
PRIORITY: 0
ATTRS: reg-time=1494197124
}
DEST: {
URI: sip:176.22.132.24:5060
FLAGS: AX
PRIORITY: 0
ATTRS: reg-time=1494197125
}
DEST: {
URI: sip:176.22.132.25:5060
FLAGS: AX
PRIORITY: 0
ATTRS: reg-time=1494197124
}
}
}
Thanks,
--Jignesh Gandhi
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
Test Message to verify that I can receive it (and that I am actually subscribed to the list as I don't think the registration has worked so far).
Robert Remsik
ACNS
Desk Phone: 970 491 7120
Robert.Remsik(a)colostate.edu
When I use dlg_refer I get the following error:
2689 May 4 16:09:56 devsip00 /sbin/kamailio[24617]: exec: *** cfgtrace:failure_route=[HTTP_ALLOCATE_RESPONSE] c=[routingdev.cfg] l=567 a=26 n=dlg_refer
2690 May 4 16:09:56 devsip00 /sbin/kamailio[24617]: DEBUG: dialog [dlg_hash.c:690]: dlg_lookup(): ref dlg 0x7f92d19835e8 with 1 -> 2
2691 May 4 16:09:56 devsip00 /sbin/kamailio[24617]: DEBUG: dialog [dlg_hash.c:692]: dlg_lookup(): dialog id=10603 found on entry 2058
2692 May 4 16:09:56 devsip00 /sbin/kamailio[24617]: DEBUG: dialog [dlg_hash.c:452]: build_new_dlg(): new dialog on hash 2058
2693 May 4 16:09:56 devsip00 /sbin/kamailio[24617]: ERROR: dialog [dlg_req_within.c:85]: build_dlg_t(): no contact available
2694 May 4 16:09:56 devsip00 /sbin/kamailio[24617]: ERROR: dialog [dlg_transfer.c:188]: dlg_refer_callee(): failed to create dlg_t
2695 May 4 16:09:56 devsip00 /sbin/kamailio[24617]: DEBUG: dialog [dlg_hash.c:922]: dlg_unref_helper(): unref op on 0x7f92d19835e8 with 1 from dlg_hash.c:940
From: Pranathi Venkatayogi
Sent: Thursday, May 04, 2017 5:28 AM
To: 'Kamailio (SER) - Users Mailing List' <sr-users(a)lists.kamailio.org>
Subject: How does dlg_bridge work?
I have a TEXT call from cust1@somedomain to Kamailio. I have an agent who is logged in, but is not in any call yet.
I want now refer cust1@somedomain to talk to agent directly. How do I do that?
I tried - dlg_bridge("$dlg(from_contact)", "$var(agentSipAddress)","");
I get an "audio call" from "Kamailio" to customer, but nothing happens on the agent side.
I tried "dlg_refer" as well but nothing happens at all.
Should I handcraft "Refer" message using uac module and send to "customer" instead?
Please suggest.
Thanks
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,
Using KEMI Python and doing serial forking via:
msg.call_function("t_load_contacts")
msg.call_function("t_next_contacts")
* I couldn't see that the functions are exported to KEMI yet. I'm not great with C so I haven't tried exporting them myself.
I get the following in the log files:
PYT {INVITE}: 5(11963) ERROR: *** cfgtrace:request_route=[] c=[] l=0 a=26 n=t_load_contacts
PYT {INVITE}: 5(11963) ERROR: *** cfgtrace:request_route=[] c=[] l=0 a=26 n=t_next_contacts
However, it seems to be working anyway. Is the ERROR because I use the msg.call_function() ? Is there any better way to do serial forking using KEMI?
Thank you,
Samuel F
Hi guys,
is there any way to allow that the UAC module will make a REGISTER to another Kamailio with the parameters configured in uacreg table using the TLS protocol instead of UDP?
Marino
hello all
we have seen today something quite weird
having this line in the kamailio.cfg
(1) else if (status =~ "4" || status =~ "5" || status =~ "6") {
causes the process not to start hacing this error
May 3 10:28:14 xxxx /usr/local/kamailio/sbin/kamailio[2896]: ERROR:
<core> [io_wait.h:459]: io_watch_add(): epoll_ctl failed: Invalid
argument [22]
May 3 10:28:14 xxxx /usr/local/kamailio/sbin/kamailio[2896]: CRITICAL:
<core> [tcp_main.c:4432]: tcp_main_loop(): failed to add process 37 unix
socket to the fd list
May 3 10:28:14 xxxx /usr/local/kamailio/sbin/kamailio[2896]: CRITICAL:
<core> [tcp_main.c:4523]: tcp_main_loop(): exiting...
but placing
(2) } else if (status =~ "^[456]") {
instead, makes it work
this happens with kamailio 4.4.1 and the platform is running on
centos6.5
on the other hand we have the same line (1) on an ubuntu 10.0.4 makes
the kamailio also start properly
could you know why this is happening?
best regards
david
I have a TEXT call from cust1@somedomain to Kamailio. I have an agent who is logged in, but is not in any call yet.
I want now refer cust1@somedomain to talk to agent directly. How do I do that?
I tried - dlg_bridge("$dlg(from_contact)", "$var(agentSipAddress)","");
I get an "audio call" from "Kamailio" to customer, but nothing happens on the agent side.
I tried "dlg_refer" as well but nothing happens at all.
Should I handcraft "Refer" message using uac module and send to "customer" instead?
Please suggest.
Thanks
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,
I see in the examples that KSR.pv.get("$rm") is frequently used rather than the more simple msg.Method.
Why is this preferred?
Kind regards,
Samuel F
Hello,
I'm new to using freeswitch. I'm using a client called SIPJS to communicate
with freeswitch.
The SIP message and it's response:
INVITE sip:1001@104.130.11.232 SIP/2.0
Via: SIP/2.0/WS CODE;branch=BRANCH
Max-Forwards: 70
To: <sip:1001@104.130.11.232>
From: "1000" <sip:1000@104.130.11.232>;tag=7b5phc9nhb
Call-ID: sun3fqjm7nb7rs06dbuu
CSeq: 3769 INVITE
Contact: <sip:k86b2npa@v9figramd1qs.invalid;transport=ws;ob>
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound
User-Agent: SIP.js/0.7.7
Content-Type: application/sdp
Content-Length: 759
v=0
o=- 84832118975142245 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE data
a=msid-semantic: WMS
m=application 49422 DTLS/SCTP 5000
c=IN IP4 111.69.178.179
a=candidate:1520298561 1 udp 2113937151 192.168.178.32 49422 typ host
generation 0 network-cost 50
a=candidate:900384389 1 udp 2113939711 2406:e007:2f57:1:e951:8d6e:71bd:cff8
49423 typ host generation 0 network-cost 50
a=candidate:842163049 1 udp 1677729535 111.69.178.179 49422 typ srflx raddr
192.168.178.32 rport 49422 generation 0 network-cost 50
a=ice-ufrag:6Jk+
a=ice-pwd:XDsf8/lOfUpw8f3CQas5srLl
a=fingerprint:sha-256
23:DF:44:BC:1B:A5:B3:77:E0:ED:54:F9:A1:EE:CB:A1:99:FC:3A:0F:A2:2B:60:07:9A:F9:2D:12:BB:5B:60:49
a=setup:actpass
a=mid:data
a=sctpmap:5000 webrtc-datachannel 1024
SIP/2.0 403 Forbidden
Via: SIP/2.0/WS CODE;branch=BRANCH;received=111.69.178.179;rport=64431
From: "1000" <sip:1000@104.130.11.232>;tag=7b5phc9nhb
To: <sip:1001@104.130.11.232>;tag=gt0m2j3aa4m1K
Call-ID: sun3fqjm7nb7rs06dbuu
CSeq: 3769 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.9.0-380-c66a012~64bit
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER,
REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog,
line-seize, call-info, sla, include-session-description, presence.winfo,
message-summary, refer
Content-Length: 0
I thought to try get the invite to happen after subscribe events had taken
place however the same messages are received back.
This leads me to think that it's something to do with my freeswitch
installation.
Register messages are going through fine. that tells me that the users are
being authenticated when talking to freeswitch.
Nathan
--
*Virtual Guard Ltd*
*info(a)virtualguard.co.nz <info(a)virtualguard.co.nz>*