<html><head><style type="text/css">body {word-wrap: break-word; background-color:#ffffff;}</style></head><body><div style="font-family: sans-serif; font-size: 16px">Thanks for your help Alex!<br><br><br><font face="sans-serif"><span style="font-size: 14px"><i><font color="#333333">Connected by DROID on Verizon Wireless</font></i></span></font></div><br><br>-----Original message-----<br><blockquote style="; border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: sans-serif; font-size: 14px"><b>From: </b>Alex Balashov &lt;abalashov@evaristesys.com&gt;<b><br>To: </b>sr-users@lists.sip-router.org<b><br>Sent: </b>Sat, Jan 28, 2012 17:40:37 GMT+00:00<b><br>Subject: </b>Re: [SR-Users] Using forward(); with PVs<br><br></div>On 01/28/2012 12:35 PM, Spencer Thomason wrote:<br><br>> I'm experiencing some difficulty using forward with PVs. If the IP<br>> and port are specified directly everything works but if I use PVs<br>> for the values startup fails with a configuration error. What I'm<br>> trying to do is statelessly forward an OPTIONS request to a B2BUA<br>> that sits behind Kamailio without hard coding the address into the<br>> configuration file. Is there a better way to accomplish this?<br><br>Yet another quirk;  many legacy core functions do not support PV <br>arguments, because they hark back to the days before PVs existed.  :-)<br><br>Just use the request URI to guide the request:<br><br>    $rd = "xxx.xxx.xxx.xxx";<br>    $rp = 5060;<br><br>    forward();<br><br>Like t_relay(), by default, forward() will consume the RURI for <br>routing on the network and transport level as well.<br><br>-- <br>Alex Balashov - Principal<br>Evariste Systems LLC<br>260 Peachtree Street NW<br>Suite 2200<br>Atlanta, GA 30303<br>Tel: +1-678-954-0670<br>Fax: +1-404-961-1892<br>Web: <a href="http://www.evaristesys.com">http://www.evaristesys.com</a>/<br><br>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>sr-users@lists.sip-router.org<br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br><br></blockquote></body></html>