Difference between revisions of "OpenSIPS: Demo Dial Plan"

From OnnoWiki
Jump to navigation Jump to search
(New page: Edit vi /usr/local/etc/opensips/opensips.cfg Isi loadmodule "enum.so" modparam("enum", "domain_suffix", "e164.id.") modparam("enum", "i_enum_suffix", "e164.id.") # attempt hando...)
 
 
(4 intermediate revisions by the same user not shown)
Line 32: Line 32:
  
 
==Pranala Menarik==
 
==Pranala Menarik==
 +
 +
* [[OpenSIPS]]
 +
* [[OpenSIPS Softswitch]]
 +
* [[Compile OpenSIPS]]
 +
* [[OpenSIPS: Cek Konfigurasi]]
 +
* [[OpenSIPS: Demo Dial Plan]]
 +
* [[Menggunakan opensipsdbctl]]
 +
* [[Menggunakan opensipsctl]]
 +
* [[Konfigurasi minimal OpenSIPS]]
 +
* [[OpenSIPS: Demo User]]
 +
* [[Relay ke PSTN Menggunakan OpenSIPS]]
 +
* [[Relay ke Selular Menggunakan OpenSIPS]]
 +
* [[ENUM Query di OpenSIPS]]

Latest revision as of 06:04, 31 December 2013

Edit

vi /usr/local/etc/opensips/opensips.cfg 

Isi

loadmodule "enum.so"
modparam("enum", "domain_suffix", "e164.id.")
modparam("enum", "i_enum_suffix", "e164.id.")
# attempt handoff to PSTN
if (uri=~"^sip:021[0-9]*@*") {
     rewritehostport( "192.168.0.200:5061");  ##  192.168.0.200:5061 adalah Analog Telepon Adapter (ATA)
     route(1);
     };

# attempt handoff to Selular
if (uri=~"^sip:08[0-9]*@*") {
     rewritehostport( "192.168.0.200:5061");  ##  192.168.0.200:5061 adalah Analog Telepon Adapter (ATA)
     route(1);
     };

if (uri=~"^sip:00[1-9][0-9]*@*") {
    strip(2);
    prefix("+");
}; 

if (uri=~"sip:\+[0-9]+@*")
        enum_query("e164.id.");


Pranala Menarik