Difference between revisions of "OpenSER Routing"

From OnnoWiki
Jump to navigation Jump to search
Line 26: Line 26:
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 +
* [[OpenSER Softswitch]]
 
* [[VoIP]]
 
* [[VoIP]]

Revision as of 10:52, 12 March 2008

Beberapa tip routing sederhana

Untuk mengarahkan ke semua nomor 08* ke PSTN Gateway, yang misalnya berada di alamat 192.168.0.95:5061. Lakukan perintah


if(uri=~"sip:08[0-9]+@*")
{
   # forward ke PSTN gateway di 192.168.0.95:5061
   rewritehostport("192.168.0.95:5061");
   route(1);
}
route[1] {
       # send it out now; use stateful forwarding as it works reliably
       # even for UDP2TCP
       if (!t_relay()) {
               sl_reply_error();
       };
       exit;
}




Pranala Menarik