OpenSER dengan Backend Asterisk

From OnnoWiki
Revision as of 11:08, 12 March 2008 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search
Asterisk-openser.jpg

Kita dapat menggabungkan beberapa mesin asterisk di belakang sebuah Server OpenSER.


Persiapan di sisi Asterisk

Siapkan dan Edit /etc/asterisk/sip.conf

# vi /etc/asterisk/sip.conf

Pastikan

[general]
allowguest=yes


Persiapan di sisi OpenSER

Siapkan dan Edit file /etc/openser/openser.cfg

Lakukan rewrite untuk nomor-nomor yang ada di Asterisk. Misalnya ke nomor 600 di arahkan ke asterisk server yang berlokasi di 192.168.0.3:5060

if (uri=~"sip:600@.*") {
       rewritehostport("192.168.0.3:5060");
       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