Hello,
Kamailio SIP Server v5.1.8 stable release is out.
This is a maintenance release of the previous stable branch, 5.1, that
includes fixes since the release of v5.1.7. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.1.x. Deployments running previous v5.1.x
versions are strongly recommended to be upgraded to v5.1.8 or to v5.2.x
series.
For more details about version 5.1.8 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2019/04/kamailio-v5-1-8-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Note: the branch 5.1 is the previous stable branch. The latest stable
branch is 5.2, at this time with v5.2.2 being released out of it.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Hello,
I am considering to release v5.1.8, an minor version to be built from
branch 5.1, on Thursday, this week (April 11, 2019). As usual, check
that at least the patches for issues you reported were backported in
order to be sure they were not missed during the typical backporting
done by developers so far.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Hi All,
looking for some advice regarding the proper way to initialise an AWS API
boto3 client object for send SNS messages within a KEMI Python 2.7 routing
script.
I'm sure process forking has a major impact on how this works - from
kamailio.cfg
fork=yes
children=4
- but would greatly appreciate some guidance.
I have tried various methods to allocate an client object self.sns_client =
boto3.client('sns', region_name=MY_AWS_REGION)
1. within __init__(), only once from module initialisation
2. on demand within a function call by any client code e.g. called from
ksr_route_request(), each creating it's own client object
and so far all have resulted in intermittent crashes within
botocore/client.py ultimately crashing thus :
Core was generated by `/usr/local/sbin/kamailio -P
/usr/local/kamailio/run/kamailio.pid -f /usr/local/'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f8f9734f754 in ?? () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
(gdb) bt
#0 0x00007f8f9734f754 in ?? () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
#1 0x00007f8f9734f82e in X509_VERIFY_PARAM_free () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
#2 0x00007f8f97642f5c in SSL_free () from
/usr/lib/x86_64-linux-gnu/libssl.so.1.1
#3 0x00007f8f86b09c64 in PySSL_dealloc.lto_priv.5 () at
./Modules/_ssl.c:1598
#4 0x00007f8f99cbb007 in insertdict_by_entry (mp=0x7f8f841f1e88,
key='_sslobj', hash=<optimized out>, ep=<optimized out>, value=<optimized
out>) at ../Objects/dictobject.c:519
#5 0x00007f8f99cbe2cf in insertdict (value=None, hash=1051385741686792393,
key='_sslobj', mp=0x7f8f841f1e88) at ../Objects/dictobject.c:556
#6 dict_set_item_by_hash_or_entry (value=None, ep=0x0,
hash=1051385741686792393, key='_sslobj',
op={'server_hostname': u'sns.us-east-1.amazonaws.com', '_connected':
True, '_context': <SSLContext at remote 0x7f8f84232398>, 'server_side':
False, '_makefile_refs': 0, '_closed': False, '_sslobj': None,
'do_handshake_on_connect': True, 'suppress_ragged_eofs': True}) at
../Objects/dictobject.c:795
#7 PyDict_SetItem (op=<optimized out>, key=<optimized out>,
value=<optimized out>) at ../Objects/dictobject.c:848
#8 0x00007f8f99becec1 in _PyObject_GenericSetAttrWithDict (obj=<optimized
out>, name='_sslobj', value=None,
dict={'server_hostname': u'sns.us-east-1.amazonaws.com', '_connected':
True, '_context': <SSLContext at remote 0x7f8f84232398>, 'server_side':
False, '_makefile_refs': 0, '_closed': False, '_sslobj': None,
'do_handshake_on_connect': True, 'suppress_ragged_eofs': True}) at
../Objects/object.c:1529
#9 0x00007f8f99bed437 in PyObject_SetAttr (
v=<SSLSocket(server_hostname=u'sns.us-east-1.amazonaws.com',
_connected=True, _context=<SSLContext at remote 0x7f8f84232398>,
server_side=False, _makefile_refs=0, _closed=False, _sslobj=None,
do_handshake_on_connect=True, suppress_ragged_eofs=True) at remote
0x7f8f841f62a8>, name=<optimized out>, value=None) at
../Objects/object.c:1247
Here's my setup
host : Debian9/stretch
python --version
Python 2.7.13
kamailio -v
version: kamailio 5.2.2 (x86_64/linux) 67f967-dirty
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
USE_DST_BLACKLIST, HAVE_RESOLV_RES, MEM_JOIN_FREE
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024,
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 67f967 -dirty
compiled on 23:44:31 Apr 8 2019 with gcc 6.3.0
Cheers
Mike
Dear all,
This is my first post after reading a lot in this mailing-list.
I'm trying to use Kamailio 5.1 with the dispatcher module and rtpengine
acting as SIP + RTP proxy.
I have 6 asterisk servers in a private subnet that should talk with the
peer via a single IP like this:
Asterisk 1..n|---> | GW.PRIVATE.IP -o- GW.PUBLIC.IP |----> PEER.SIP.TRUNK
I'm on Centos 7, with firewalld configured, iptables module is loaded
and the rule is well defined.
Packet forwarding is also enabled.
Chain rtpengine (1 references)
target prot opt source destination
RTPENGINE udp -- anywhere anywhere RTPENGINE
id:40
My call flow seems to be fine, Kamailio/rtpengine private IP is the
outboundproxy parameter of Asterisk instances.
My problem is that RTP packets are not present on the public interface,
the rtpengine final log showing
the 2 sessions, but I'm not sure this is what I want or simply the
firewall does not let it out ?
(To be more precise PEER.SIP.TRUNK is the trunk for SIP traffic, I have
multiple IP addresses
for media to connect to, reinvites are allowed)
Closing call due to timeout
Final packet stats:
--- Tag 'as6d12caea', created 1:00 ago for branch '', in dialogue with
'as541b1e61'
------ Media #1 (audio over RTP/AVP) using unknown codec
--------- Port GW.PRIVATE.IP:10000 <> 192.168.30.13:11152, SSRC 0, 0
p, 0 b, 0 e, 60 ts
--------- Port GW.PRIVATE.IP:10001 <> 192.168.30.13:11153 (RTCP),
SSRC 0, 0 p, 0 b, 0 e, 60 ts
--- Tag 'as541b1e61', created 1:00 ago for branch '', in dialogue with
'as6d12caea'
------ Media #1 (audio over RTP/AVP) using unknown codec
--------- Port GW.PUBLIC.IP:10000 <> PEER.SIP.TRUNK:28216, SSRC 0,
0 p, 0 b, 0 e, 60 ts
--------- Port GW.PUBLIC.IP:10001 <> PEER.SIP.TRUNK:28217 (RTCP),
SSRC 0, 0 p, 0 b, 0 e, 60 ts
Best regards,
Istvan
Dear,
I am writing to ask for help, I found your Email after I've subscribed to
Kamailio.org.
I am a beginner in Linux environment ( I worked on Windows for 20 years),
it would be very helpful if you can help me installing Kamailio on a
computer running Debian and how to use the load balancing module so that I
can split the charge between 2 asterisk servers, by sharing any useful
tutorial or document or even by Teamviewer if this doesn't disturb you.
Please help me, all the tutorials I find on internet aren't made for
beginners.
I will be awaiting your reply and excuse me again if I disturb you.
Best regards,
--
*Anas ZAHHAF*
*105, rue des Moines75017 PARIS*
*+33(0)7.66.31.31.85*
azahhaf(a)zaion.ai <niluse(a)zaion.ai> | www.zaion.ai
ᐧ
Hello,
How can I change the status where Reason: q.850;cause=31. ?
This code change status for all where we receive status 480 to 404. Is it possible to this code also to add second condition - if reason is like "q.850;cause=31"
failure_route[MANAGE_FAILURE] {
...
if (t_check_status("480")) {
t_reply("404","Unallocated number");
exit;
}
Need to modify this massage.
SIP/2.0 480 Temporarily Not Available.
Allow: UPDATE,REFER,INFO.
Call-ID: 6b11b153405a5103330697b774b97f5a@192.168.2.2:5060.
Contact: <sip:192.168.3.3:5060>.
CSeq: 102 INVITE.
From: "380668375820" <sip:380668375820@192.168.2.2>;tag=as445242c0.
Reason: q.850;cause=31.
Server: Cirpack/v4.76 (gw_sip).
To: <sip:9052946032@192.168.3.3:5060>;tag=00-07929-6e4a3079-75447e2a5.
Content-Length: 0.
Thanks.
BR,
Aleksandr
Hey all,
Question regarding the type of retcode.
I ran a curl command and $retcode returned 200. I check against that
variable if it's 200 or not. I tried to check 200 as a string and integer
but never matches so I ran these lines of code:
xlog("L_INFO", "[$ci][$mi][CSeq $cs] Validating meeting ($rU). Result:
$var(result) Return code: $retcode \n");
if(is_int($retcode))
{
xlog("L_INFO", "[$ci][$mi][CSeq $cs] retcode is an integer
\n");
}
if(typeof("$retcode", "str"))
{
xlog("L_INFO", "[$ci][$mi][CSeq $cs] retcode is a string
\n");
}
None of these xlog outputed.
How do I check for $retcode in if or switch statement?
Thanks
--
Andy Chen
Sr. Telephony Lead Engineer
achen@ <achen(a)thinkingphones.com>fuze.com
--
*Confidentiality Notice: The information contained in this e-mail and any
attachments may be confidential. If you are not an intended recipient, you
are hereby notified that any dissemination, distribution or copying of this
e-mail is strictly prohibited. If you have received this e-mail in error,
please notify the sender and permanently delete the e-mail and any
attachments immediately. You should not retain, copy or use this e-mail or
any attachment for any purpose, nor disclose all or any part of the
contents to any other person. Thank you.*
Good afternoon,
We are unable to get kamailio 5.2 to install using the recommended opensuse repos for Centos 7. Is there any way to resolve the following errors:
Thanks very much for your assistance!
using the following repo setup in /etc/yum.repos.d/
[home_kamailio_v5.2.x-rpms]
name=RPM Packages for Kamailio v5.2.x (CentOS_7)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/home:/kamailio:/v5.2.x-rp…
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/home:/kamailio:/v5.2.x-rpm…
enabled=1
Resolving Dependencies
--> Running transaction check
---> Package kamailio.x86_64 0:5.2.2-3.el7.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================
Installing:
kamailio x86_64 5.2.2-3.el7.centos home_kamailio_v5.2.x-rpms 5.6 M
Transaction Summary
=============================================================================================================================================================================
Install 1 Package
Total download size: 5.6 M
Installed size: 25 M
Downloading packages:
kamailio-5.2.2-3.el7.centos.x8 FAILED ================- ] 2.3 MB/s | 1.7 MB 00:00:01 ETA
http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.2.x-rpms/C…: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=home_kamailio_v5.2.x-rpms clean metadata
Trying other mirror.
Error downloading packages:
kamailio-5.2.2-3.el7.centos.x86_64: [Errno 256] No more mirrors to try.
If we run the suggested clean metadata command, then the error changes to:
sudo yum -y install kamailio
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.advancedhosters.com
* epel: mirror.cogentco.com
* extras: mirrors.advancedhosters.com
* updates: mirrors.advancedhosters.com
Resolving Dependencies
--> Running transaction check
---> Package kamailio.x86_64 0:5.2.2-3.el7.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================
Installing:
kamailio x86_64 5.2.2-3.el7.centos home_kamailio_v5.2.x-rpms 5.6 M
Transaction Summary
=============================================================================================================================================================================
Install 1 Package
Total download size: 5.6 M
Installed size: 25 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
kamailio-5.2.2-3.el7.centos.x8 FAILED
http://download.opensuse.org/repositories/home%3A/kamailio%3A/v5.2.x-rpms/C…: [Errno 14] HTTPS Error 416 - Requested Range Not Satisfiable
Trying other mirror.
Error downloading packages:
kamailio-5.2.2-3.el7.centos.x86_64: [Errno 256] No more mirrors to try.
Hi ppl,
Scenario: invite from upstream is t_relayed to a client gateway. After
`fr_inv_timeout` occurs, in a failure route I simply t_reply with "503 -
Service unavailable", then exit().
However, the upstream provider simply ignores this reply, call doesn't hang
up. This doesn't happen when the client's gateway generates identical 503
or other negative replies.
I suspect this is happening because the To-tag in the Kam generated 503
reply doesn't match with the To-tag that previously was forwarded from the
client's gateway to the upstream provider in the `180 Ringing`.
Any suggestions what can be done about it?
2019/04/06 10:42:46.127177 65.39.xxx.xxx:5060 -> 208.72.xxx.xxx:5060
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP
208.72.xxx.xxx:5060;received=208.72.xxx.xxx;rport=5060;branch=z9hG4bK1982422573
Record-Route: <sip:65.39.xxx.xxx;lr=on;did=915.8af1>
From: "SERGIU" <sip:514XXXXXXX@208.72.xxx.xxx>;isup-oli=00;tag=1975755942
To: <sip:514XXXXXXX@65.39.xxx.xxx>;tag=as2ab54180
Call-ID: DID-28270826(a)208.72.xxx.xx
CSeq: 477023 INVITE
Supported: replaces, timer, path
Contact: <sip:1514XXXXXXX@65.39.xxx.xxx:5060>
Content-Length: 0
2019/04/06 10:42:51.072516 65.39.xxx.xxx:5060 -> 208.72.xxx.xxx:5060
SIP/2.0 503 Service Unavailable
Call-ID: DID-28270826(a)208.72.xxx.xx
Via: SIP/2.0/UDP
208.72.xxx.xxx:5060;rport=5060;branch=z9hG4bK1982422573;received=208.72.xxx.xxx
From: "SERGIU" <sip:514XXXXXXX@208.72.xxx.xxx>;isup-oli=00;tag=1975755942
To: <sip:514XXXXXXX@65.39.xxx.xxx>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-8e82
CSeq: 477023 INVITE
Server: KAM
Content-Length: 0
Thanks,
--Sergiu