However, in order for a foreign station to call your local station without any knowledge of your network you must configure the SIP equivalent of a traditional PSTN trunk.
Step 1
Many instructions on the Internet have you adding a register entry in sip.conf to allow incoming calls. However, using the GUI in version 1.4 this is done in users.conf (registersip). We did this when we first set up our SIP trunk in Step 5 so there is no need to modify the
register =>line in sip.conf.
Step 2
We must make a context to handle incoming calls. If you recall from step 5 in the previous post there was an entry added to extensions.conf
[DID_trunk_1]Let's complete the entry by launching the GUI and navigating to Incoming Calls.
Click on Add an Incoming Rule and fill in the following fields:
Route: All unmathed incoming calls
from Provider: Custom FWD_SIP
to exentions: whatever_local_extension_you_want
Click Save and Activate Changes
extensions.conf will have the following entry added:
[DID_trunk_1]
include = default
exten = _X.,1,Goto(default|6003|1)
exten = s,1,Goto(default|6003|1)
I chose extension 6003 to receive my FWD calls.
Step 3
The final step is to edit sip.conf. Look for the
[sip_proxy]entry and edit the following lines:
[sip_proxy]
; For incoming calls only. Example: FWD (Free World Dialup)
; We match on IP address of the proxy for incoming calls
; since we can not match on username (caller id)
type=peer
context=DID_trunk_1
host=fwd.pulver.com
If you use the Call Me feature of FWD you can check to see if the extension you assigned rings.
Note: I'm a little confused why I couldn't designate trunk_1 in users.conf to accept incoming calls. Perhaps a kind reader would leave a comment about that! It seems that if I can configure outgoing calls in users.conf, I should be able to receive these calls without having to edit sip_proxy.
1 comment:
Highly еnergetic blog, I enjоyed that a lot.
Post a Comment