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