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

2013-08-25 Thread SamyGo
Yes indeed it is everything that I wanted to get. Thanks alot for the quick route. On Sun, Aug 25, 2013 at 10:13 PM, Vitaliy Aleksandrov < vitalik.v...@gmail.com> wrote: > AFAIK there is no any single pv that provides a destination for both sip > message types (request/reply). > As you can see

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

2013-08-25 Thread Vitaliy Aleksandrov
AFAIK there is no any single pv that provides a destination for both sip message types (request/reply). As you can see from my example $sel(next_hop.host) contains dst only for sip requests. To know where kamailio is going to send a reply you can check the second VIA header parameters like receiv

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

2013-08-25 Thread SamyGo
Thanks Vitaliy, That seems working, I am testing with it..it's great. Can I ask if there is any psuedo variable for this thing ! Best Regards, Sammy On Sat, Aug 24, 2013 at 3:10 PM, Vitaliy Aleksandrov wrote: > How about next config snippet: > > *route[GET_NEXT_HOP]** > **{** > **$var(ne

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