Re: [SR-Users] Finding Destination IP:Port for 200 OK

2013-08-24 Thread Vitaliy Aleksandrov
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[

[SR-Users] Finding Destination IP:Port for 200 OK

2013-08-24 Thread SamyGo
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

[SR-Users] Pseudo-variables and branches

2013-08-24 Thread Steve Davies
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

[SR-Users] Websockets problem in Kamailio

2013-08-24 Thread Ruben Antunes
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:

Re: [SR-Users] Change "from user "

2013-08-24 Thread arun Jayaprakash
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

[SR-Users] UAC module fails to refresh registrations

2013-08-24 Thread neumann
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; ++--+--