ถ้าไ่ม่ผิด ก็ต้องมองอุปกรณ์พวกนี้เป็น trunks ครับ
ที่
http://www.voipsupply.com/product_info.php?products_id=1692 ผมเห็นมีัตัวอย่างการ config เอาไว้
sip.conf SettingsThe SPA400 needs the account name to match the value specified in the SPA400 User ID configuration field. The entry in sip.conf should look like the following:
[general]
register= spa400@192.168.1.109This email address is being protected from spam bots, you need Javascript enabled to view it /spa400
Substitute spa400 for the value entered in the SPA400 User ID field and replace 192.168.1.109 with the actual IP address of the SPA400.
Then create a SIP entry for the SPA400.
* user: the SPA400 User ID field value
* host: the IP address of the SPA400
* context: the context that should handle inbound calls from the SPA400
It should look like the following:
[spa400]
type=friend
user=spa400
host=192.168.1.109
dtmfmode=rfc2833
canreinvite=no
context=from-trunk
insecure=very
extension.conf SettingsConfigure your dial-out routing to utilize the spa400.
A generic dial-out route (dial 9 to get a SPA400 FXO trunk) would look like:
[general]
DIAL_OUT = 9
DIALOUTIDS = 2/
OUTCID_2 =
OUTMAXCHAINS_2 = 4
OUTPREFIX_2 =
OUT_2 = SIP/spa400
Inbound routing is more complex, but could look something like this (forward all calls to extension 200):
[from-trunk]
include => from-pstn
...
[from-pstn]
include=> from-pstn-custom
...
[from-pstn-custom]
exten=>spa400,1,Goto(ext-local,200,1)