本帖最後由 ckleea 於 2011-6-10 07:35 編輯
It is just standard code we quote before.
[pstn-spa3k-d1]
type = peer
secret = your password
username = your username
host = ipaddress or host name e.g. within the same lan 192.168.1.xx or internet address
fromuser = your username
port = 5061
dtmfmode = rfc2833
qualify = yes
nat = yes
context = default
disallow = all
allow = g729
allow = ulaw
allow = alaw
In extensions.conf just the usual one stage dial plan
in sip show peers, I have
pstn-spa3k-d6/ckleea xxx.xxx.xxx.xxx N 5062 OK (302 ms)
pstn-spa3k-d1/cklee xxx.xxx.xxx.xxx N 5062 OK (294 ms)
Latency 都唔小,遲D試清楚話質。 |