From 00asgaroth00@gmail.com Fri Mar 11 03:17:53 2011 From: Asgaroth <00asgaroth00@gmail.com> To: sr-users@lists.kamailio.org Subject: [SR-Users] pseudo variables available in on_reply route Date: Fri, 11 Mar 2011 02:17:42 +0000 Message-ID: <4D798646.2040509@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1841919199==" --===============1841919199== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi All, I have a requirement to perform some processing based on the source and destination addresses on a message in on_reply route. I can get source ip address using $si pseudo variable, but I cant seem to access the destination ($dd). Is there any way I can access destination ip/domain of message in on_reply route? Thanks for any tips. --===============1841919199==-- From abalashov@evaristesys.com Fri Mar 11 03:37:45 2011 From: Alex Balashov To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] pseudo variables available in on_reply route Date: Thu, 10 Mar 2011 21:37:38 -0500 Message-ID: <4D798AF2.4000904@evaristesys.com> In-Reply-To: <4D798646.2040509@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0023594672==" --===============0023594672== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 03/10/2011 09:17 PM, Asgaroth wrote: > Is there any way I can access destination ip/domain of message in > on_reply route? Are you actually talking about the destination set, or the domain part of the request uri? If the latter, check out $rd and $rp. -- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/ --===============0023594672==-- From 00asgaroth00@gmail.com Fri Mar 11 04:04:16 2011 From: Asgaroth <00asgaroth00@gmail.com> To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] pseudo variables available in on_reply route Date: Fri, 11 Mar 2011 03:04:03 +0000 Message-ID: <4D799123.4000705@gmail.com> In-Reply-To: <4D798AF2.4000904@evaristesys.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0805582659==" --===============0805582659== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi Alex, On 11/03/2011 02:37, Alex Balashov wrote: > Are you actually talking about the destination set, or the domain part > of the request uri? If the latter, check out $rd and $rp. I'm looking for the domain part of the destination uri. I have the following reply route defined: onreply_route[REPLY_ONE] { xlog("REPLY_ONE : $rm : R-URI=$ru\n"); xlog("REPLY_ONE : $rm : D-URI=$du\n"); xlog("REPLY_ONE : $rm : Request Domain=$rd\n"); xlog("REPLY_ONE : $rm : Request Port=$rp\n"); xlog("REPLY_ONE : $rm : Destination Domain=$dd\n"); } The output I get from the above is as follows: [17344]: ERROR: