Difference between revisions of "OpenSER dengan Backend Asterisk"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: right|200px|thumb) |
Onnowpurbo (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Image:Asterisk-openser.jpg|right|200px|thumb]] | [[Image:Asterisk-openser.jpg|right|200px|thumb]] | ||
+ | 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 | ||
+ | allowexternalinvite=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== | ||
+ | |||
+ | * [[OpenSER Softswitch]] | ||
+ | * [[VoIP]] |
Latest revision as of 11:17, 13 March 2008
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 allowexternalinvite=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; }