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