Hello! I have setup kamailio+rtpengine+asterisk.. And I have issue with
early media for WEBrtc endpoints... As I understood right, for this case I
need to use rel100(PRACK) for sending early media... But I didn't find any
example for solve this issue... Can you help me with it? It would be
greatly appreciated!
Hey guys,
Need some help with possible run away memory issue on my 5.1.2 Kamailio. I
noticed I'm getting this memory error from kam logs:
May 24 13:47:52 ashintgtpsg51 /usr/sbin/kamailio[1857]: WARNING:
http_client [functions.c:298]: curL_query_url(): Curl library out of memory
(url:https://<some url>)
my -m on kamailio startup is currently set to 64 but there is only 1 call
going through.
In our check_mk, I noticed the memory usage is ramping up:
[image: image.png]
What's the cause of this?
--
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.*
Hi ,
I am getting the following error in trying to send INVITE message from SIP
client.
{2 2 INVITE 4_Do2VIMWLR6Wf5ubiBxgg..} NOTICE: acc [acc.c:281]:
acc_log_request(): ACC: transaction answered:
timestamp=1558902843;method=INVITE;from_tag=69588468;to_tag=ebd29a60;call_id=4_Do2VIMWLR6Wf5ubiBxgg..;code=200;reason=OK;src_user=1016;src_domain=172.25.22.23;src_ip=172.25.22.40;dst_ouser=1015;dst_user=1015;dst_domain=172.25.22.40
May 27 02:04:03 epc-srv-03 /usr/sbin/kamailio[17238]: {2 2 INVITE
4_Do2VIMWLR6Wf5ubiBxgg..} ERROR: db_mysql [km_dbase.c:128]:
db_mysql_submit_query(): driver error on query: Unknown column 'src_user'
in 'field list' (1054)
May 27 02:04:03 epc-srv-03 /usr/sbin/kamailio[17238]: {2 2 INVITE
4_Do2VIMWLR6Wf5ubiBxgg..} ERROR: <core> [db_query.c:243]:
db_do_insert_cmd(): error while submitting query
May 27 02:04:03 epc-srv-03 /usr/sbin/kamailio[17238]: {2 2 INVITE
4_Do2VIMWLR6Wf5ubiBxgg..} ERROR: acc [acc.c:477]: acc_db_request(): failed
to insert into database
May 27 02:04:10 epc-srv-03 /usr/sbin/kamailio[17229]: {2 3 BYE
4_Do2VIMWLR6Wf5ubiBxgg..} NOTICE: acc [acc.c:281]: acc_log_request(): ACC:
transaction answered:
*Can anyone help me understand the reason for this error.*
*I am attaching the used kamailio.cfg file in this message.*
*Thanks and Regards,*
*Mohit*
--
_Disclaimer: This email and any files transmitted along with it may contain
Azcom confidential and proprietary information. If you are not the
intended recipient, you are notified that disclosing, copying, distributing
or taking any action based on the contents of the information contained
herein is strictly prohibited. If you are not an intended recipient of this
transmission and you received it in error, please inform the sender by
reply e-mail and destroy this and all other copies of this transmission to
which you have access. The sender of this email or Azcom does not accept
liability for any errors or omissions in the contents of this message that
may occur as a result._
I'm trying to rewrite the `From` header in an invite going out to an
external system (*), by calling remove_hf("From");
followed by
append_hf("From: <some value>\r\n");
but the result is an invalid SIP message, because apparently after
`remove_hf()` finishes, it leaves the content of $fU in place of the
`From` header - just the raw text, without a header name or even a
"\r\n" - and that eats the next header line and breaks the INVITE.
Here is how the INVITE originally looks (without either `remove_hf()`
or `append_hf()`):
---8<---
INVITE sip:972522353283@10.20.30.40:5060 SIP/2.0
Record-Route: <sip:10.90.80.70;lr;did=649.f0b>
Via: SIP/2.0/UDP
10.90.80.70:5060;branch=z9hG4bK6188.ff5c4fd855bd2970fdf32d4807b114c2.0
Via: SIP/2.0/UDP
10.90.80.71:5066;received=10.90.80.71;branch=z9hG4bK581897a4;rport=5066
Max-Forwards: 69
From: <sip:972515340014@example.com:5066>;tag=as0bcee217
To: <sip:972522353283@10.20.30.40:5060>
Contact: <sip:972515340014@10.90.80.71:5066>
Call-ID: 722299dc15aad53d28172d433e8665f4@10.90.80.71:5066
CSeq: 102 INVITE
User-Agent: Asterisk PBX 14.7.2
Date: Sun, 26 May 2019 14:42:52 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH, MESSAGE
Supported: replaces
X-CID: ad199638-4df3-4aef-81f1-1b50581032a7
Content-Type: application/sdp
Content-Length: 280
v=0
o=root 817636675 817636675 IN IP4 10.50.60.70
s=Asterisk PBX 14.7.2
c=IN IP4 10.50.60.70
t=0 0
m=audio 39064 RTP/AVP 8 0 18 9
a=maxptime:60
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=rtpmap:9 G722/8000
a=sendrecv
a=rtcp:39065
a=ptime:20
---8<---
and here is another call with the same setup, with just
`remove_hf("From");` being invoked (without calling `append_hf()` -
this is just for reproduction):
---8<---
INVITE sip:972522353283@10.20.30.40:5060 SIP/2.0
Record-Route: <sip:10.90.80.70;lr;did=f45.91b1>
Via: SIP/2.0/UDP
10.90.80.70:5060;branch=z9hG4bK024d.2690ebf7a809edca2208e6b2561ccf9e.0
Via: SIP/2.0/UDP
10.90.80.71:5066;received=10.90.80.71;branch=z9hG4bK79ae3073;rport=5066
Max-Forwards: 69
972515340014To: <sip:972522353283@10.20.30.40:5060>
Contact: <sip:972515340014@10.90.80.71:5066>
Call-ID: 7b20ba5a549f6f886c22985146765736@10.90.80.71:5066
CSeq: 102 INVITE
User-Agent: Asterisk PBX 14.7.2
Date: Sun, 26 May 2019 14:44:20 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH, MESSAGE
Supported: replaces
X-CID: ffbb4ac1-3a0f-4dd6-9ce9-7ad24361081a
Content-Type: application/sdp
Content-Length: 280
v=0
o=root 509740923 509740923 IN IP4 10.50.60.70
s=Asterisk PBX 14.7.2
c=IN IP4 10.50.60.70
t=0 0
m=audio 39102 RTP/AVP 8 0 18 9
a=maxptime:60
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=rtpmap:9 G722/8000
a=sendrecv
a=rtcp:39103
a=ptime:20
---8<---
As you can see, the `From` header is indeed gone, but it left the $fU
just before the `To` header.
WTF?
I'm running Kamailio 5.2.2 built locally.
Notes:
*) the problem I'm trying to solve is that I can't get my Asterisk
installation to generate the `From` header I want, the reason is out
of scope of this question, so I'm sending custom SIP headers over to
Kamaiio and I want to rewrite the header in Kamailio to the "correct"
value.
--
Oded Arbel
Hello all (again),
I am looking at a 'good' method to start a call with "chunks" of time
allocated. I wish the initial call to check a credit, and if credit is
good, allow a small amount of time (say 30 seconds). I have enabled
DIALOG and have looked at CNXCC, but am confused!
When the initial 30 seconds runs out, I want to authorise another 30
seconds, etc, etc, etc. I have started to play and set a dialog timer
that expires to a route, and then can 'return' allowing the call to
continue - BUT was not able to reset the dialog timer to trip again
after another 30 seconds.
I tried to 'set_max_time' on cnxcc, but this did not seem to trip the
event route upon timeout?
Does anyone have a pointer to any examples? I also am unsure of how to
update the timer and keep a call in play!
Steve
Hello there,
i have stored ~200 000 registrations contacts in redis database and when
kamailio starts looking for expired contacts in redis then it starts giving
these errors:
WARNING: PR_LOG: 123: db_redis [redis_dbase.c:1099]:
db_redis_perform_query(): performing full table scan on table 'location'
while performing query
WARNING: PR_LOG: 123: db_redis [redis_dbase.c:1102]:
db_redis_perform_query(): scan key 0 is 'expires'
*WARNING: PR_LOG: 123: db_redis [redis_dbase.c:1102]:
db_redis_perform_query(): scan key 1 is 'expires'*
*ERROR: PR_LOG: 123: <core> [core/mem/q_malloc.c:291]: qm_find_free():
qm_find_free(0x7ff80922b010, 3055920); Free fragment not found!*
*ERROR: PR_LOG: 123: <core> [core/mem/q_malloc.c:425]: qm_malloc():
qm_malloc(0x7ff80922b010, 3055920) called from core: db_res.c:
db_allocate_rows(183), module: core; Free fragment not found!*
*ERROR: PR_LOG: 123: <core> [db_res.c:185]: db_allocate_rows(): no private
memory left*
*ERROR: PR_LOG: 123: db_redis [redis_dbase.c:1115]:
db_redis_perform_query(): Failed to allocate memory for rows *
I have configured the private memory to 128 MB but seems that isn't enough
to handle with all these contacts.
Is the only option here increase the private memory or there is any other
kind of configuration(in redis or kamailio) that i can make to avoid this?
Best Regards
José Seabra
--
Cumprimentos
José Seabra
Hi,
My name is Mohit Chawla working on LTE Network integration with Kamailio IMS
server. We are facing issues in installation & Configuring of kamailio IMS
on CentOS 7 due to no documentation is available on web (or at least I am
not able to find one). Primarily I am interested in installing packages (not
building from source code as of now) and use it for further testing. I can
go with building the package from source if its more easier and quick.
Can you guys help me share any document/wiki which is helpful for my cause ?
I will be really grateful if someone can reply me by today.
Thanks and Regards,
Mohit
From: Mohit Chawla [mailto:mohit.chawla@azcom.in]
Sent: Wednesday, May 22, 2019 5:57 PM
To: 'sr-users(a)lists.kamailio.org'
Subject: Kamailio IMS installation from pacakges
Hi,
My name is Mohit Chawla working on LTE Network integration with Kamailio IMS
server. We are facing issues in installation & Configuring of kamailio IMS
on CentOS 7 due to no documentation is available on web (or at least I am
not able to find one). Primarily I am interested in installing packages (not
building from source code as of now) and use it for further testing. I can
go with building the package from source if its more easier and quick.
Can you guys help me share any document/wiki which is helpful for my cause ?
I will be really grateful if someone can reply me by today.
Thanks and Regards,
Mohit
--
_Disclaimer: This email and any files transmitted along with it may contain
Azcom confidential and proprietary information. If you are not the
intended recipient, you are notified that disclosing, copying, distributing
or taking any action based on the contents of the information contained
herein is strictly prohibited. If you are not an intended recipient of this
transmission and you received it in error, please inform the sender by
reply e-mail and destroy this and all other copies of this transmission to
which you have access. The sender of this email or Azcom does not accept
liability for any errors or omissions in the contents of this message that
may occur as a result._
Hi ,
We have successfully installed the kamailio IMS server on centOS 7 using the
following link
(http://www.kamailio.org/wiki/tutorials/ims/installation-howto) with
appropriate changes for command in CentOS 7. We are currently trying to
integrate the PCSCF module with LTE Core network , but I don't have any idea
how to do this. Neither I am able to find any tutorials which I can use to
understand how kamailio works. Can anyone share any reference document to
help me understand the kamailio working in my use case.
Thanks and Regards,
Mohit
--
_Disclaimer: This email and any files transmitted along with it may contain
Azcom confidential and proprietary information. If you are not the
intended recipient, you are notified that disclosing, copying, distributing
or taking any action based on the contents of the information contained
herein is strictly prohibited. If you are not an intended recipient of this
transmission and you received it in error, please inform the sender by
reply e-mail and destroy this and all other copies of this transmission to
which you have access. The sender of this email or Azcom does not accept
liability for any errors or omissions in the contents of this message that
may occur as a result._
Hello!
I am using dialog+acc modules to write CDRs in kamailio.
Everything works great except one test.
During active call I switched off both UACs preventing them to send BYE.
Rtpengine reported about call interruption, but kamailio thinks that
this call is in-progress for a long time.
What is the right way to make kamailio know about calls interrupted
without BYE.
Thanks.
--
Sincerely,
*Ildar Mukhametzhanov*
Head of software development
VoiceON Telecom Services GmbH
im(a)voice-on.net <mailto:im@voice-on.net>
t. +49 30 398 20 500-77