Just remember that with that config, SIP users can't start with '9',
otherwise they will be treated like a PSTN number. Like "N." said..
it's just a simple example, but it works.<br>
<br>
Jose Simoes<br><br><div><span class="gmail_quote">On 3/13/06, <b class="gmail_sendername">sip</b> &lt;<a href="mailto:sip@arcdiv.com">sip@arcdiv.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;">
For the most BASIC of possible setups, you'd need to set up some sort of rule<br>in SER to forward calls to the gateway....<br><br>if(method==&quot;INVITE&quot;)<br>{<br>&nbsp;&nbsp; if(uri =~ &quot;^sip9.*@.*&quot;)<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewritehostport(&quot;ipofmediatrix:port&quot;);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!t_relay())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sl_reply_error();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};<br>&nbsp;&nbsp;&nbsp;&nbsp;};<br>};<br><br><br>Of course, you'll want to couch that in some sort of authentication block to<br>ensure that people who aren't authorised can't use the PSTN gateway for
<br>calls...&nbsp;&nbsp;but that is the basic stuff.&nbsp;&nbsp;Check for a URI starting with 9, and<br>send it to the mediatrix.<br><br>It can get as complex as you'd like it, though... :)<br><br>N.<br><br><br>On Mon, 13 Mar 2006 16:02:44 -0700, McAvan, Troy-P29897 wrote
<br>&gt; I am trying to obtain information on how to set up SIP SER so that a<br>&gt; SIP phone can call a PSTN phone. I do have a Mediatrix gateway. The<br>&gt; sip user would need to dial 9 and then the phone number to go to the
<br>&gt; PSTN. If someone could explain this to me in very simple terms, it<br>&gt; would be greatly appreciated.<br>&gt;<br>&gt; Thanks,<br>&gt; Troy<br>&gt;<br>&gt; _______________________________________________<br>&gt; Serusers mailing list
<br>&gt; <a href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a><br>&gt; <a href="http://lists.iptel.org/mailman/listinfo/serusers">http://mail.iptel.org/mailman/listinfo/serusers</a><br><br>_______________________________________________
<br>Serusers mailing list<br><a href="mailto:serusers@lists.iptel.org">Serusers@iptel.org</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br></blockquote></div>
<br>