Difference between revisions of "Relay ke Selular Menggunakan OpenSIPS"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 5: | Line 5: | ||
==Dari Semua Domain== | ==Dari Semua Domain== | ||
− | # attempt handoff to | + | # attempt handoff to Selular |
if (uri=~"^sip:08[0-9]*@*") { | if (uri=~"^sip:08[0-9]*@*") { | ||
rewritehostport( "192.168.0.200:5061"); ## 192.168.0.200:5061 adalah [[Analog Telepon Adapter]] ([[ATA]]) | rewritehostport( "192.168.0.200:5061"); ## 192.168.0.200:5061 adalah [[Analog Telepon Adapter]] ([[ATA]]) | ||
Line 13: | Line 13: | ||
==Hanya dari mydomain.com== | ==Hanya dari mydomain.com== | ||
− | # attempt handoff to | + | # attempt handoff to Selular |
if (uri=~"^sip:08[0-9]*@mydomain.com") { ## Asumsinya caller register ke mydomain.com | if (uri=~"^sip:08[0-9]*@mydomain.com") { ## Asumsinya caller register ke mydomain.com | ||
rewritehostport( "192.168.0.200:5061"); ## 192.168.0.200:5061 adalah [[Analog Telepon Adapter]] ([[ATA]]) | rewritehostport( "192.168.0.200:5061"); ## 192.168.0.200:5061 adalah [[Analog Telepon Adapter]] ([[ATA]]) |
Revision as of 10:09, 21 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 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); };
Hanya dari mydomain.com
# attempt handoff to Selular if (uri=~"^sip:08[0-9]*@mydomain.com") { ## Asumsinya caller register ke mydomain.com rewritehostport( "192.168.0.200:5061"); ## 192.168.0.200:5061 adalah Analog Telepon Adapter (ATA) route(1); };