Hello Again,<br><br>Is it possible to use AVP with DB integration? That is, storing the variable to a file on the server. Thanks.<br><br><br><div><span class="gmail_quote">On 7/31/06, <b class="gmail_sendername">Greg Fausak
</b> &lt;<a href="mailto:lgfausak@gmail.com">lgfausak@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mark,<br>
<br>I think that is what Klaus was suggesting.<br><br>First, copy the 'To' URI into an AVP (this holds the value)<br>Then, copy the AVP to the RURI (request URI).&nbsp;&nbsp;It's a two<br>step process.<br><br>I agree with Klaus, this is weird :-)&nbsp;&nbsp;But, entirely doable.
<br><br>-g<br><br><br>On 7/31/06, Mark Anthony C. Delfin &lt;<a href="mailto:markanthonycdelfin@gmail.com">markanthonycdelfin@gmail.com</a>&gt; wrote:<br>&gt; Hello Klaus,<br>&gt;<br>&gt; Thanks for the reply. Is it possible to rewrite the request URI based from
<br>&gt; the TO header for calls to be forwarded there?<br>&gt;<br>&gt;<br>&gt;<br>&gt; On 7/31/06, Klaus Darilion &lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt; wrote:<br>&gt; &gt; Hi Mark!
<br>&gt; &gt;<br>&gt; &gt; First, routing based on the To header violates the RFC3261, and is<br>&gt; &gt; usually an indicator that either your setup or your SIP hardware is<br>&gt; &gt; non-optimal.<br>&gt; &gt;<br>&gt; &gt; If you still want to do it, you can copy the URI in the To header in an
<br>&gt; &gt; AVP (check the list of available pseudo variables, there is a pseudo<br>&gt; &gt; variable for the To URI I guess) with avp_write. Then push this AVP into<br>&gt; &gt; the request URI using avp_pushto.<br>&gt; &gt;
<br>&gt; &gt; regards<br>&gt; &gt; klaus<br>&gt; &gt;<br>&gt; &gt; Mark Anthony C. Delfin wrote:<br>&gt; &gt; &gt; Hello Guys,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Just like to request assistance in trying to figure out how can I route
<br>&gt; &gt; &gt; the call from SER as seen on TO header. Below is the snippet of the sip<br>&gt; log:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;0(20457) DEBUG: get_hdr_field: &lt;To&gt; [34]; uri=[<br>&gt; &gt; &gt; 
sip:8810844@24.90.219.179:8700]<br>&gt; &gt; &gt;&nbsp;&nbsp;0(20457) DEBUG: to body [&lt;sip:8810844@24.90.219.179:8700&gt;<br>&gt; &gt; &gt; ]<br>&gt; &gt; &gt;&nbsp;&nbsp;0(20457) get_hdr_field: cseq &lt;CSeq&gt;: &lt;1154241348&gt; &lt;INVITE&gt;
<br>&gt; &gt; &gt;&nbsp;&nbsp;0(20457) DEBUG:maxfwd:is_maxfwd_present: value = 70<br>&gt; &gt; &gt;&nbsp;&nbsp;0(20457) DBG:maxfwd:process_maxfwd_header: value 70<br>&gt; decreased to 16<br>&gt; &gt; &gt;&nbsp;&nbsp;0(20457) check_via_address(<a href="http://10.10.10.21">
10.10.10.21</a> &lt;<a href="http://10.10.10.21">http://10.10.10.21</a>&gt;,<br>&gt; &gt; &gt; <a href="http://10.10.10.21">10.10.10.21</a> &lt;<a href="http://10.10.10.21">http://10.10.10.21</a>&gt;, 0)<br>&gt; &gt; &gt;&nbsp;&nbsp;0(20457) Sending:
<br>&gt; &gt; &gt; INVITE <a href="mailto:sip:8810844@10.10.10.86">sip:8810844@10.10.10.86</a> &lt;mailto:<a href="mailto:sip">sip</a>:<a href="mailto:8810844@10.10.10.86">8810844@10.10.10.86</a>&gt; SIP/2.0<br>&gt; &gt; &gt; Via: SIP/2.0/UDP 
<a href="http://10.10.10.86">10.10.10.86</a> &lt;<a href="http://10.10.10.86">http://10.10.10.86</a> &gt;;branch=0<br>&gt; &gt; &gt; Via: SIP/2.0/UDP <a href="http://10.10.10.21">10.10.10.21</a> &lt;<a href="http://10.10.10.21">
http://10.10.10.21</a>&gt;<br>&gt; &gt; &gt; ;branch=z9hG4bK13666f91365343<br>&gt; &gt; &gt; From: &lt;sip:2589@mandela&gt;;tag=cba-0094-44cc5343<br>&gt; &gt; &gt; To: &lt;sip:8810844@24.90.219.179:8700&gt;<br>&gt; &gt; &gt; Call-ID:
<br>&gt; <a href="mailto:317e120dd2385173-0094-44cc5343-282c@10.10.10.21">317e120dd2385173-0094-44cc5343-282c@10.10.10.21</a><br>&gt; &gt; &gt; &lt;mailto:<br>&gt; <a href="mailto:317e120dd2385173-0094-44cc5343-282c@10.10.10.21">
317e120dd2385173-0094-44cc5343-282c@10.10.10.21</a>&gt;<br>&gt; &gt; &gt; CSeq: 1154241348 INVITE<br>&gt; &gt; &gt; Contact: &lt;<a href="mailto:sip:2589@10.10.10.21">sip:2589@10.10.10.21</a> &lt;mailto:<a href="mailto:sip">
sip</a>: <a href="mailto:2589@10.10.10.21">2589@10.10.10.21</a>&gt;&gt;<br>&gt; &gt; &gt; Date: Sun, 30 Jul 2006 06:35:47 GMT<br>&gt; &gt; &gt; User-Agent: BRSIP v2.0.0.11<br>&gt; &gt; &gt; Max-Forwards: 16<br>&gt; &gt; &gt; Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, SUBSCRIBE, NOTIFY
<br>&gt; &gt; &gt; Allow-Events: keep-alive, message-summary<br>&gt; &gt; &gt; Supported: timer<br>&gt; &gt; &gt; Session-Expires: 1800<br>&gt; &gt; &gt; Min-SE: 600<br>&gt; &gt; &gt; Expires: 300<br>&gt; &gt; &gt; Content-Type: application/sdp
<br>&gt; &gt; &gt; Content-Length: 220<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; v=0<br>&gt; &gt; &gt; o=BRSDP 177 177 IN IP4 <a href="http://10.10.10.21">10.10.10.21</a> &lt;<a href="http://10.10.10.21">http://10.10.10.21</a>&gt;
<br>&gt; &gt; &gt; s=BRSDP Session<br>&gt; &gt; &gt; c=IN IP4 <a href="http://10.10.10.21">10.10.10.21</a> &lt;<a href="http://63.116.254.21">http://63.116.254.21</a> &gt;<br>&gt; &gt; &gt; t=0 0<br>&gt; &gt; &gt; m=audio 15000 RTP/AVP 4 18 101
<br>&gt; &gt; &gt; a=rtpmap:4 G723/8000<br>&gt; &gt; &gt; a=rtpmap:18 G729/8000<br>&gt; &gt; &gt; a=rtpmap:101 telephone-event/8000<br>&gt; &gt; &gt; a=fmtp:101 0-15<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I need SER to send the call based on the TO HEADER URI seen on
<br>&gt; &gt; &gt; get_hdr_field. This value changes depending on what another sip proxy is<br>&gt; &gt; &gt; sending to the SER. The t_relay is not working as i like it to behave.<br>&gt; &gt; &gt; Any help is greatly appreciated. Thanks in advance.
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Users mailing list<br>&gt; &gt; &gt; <a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt; &gt; &gt; <a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users
</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt; <a href="http://openser.org/cgi-bin/mailman/listinfo/users">
http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;<br>&gt;<br>&gt;<br><br><br>--<br>Greg Fausak<br><a href="mailto:greg@thursday.com">greg@thursday.com</a><br></blockquote></div><br>