Hello
I'm doing a project where I need to route using dispatcher across multiple groups. i.e. when the customer makes a call, the "core" server makes a request to cgrates to get back a list of carriers that support that, and then want to work through them in order of preference.
e.g. the string we get back from cgrates via evapi might be "2,1,3". i.e. try all Group 2 destinations, then group 1, then group 3.
Each of these is then a dispatcher group (with multiple dispatcher routes in each group).
When the call then gets to the "Group 2" server that in turn is also using dispatcher to handle multiple destinations, and if all of those destinations fail, it returns a 503 to the "core", which is then meant to try "Group 1", and so on.
The documentation on this is a bit sparse, but what I think I am meant to do (at the core level) is use ds_select_routes to load up the list of groups (https://kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatcher.…)
if(ds_select_routes("2=4;1=4;3=4", "d", "0"))
{
t_on_failure("REROUTE");
t_relay();
exit;
}
and then in my failure_route, if the error code is 503 I call ds_next_domain, e.g.
failure_route[REROUTE] {
if(t_check_status("503")) {
if(ds_next_domain()) {
t_on_failure("REROUTE");
t_relay();
exit;
}
}
}
My problem is, that in applying theory to practice, I have ended up with a bunch of looping and it's not working right!
Does anyone have an example code for such a scenario?
many thanks
peter
How do I test connectivity of a SIP address? Is there a "time" or
"echo" type SIP address to call or message?
I'm just using a free address from onsip.com
thanks,
Nick
Hello List,
i read Daniels Presentation
https://www.kamailio.org/events/2018-KamailioWorld/Day0/W07-Daniel-Constant…
and there is an hint about python(2/3) - that kemi script reloading is not
supported with python kemi scripts.
Is that correct for the actual versions (5.3.x and 5.4.x)?
And if i use for example lua as kemi script language, how i restart that
script only?
Drop in a new file and thats it (like FreeSWITCH did that)?
Thanks in advance
Cheers
Karsten
--
*Karsten Horsmann*
I want to deploy dual-stack kamailio and config file in need use in one
place IPv4 kamailio IP address and in another place I want to use IPv6
address.
Could I get something like $HN(i4) and $HN(i6)?
Hi guys,
We have SIP Server > Kamailio > webrtc client. The only call flow we have
is SIP server calling kamailio tha sends the call to webrtc client. We set
up TOPOH to hide the sip server info but once the sip server initiates the
call we still have the FROM details identifying SIP Server IP address.
We couldn't find a way to mask this ip using TOPOH. What would be the best
way to hide the sip server IP address in this case?
Thanks a lot!
Andre
Hello list,
Hope you are all well.
Under some load test simulations I've been facing cases where the command
Kamailio sends to RTPEngine times out with such message:
send_rtpp_command(): timeout waiting reply for command "" from RTP proxy
After checking RTPEngine logs, I can see the command was received and a
reply was sent, so I am thinking the reply packet could have been lost
somewhere in the network (they are in different servers). So my question
is, how resilient is the RTPEngine NG protocol to handle packet loss
situations? I saw TCP is not supported, so are there UDP retransmissions in
place to guarantee packet delivery? Any ideas to make this connection more
reliable?
Kind regards,
Thank you,
Patrick Wakano
Hello everyone. I have an issue with presence server within kamailio
cluster(round-robin DNS, I'm using registrar Path scenario)
So, when both of users are located at the same server - everything works
fine. But when user which is SUBSCRIBED through another one server -
presence module is ignoring path column into usrloc - that leads NAT
traversal impossible...
So, I've tried using DMQ for handle this:
I executed dmq_t_replicate()before each PUBLISH message - in that case I
was able to get PUBLISH on each of server in cluster. But BLF lamps are
confusing in that case - because a lot of notifies coming to the device at
the same time with different dialog states....
Guys, I need a help. Any Ideas how I can handle this?
Best regards,
Zhan
--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html
Hi,
I am configuring kamailio IMS as kubernetes pods .
so each component will be configured as separate pod .
In order to establish a connection between pods , I am configuring bind9
dns server in pcscf pod itself. Communication is happening via Pod IP
address.
Is there any possibility to have the communication using cluster IP . If
anybody is aware of kubernetes, Please help me in this regard.
I have my /etc/resolv.conf file in pods with
nameserver <clusterIP>
search <cluster-dns-domain-name>
Please help.
Thanks,
Pavithra
Dear Team,
I am unable to play media file on caller/callee. I am using
rtpproxy_stream2uas/rtproxy_stream2uac to play media file.
RTPProxy put on remote machine. Kamailio server are on another machine. When
do call media relay by rtpproxy well. Now it is fine.
But issue when hold the call by caller try to play moh to callee by
rtpproxy_stream2uas("/media/moh.wav" ,"-1") getting following error by
RTPProxy.
DBUG:GLOBAL:rtpp_command_split:396: received command "6920_4 P-1
f954ba62f373b86cMTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI. /media/moh.wav
session aee3e27066a043e19f73cbff37e50689;1 904c5107;1"
rtpproxy[10858]:
DBUG:f954ba62f373b86cMTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI.:rtpp_strea
m_handle_play:376: rtpp_server_ctor("/media/moh.wav", 8, -1) failed
rtpproxy[10858]:
DBUG:f954ba62f373b86cMTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI.:rtpp_strea
m_handle_play:376: rtpp_server_ctor("/media/moh.wav", 101, -1) failed
rtpproxy[10858]:
ERR:f954ba62f373b86cMTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI.:rtpp_stream
_handle_play:405: can't create player: rtpp_server_ctor() failed
rtpproxy[10858]: DBUG:GLOBAL:rtpc_doreply:192: sending reply "E60\n"
rtpproxy[10858]: DBUG:GLOBAL:rtpp_command_split:396: received command
"6920_5 P-1 f954ba62f373b86cMTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI.
/media/moh.wav session 904c5107;1 aee3e27066a043e19f73cbff37e50689;1"
rtpproxy[10858]:
DBUG:f954ba62f373b86cMTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI.:rtpp_strea
m_handle_play:376: rtpp_server_ctor("/media/moh.wav", 0, -1) failed
rtpproxy[10858]:
DBUG:f954ba62f373b86cMTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI.:rtpp_strea
m_handle_play:376: rtpp_server_ctor("/media/moh.wav", 8, -1) failed
rtpproxy[10858]:
DBUG:f954ba62f373b86cMTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI.:rtpp_strea
m_handle_play:376: rtpp_server_ctor("/media/moh.wav", 101, -1) failed
rtpproxy[10858]:
ERR:f954ba62f373b86cMTg0YzVlODc0NTBiZGU1ZGJiYmNmYjY1MDc0MjIwMzI.:rtpp_stream
_handle_play:405: can't create player: rtpp_server_ctor() failed
rtpproxy[10858]: DBUG:GLOBAL:rtpc_doreply:192: sending reply "E60\n"
Kamailio version:5.4 and
rtpproxy version : 2.2.alpha.029f88a4
I am not understand what is being wrong here. Where is fault.? This issue
taken my lot of time. I am very much worried.
any one please tell what is solution? how can I overcome this problem.
Regards
Amit