Difference between revisions of "Relay ke Selular Menggunakan OpenSIPS"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: Berikut adalah contoh sederhana cara merelay ke Selular. Asumsi yang digunakan. * ATA Berada di IP address 192.168.0.200 port 5061. # attempt handoff to PSTN if (uri=~"^sip:08[0-9]*@...) |
Onnowpurbo (talk | contribs) |
||
Line 3: | Line 3: | ||
* ATA Berada di IP address 192.168.0.200 port 5061. | * ATA Berada di IP address 192.168.0.200 port 5061. | ||
+ | ==Dari Semua Domain== | ||
+ | # attempt handoff to PSTN | ||
+ | if (uri=~"^sip:08[0-9]*@*") { | ||
+ | rewritehostport( "192.168.0.200:5061"); ## 192.168.0.3:5061 adalah Analog Telepon Adapter (ATA) | ||
+ | route(1); | ||
+ | }; | ||
+ | |||
+ | ==Hanya dari mydomain.com== | ||
# attempt handoff to PSTN | # attempt handoff to PSTN | ||
Line 10: | Line 18: | ||
route(1); | route(1); | ||
}; | }; | ||
− | |||
− | |||
− | |||
==Pranala Menarik== | ==Pranala Menarik== |
Revision as of 05:57, 20 January 2010
Berikut adalah contoh sederhana cara merelay ke Selular. Asumsi yang digunakan.
- ATA Berada di IP address 192.168.0.200 port 5061.
Dari Semua Domain
# attempt handoff to PSTN if (uri=~"^sip:08[0-9]*@*") { rewritehostport( "192.168.0.200:5061"); ## 192.168.0.3:5061 adalah Analog Telepon Adapter (ATA) route(1); };
Hanya dari mydomain.com
# attempt handoff to PSTN if (uri=~"^sip:08[0-9]*@mydomain.com") { ## Asumsinya caller register ke mydomain.com rewritehostport( "192.168.0.200:5061"); ## 192.168.0.3:5061 adalah Analog Telepon Adapter (ATA) route(1); };