Hey Guys,
Something I noticed after upgrading Kamailio from 3.3.0 to 3.3.1.
Having the following code:
"""
if ds_is_from_list() {
xlog("Request coming from SCloud");
xlog("Checking grp_internal, having: $avp(s:dsgrp)");
}
"""
will produce the following output to syslog (dsgrp null instead of group
id):
"""
Aug 15 11:24:28 PrxyDev /usr/sbin/kamailio[2818]: ERROR: <script>:
Request coming from SCloud
Aug 15 11:24:28 PrxyDev /usr/sbin/kamailio[2818]: ERROR: <script>:
…
[View More]Checking grp_internal, having: <null>
"""
I have in dispatcher set:
modparam("dispatcher", "grp_avp", "$avp(dsgrp)")
and I am loading the rules from file.
I should mention that this block was working fine before upgrade.
Am I doing something wrong?
Thanks in advance!
DanB
[View Less]
Dear List
I have just installed kamailio V 3.3.1
However, when trying to start kamailio its giving me the below error:
ERROR: <core> [sr_module.c:572]: ERROR: load_module: could not open module
</usr/local/lib/kamailio/modules_k/rtpproxy.so>:
/usr/local/lib/kamailio/modules_k/rtpproxy.so: undefined symbol: qm_realloc
: <core> [cfg.y:3591]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 245, column 12-24: failed to
load module
Does anyone know why …
[View More]rtpproxy module cannot be loaded?
Thanks
Phillip
[View Less]
Dear List
I am trying to remove specific lines from the following original SDP body:
Content-Type: application/sdp
Content-Length: 406
v=0
o=root 3048 3048 IN IP4 xxx.xxx.xxx.xxx
s=session
c=IN IP4 xxx.xxx.xxx.xxx
b=CT:384
t=0 0
m=audio 11904 RTP/AVP 0 8 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
m=video 11602 RTP/AVP 34 99
a=rtpmap:34 H263/90000
…
[View More]a=rtpmap:99 H264/90000
a=sendrecv
I need to remove the following lines from the above SDP body as my
International carrier does not support Video capabilities:
m=video 15042 RTP/AVP 34 99
a=rtpmap:34 H263/90000
a=rtpmap:99 H264/90000
I used the following code in Kamailio config:
if(has_body("application/sdp") && search_body("m=video")){
subst_body('#m=video ([0-9]+) RTP/AVP (.*)$# #');
subst_body('#a=rtpmap:34 (.*)$# #');
subst_body('#a=rtpmap:99 (.*)$# #');
subst_body('#a=sendrecv(.*)$# #');
}
Content-Type: application/sdp
Content-Length: 325
P-hint: outbound
v=0
o=root 3048 3048 IN IP4 xxx.xxx.xxx.xxx
s=session
c=IN IP4 xxx.xxx.xxx.xxx
b=CT:384
t=0 0
m=audio 11904 RTP/AVP 0 8 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
As you can see the m=video body has been removed, however, calls are still
failing. Is there something i have missed?
I am using Kamailio v3.2.2
Thanking you in advance!
Phillip
[View Less]
As per the instructions here... http://www.kamailio.org/w/2012/07/websockets
...I downloaded the latest source from Git...
http://www.kamailio.org/w/download/
...but I don't see any mention of Websocket anywhere in the source. I
suspect I didn't actually download the development tree, but the 3.3
branch.
Last time I messed with any VoIP code was in 2008 (OpenSER and
Asterisk) and now I'm starting all over again. I apologize for the
dumb newbie question, but how do I test the Websocket code?
…
[View More]--
Juan Carlos Castro y Castro
Instant Solutions - Telefonia Gerando Resultado
http://www.instant.com.br
Principais capitais: 4063-6100
Demais regiões: (11)4063-6100
[View Less]
Hello.
After upgrade kamailio and db, lcr module bad routing if entered *any
value*to from_uri column in lcr_rule table:
mysql> select * from lcr_rule where id=5;
+----+--------+--------+-------------------------------+-------------+---------+---------+
| id | lcr_id | prefix | from_uri | request_uri |
stopper | enabled |
+----+--------+--------+-------------------------------+-------------+---------+---------+
| 5 | 1 | yyyy | sip:x[xx]\d{2}@xxx.xxx.xx.xx | …
[View More]NULL |
0 | 1 |
+----+--------+--------+-------------------------------+-------------+---------+---------+
and load_gw(...) skip this rule, in log:
INFO: lcr [lcr_mod.c:1493]: skipping disabled <gw/rule> = <1/5>
If remove value from 'from_ui' - rule enabled and all work.
Why is turned off rule ?
Linux Debian squeeze, upgraded from "deb
http://deb.kamailio.org/kamailiosqueeze main"
--
"В связи с отсутствием интереса общественности, конец света отменяется" (с)
?
С Уважением, Механошин Алексей
[View Less]
Hi,
I've followed the tutorial on kab.asipto.com for presence using built-in
xcap server. http://kb.asipto.com/kamailio:presence:k31-made-simple
I'm using Kamailio version 3.3.1 and did minor changes in modparams and
rtpproxy function calls and the kamailio accepted the configurations file
posted on the page and started.
But the problem is that I don't get the presence status of the contacts
still. Please suggest what to look for and how to troubleshoot this.
I get this error on Jitsi - …
[View More]image attached.
ERROR: "http://ip.of.server/xcap-root/xcap-caps/global/index resource can
not be read"
Regards,
Sammy
[View Less]
Hello, guys.
What is the best tool for crafting sip messages for testing purpose? For
example, simple REGISTER or INVITE message. I'm new to kamailio (not sip)
so it would be great for me to use debbuger module for step-by-step digging
into cfg.
Hi,****
** **
I encountered a problem. While doing some avp's settings I notice that one
avp that I use is changing to <null> without me doing anything.****
** **
Here is the part of the cfg file:****
………….****
………….****
Route[SET]{****
…………..****
$avp(Sfeaturetype)=$avp(next_feature_type);****
…………****
Route(DIDSRV);****
}****
** **
route[DIDSRV] {****
xlog("L_CRIT","$C(rg) SCRIPT: in DIDSRV type = $avp(Sfeaturetype), index =
$avp(SfeatureIndx) $C(xx)\n");****
if($var(…
[View More]srvcount)>3){****
xlog("L_NOTICE","$C(rg)Too many services loops $C(xx)\n");****
update_stat("nts_subs_srv_loop", "+1");****
$avp(TRMCS)="10";****
t_reply(403,"too many loops");****
exit;****
}****
$var(srvcount)=($var(srvcount)+1);****
xlog("L_CRIT","$C(rg) SCRIPT: in DIDSRV before switch to $avp(SfeatureType)
or $avp(next_feature_type) $C(xx)\n");****
switch ($avp(SfeatureType)){****
case "0" :****
……….****
………****
** **
On the route "SET" I put the value from the $avp(next_feature_type) in
$avp(Sfeaturetype).****
After that I call the route "DIDSRV" and use switch($avp(Sfeaturetype)).
Before the switch I xlog the value of the avp twice.****
As you can see in the log below, on the first xlog print, the value is 0
(as I expect). On the second print it resets to <null>****
WHY?****
** **
Log:****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: <core>
[mem/q_malloc.c:413]: qm_malloc(0x7fe6f9aff000, 72) returns address
0x7fe6fcc4d330 frag. 0x7fe6fcc4d300 (size=72) on 1 -th hit****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: CRITICAL: <script>:
#033[0;31;42m SCRIPT: before DIDSRV type = 0, index = 8888888889
#033[0;39;49m****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: CRITICAL: <script>:
#033[0;31;42m SCRIPT*: in DIDSRV type = 0*, index = 8888888889
#033<8888888889%C2%A0%20%23033>
[0;39;49m****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: <core>
[mem/q_malloc.c:369]: qm_malloc(0x7fe7ff765010, 848) called from <core>:
rvalue.c: rval_new_empty(236)****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: <core>
[mem/q_malloc.c:413]: qm_malloc(0x7fe7ff765010, 848) returns address
0x7fe7ff8f25b0 frag. 0x7fe7ff8f2580 (size=1232) on 1 -th hit****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: <core>
[mem/q_malloc.c:437]: qm_free(0x7fe7ff765010, 0x7fe7ff8f25b0), called from
<core>: rvalue.c: rval_destroy(141)****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: <core>
[mem/q_malloc.c:461]: qm_free: freeing frag. 0x7fe7ff8f2580 alloc'ed from
<core>: rvalue.c: rval_new_empty(236)****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: CRITICAL: <script>:
#033[0;31;42m SCRIPT*: in DIDSRV before switch to <null>* or 0 #033[0;39;49m
****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: <core>
[mem/q_malloc.c:369]: qm_malloc(0x7fe7ff765010, 928) called from <core>:
rvalue.c: rval_new_empty(236)****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: <core>
[mem/q_malloc.c:413]: qm_malloc(0x7fe7ff765010, 928) returns address
0x7fe7ff8f25b0 frag. 0x7fe7ff8f2580 (size=1232) on 1 -th hit****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: <core>
[mem/q_malloc.c:437]: qm_free(0x7fe7ff765010, 0x7fe7ff8f25b0), called from
<core>: rvalue.c: rval_destroy(141)****
Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: <core>
[mem/q_malloc.c:461]: qm_free: freeing frag. 0x7fe7ff8f2580 alloc'ed from
<core>: rvalue.c: rval_new_empty(236)
[View Less]