很怕原始網址消失 所以趕緊把操作步驟存下來
Pre-requisites:
This should show that your dongle is connected to whatever network your SIM belongs to.
Now to the actual setup:
In Freepbx:
1) Click Connectivity –> Trunks -> Add Custom Trunk.
My config was E169 on raspbx(raspberry pi) using an AT&T SIM card in the USA.
Pre-requisites:
1) Verify your dongle is in the supported list by raspbx/chan_dongledongle show device state dongle0
2) Voice is enabled on the dongle (using dc-locker tool)
3) follow steps per http://www.raspberry-asterisk.org/documentation/gsm-voip-gateway-with-chan_dongle/
4) connect to raspbx, type asterisk -r and type
This should show that your dongle is connected to whatever network your SIM belongs to.
Now to the actual setup:
In Freepbx:
1) Click Connectivity –> Trunks -> Add Custom Trunk.
a) Provide a trunk name2) Click Connectivity -> Outbound routes
b) set Outbound CallerID to the number of your SIM
c) set Custom Dial String field to dongle/dongle0/$OUTNUM$
d) set the match pattern in the first row under Dialed Number Manipulation Rules to
NXXNXXXXXX (do not change anything in other fields in that row).
e) Submit changes
f) Apply config
a) Provide a route name3) Click Applications -> Generic SIP device
b) set the third column in first row of Dial Patterns that will use this Route to
NXXNXXXXXX (this is the field before / and 1st of the fields in [ and ])
c) select the trunk created in step 1 above under Trunk Sequence for Matched Routes for
row 0
a) Set extension number4) Click Connectivity -> Inbound routes
b) Set Display name
c) Set password for secret field under Device Options
d) Set nat to Yes for nat field under Device Options (needed if your SIP extension is
out of your home network or behind a firewall)
e) Submit
f) Apply config
a) Provide a name/Description
b) Select Extensions and select your SIP extension created in Step 3 above.
c) Submit
d) Apply config
5) Click Settings -> Asterisk SIP settingsAt this point, you should be able to connect your SIP client to your raspbx within the home network. Make sure it works fine before you actually try to access raspbx from other networks.
a) set NAT to yes (if needed)
b) set proper IP configuration values
c) Submit changes
d) Apply config
My config was E169 on raspbx(raspberry pi) using an AT&T SIM card in the USA.