Great. Thanks for the info.<br>
<br>
One more question. Since a call can be forwarded to another SIP phone
or to a PSTN phone, I need to determine how to route the REFER message.<br>
<br>
So would I basically do something like this:<br>
<br>
route {<br>
<br>
if (method=='REFER') {<br>
<br>
if (!regeristered("location")) {<br>
rewritehostport("xxx.xxx.xxx.xxx"); # IP of the PSTN gateway<br>
}<br>
<br>
t_relay();<br>
}<br>
}<br>
<br>
<br>
Regards,<br>
Paul<br><br><div><span class="gmail_quote">On 6/1/05, <b class="gmail_sendername">Marian Dumitru</b> <<a href="mailto:marian.dumitru@voice-sistem.ro">marian.dumitru@voice-sistem.ro</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 Paul,<br><br>Just two comments:<br><br>1) the message shouldn't be RURI driven, but ROUTE driven, so it<br>shouldn't hit location.<br><br>2) Refer-to URI shouldn't be used for routing the REFER - this header<br>will tell to the destination user which user to contact/refer.
<br><br>Regards,<br>Marian<br><br>Java Rockx wrote:<br>> Hi All.<br>><br>> I've got a question about handling REFER messages. Below is a REFER<br>> message that my Grandstream GXP2000 phone generated when I transferred a
<br>> call to another SIP phone on the same SER proxy.<br>><br>> The problem is that SER did a lookup('location') and couldn't find the<br>> phone number in the subscriber table, so it routed the message to the
<br>> PSTN gateway.<br>><br>> SER should have looked at the Refer-To header to get the actual<br>> destination of the message.<br>><br>> How can I get SER to handle this message correctly? Should REFER<br>
> messages hit the lookup('location') function in my ser.cfg script?<br>><br>> NOTE: my SER proxy sits behind a Cisco 3600 so the ALG functionality has<br>> altered the IP. The message shows my SER server as IP address
<a href="http://10.3.0.221">10.3.0.221</a><br>> <<a href="http://10.3.0.221">http://10.3.0.221</a>><br>><br>> Regards,<br>> Paul<br>><br>> U 2005/06/01 14:22:24.073518 <a href="http://66.90.46.29:5060">
66.90.46.29:5060</a> <<a href="http://66.90.46.29:5060">http://66.90.46.29:5060</a>><br>> -> <a href="http://10.3.0.221:5060">10.3.0.221:5060</a> <<a href="http://10.3.0.221:5060">http://10.3.0.221:5060</a>
><br>> REFER sip:4075552279@66.243.109.99:5060 SIP/2.0.<br>> Via: SIP/2.0/UDP <a href="http://172.31.130.139">172.31.130.139</a><br>> <<a href="http://172.31.130.139">http://172.31.130.139</a>>;branch=z9hG4bK09ff837994d9e898.
<br>> Route: <sip:4075552279@10.3.0.221:5060;nat=yes;ftag=204ed7cd9666ebba;lr>.<br>> Route: <sip:<a href="http://216.229.127.60:5060">216.229.127.60:5060</a> <<a href="http://216.229.127.60:5060">http://216.229.127.60:5060
</a>>;lr>.<br>> From: 3212514238 <sip:3212514238@66.243.109.99:5060>;tag=204ed7cd9666ebba.<br>> To: <a href="mailto:sip:4075552279@66.236.245.100">sip:4075552279@66.236.245.100</a><br>> <mailto:<a href="mailto:sip">
sip</a>:<a href="mailto:4075552279@66.236.245.100">4075552279@66.236.245.100</a>>;tag=EB25EC-B85.<br>> Contact: <<a href="mailto:sip:3212514238@172.31.130.139">sip:3212514238@172.31.130.139</a><br>> <mailto:
<a href="mailto:sip">sip</a>:<a href="mailto:3212514238@172.31.130.139">3212514238@172.31.130.139</a>>>.<br>> Supported: replaces.<br>> Refer-To: <<a href="mailto:sip:3212814820@sip.mycompany.com">sip:3212814820@sip.mycompany.com
</a><br>> <mailto:<a href="mailto:sip">sip</a>:<a href="mailto:3212814820@sip.mycompany.com">3212814820@sip.mycompany.com</a>>>.<br>> Referred-By: <<a href="mailto:sip:3212514238@172.31.130.139">sip:3212514238@172.31.130.139
</a><br>> <mailto:<a href="mailto:sip">sip</a>:<a href="mailto:3212514238@172.31.130.139">3212514238@172.31.130.139</a>>>.<br>> Call-ID: <a href="mailto:13195134-3326638548-685571@66.243.109.99">13195134-3326638548-685571@66.243.109.99
</a><br>> <mailto:<a href="mailto:13195134-3326638548-685571@66.243.109.99">13195134-3326638548-685571@66.243.109.99</a>>.<br>> CSeq: 51906 REFER.<br>> User-Agent: Grandstream GXP2000 <a href="http://1.0.1.8">
1.0.1.8</a> <<a href="http://1.0.1.8">http://1.0.1.8</a>>.<br>> Max-Forwards: 70.<br>> Allow:<br>> INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK.<br>> Content-Length: 0.<br><br>--
<br>Voice System<br><a href="http://www.voice-system.ro">http://www.voice-system.ro</a><br></blockquote></div><br>