[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    Re: [SR-Users] Using forward(); with PVs
From:       "Spencer Thomason"<spencer () 5ninesolutions ! com>
Date:       2012-01-28 17:58:37
Message-ID: bcb55cd4-69fb-4497-8383-93159463fdfc () blur
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks for your help Alex!


Connected by DROID on Verizon Wireless

-----Original message-----
From: Alex Balashov <abalashov@evaristesys.com>
To: sr-users@lists.sip-router.org
Sent: Sat, Jan 28, 2012 17:40:37 GMT+00:00
Subject: Re: [SR-Users] Using forward(); with PVs

On 01/28/2012 12:35 PM, Spencer Thomason wrote:

> I'm experiencing some difficulty using forward with PVs. If the IP
> and port are specified directly everything works but if I use PVs
> for the values startup fails with a configuration error. What I'm
> trying to do is statelessly forward an OPTIONS request to a B2BUA
> that sits behind Kamailio without hard coding the address into the
> configuration file. Is there a better way to accomplish this?

Yet another quirk;  many legacy core functions do not support PV 
arguments, because they hark back to the days before PVs existed.  :-)

Just use the request URI to guide the request:

    $rd = "xxx.xxx.xxx.xxx";
    $rp = 5060;

    forward();

Like t_relay(), by default, forward() will consume the RURI for 
routing on the network and transport level as well.

-- 
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/

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



[Attachment #5 (text/html)]

<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>



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic