Hi,
I wants to remove media type "image" from SDP. For that I have tried to
use KSR.sdpops.remove_media but it is not working. Not working in the sense
that there is no effect of that function on SDP. I am using lua. Kindly
find more details below.
*Kamailio version*: kamailio 5.2.5 (x86_64/linux) 62d35f
*SDP to process:*
INVITE sip:xxxxxxxxxx@xxxxxxxxx.com:5060 SIP/2.0
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK-60823-1-0
From: xxxxxxxxxx <sip: xxxxxxxxxx@ xxxxxxxxxx.com:5060>;tag=xxxxx
To: xxxxxxxxxx <sip: xxxxxxxxxx@ xxxxxxxxxx.com:5060>
Call-ID: 1-60823(a)172.16.19.64
CSeq: 1 INVITE
Contact: sip:xx@xxxxxxx:5060
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: 337
v=0
o=zt 53655765 2353687637 IN IP4 xxx.xxx.xxx.xxx
s=-
c=IN IP4 xxx.xxx.xxx.xxx
t=0 0
m=image xxxx RTP/AVP udptl t38
a=sendrecv
a=T38FaxVersion:0
a=T38MaxBitRate:14400
a=T38FaxRateManagement:transferredTCF
a=T38FaxMaxBuffer:262
a=T38FaxMaxDatagram:176
a=T38FaxUdpEC:t38UDPRedundancy
m=audio xxxx RTP/AVP 0
a=rtpmap:0 PCMU/8000
*Code snippet:*
KSR.sdpops.remove_media("image")
logger.log("info", "SDP:" .. headers.get("$sdp(body)"))
*Log snippet:*
https://pastebin.com/5JZmQUfq
One more thing I would like to mention that if I do not use dialog module
then the function KSR.sdpops.remove_media works. But I can not avoid using
dialog module.
Thanks in advance.
Mitesh
Hi all
I'm trying to set a dialog timeout when a call is established:
event_route[dialog:start] {
if(dlg_set_timeout("10")) {
xinfo("10 secs");
}
}
But when the time expired I obtain this error:
Jan 3 11:24:20 test /usr/sbin/kamailio[18436]: CRITICAL: dialog
[dlg_timer.c:199]: update_dlg_timer(): Trying to update a bogus dlg
tl=0x93947b30 tl->next=(nil) tl->prev=(nil)
Jan 3 11:24:20 test /usr/sbin/kamailio[18436]: ERROR: dialog
[dlg_hash.c:1267]: update_dlg_timeout(): failed to update dialog lifetime
# kamailio -v
version: kamailio 5.3.1 (i386/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, 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
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: unknown
compiled with gcc 6.3.0
Any idea?
Thanks and Happy New Year
Dear friends,
I am working on a program on Kamailio and rtpengine proxy. I am wondering whether can I set Kamailio and rtpengine daemon on different physical machines. For example, I set Kamailio on a machine with IP address:10.109.247.80, and launch rtpengine daemon on another machine with interface parameter as 10.109.247.90 and ng port 7723. I set parameter in Kamailio.cfg with modparam(“rtpengine”, “rtpengine_sock”, “udp:10.109.247.90:7723”).
Unfortunately I got debug message like this:
ERROR: rtpengine [rtpengine.c:1710]: send_rtpp_command(): can't send command to a RTP proxy
ERROR: rtpengine [rtpengine.c:1746]: send_rtpp_command(): proxy <udp:10.109.247.90:7723> does not respond, disable it
ERROR: rtpengine [rtpengine.c:1616]: rtpp_test(): proxy did not respond to ping
And, I also tried to set Kamailio and rtpengine daemon in a same machine,and use modparam(“rtpengine”, “rtpengine_sock”, “udp:localhost:7723”). And Kamailio can work functionally under this situation. rtpengine daemon can receive ping message from Kamailio and rtpengine daemon can work as suspected. So for the later case, is it supposed that Kamailio be in the same machine with same localhost address? Otherwise, what’s the reason for my ERROR?
------------------------------------
北京邮电大学网络技术研究院
网络与交换技术国家重点实验室
田军
+86 18810315790
mozillafire(a)bupt.edu.cn
------------------------------------
Hi,
I am using rtjson module to do some call routing, as part of that I've added an additional section to the document to include authentication information.
I am using the uac_auth function from within failure_route to send authentication on to the uri. This works fine... however.
When the initial invite is sent, the To/From headers are updated as per the rtjson document. This isn't the case however when the uac_auth function re-sends the invite with the digest header. The original to/from are being sent.
I am using the dialog module
restore_mode = auto
restore_dlg = 1
I assume there is something I need to call, but none of the RTJSON functions seem to be available within failure_route. Any pointers as to where I am going wrong would be greatly appreciated.
Thanks in advance.
Ben
failure_route[TRUNKAUTH] {
if (t_is_canceled()) {
exit;
}
if(t_check_status("401|407")) {
$avp(auser) = $avp(s:authUser);
$avp(apass) = $avp(s:authPass);
uac_auth();
t_relay();
exit;
}
}