Relay ke PSTN Menggunakan OpenSER: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs) No edit summary |
Onnowpurbo (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
Berikut adalah contoh sederhana cara merelay ke PSTN. Asumsi yang digunakan. | Berikut adalah contoh sederhana cara merelay ke PSTN. Asumsi yang digunakan. | ||
* ATA Berada di IP address 192.168.0. | * ATA Berada di IP address 192.168.0.200 port 5061. | ||
# attempt handoff to PSTN | # attempt handoff to PSTN | ||
if (uri=~"^sip: | if (uri=~"^sip:021[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); | |||
}; | }; | ||
Latest revision as of 04:29, 23 April 2008
Berikut adalah contoh sederhana cara merelay ke PSTN. Asumsi yang digunakan.
- ATA Berada di IP address 192.168.0.200 port 5061.
# attempt handoff to PSTN if (uri=~"^sip:021[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); };