How about next config snippet:
/route[GET_NEXT_HOP]//
//{//
//$var(next_hop) = $null;//
//if (is_request()) {//
//$var(next_hop) = $sel(next_hop.host);//
//} else if (is_reply()) {//
// if ($sel(via[2].received) != $null)//
//$var(next_hop) = $sel(via[
Dear list,
Its just a little thing to ask but I somehow can't seem to figure out which
psuedo variable to use to find out where a particular 200 OK is destined to
go.
the scenario is I've multiple media servers in dispatcher and calls are
distributed. I need to capture a 200OK that is destined to
Hi -
Can someone help me understand how pseudo-variables interact with branches?
I've written this logic in my failure route to do a reroute of calls if the
primary destination fails:
if ( is_method("INVITE") && !t_check_status("407") && ($rd !=
"127.0.0.1") ) {
# Maybe s
Hello, I've tried to configure *Websockets *server in *Kamailio *(i've
installed kamailio with these steps:
http://www.kamailio.org/wiki/install/4.0.x/git), but I think that is *not
working*,
because when trying to connect to the *Websockets* server in *JsSip *
http://tryit.jssip.net/ says:
Hello Alex, thank you. So this is what I have:
if (is_method("INVITE")) {
xlog("L_DBG", "LOG: INVITE in PSTN route\n");
$var(new_uri) = "sip:"+ "88" +"@home.otv.net:5060";
uac_replace_from("","$var(new_uri)");
xlog("L_DBG", "L
First register is OK, but after 60 seconds time to update register,
kamailio after 401 Unauthorized
dont send second register with Authorization.
In log i see only ERROR: uac [uac_reg.c:537]: uac_reg_tm_callback():
authentication failed for
mysql> select * from uacreg;
++--+--