NuFone is out of business this page is of historical interest only.
This is a very generic setup used to dial out from Nufone and to ring a SIP extension on incoming calls. The code is made entirely of excerpts of the configuration files, and need the remaining portions of the files to be useful. As a side note, NuFone provides detailed tutorials within their members portal.
Please keep each example in its own separate box in order to keep each example separate.
Replace any host= information and the server portion of the register line if the settings provided to you are different.
iax.conf
Under the general context:
register => username:[email protected]
[NuFone]
type=peer
host=switch-1.nufone.net
secret=password
[NuFone]
type=user
secret=password
context=DID-incoming
extensions.conf For incoming calls
[DID-incoming]
;Replace nufonenumber with the number assigned to you, 10 digits only. This extension line will ring SIP
;extension 2001 for 60 seconds then hang up. Modify as necessary to fit your dialplan
exten => nufonenumber,1,Dial(SIP/2001,60,tr)
exten => nufonenumber,2,hangup
extensions.conf For outgoing calls:
[toll-trunks]
; Outbound 9,1-nxx-nxx-xxxx goes via NuFone. Replace nufonenumber with the 10 digit number
; assigned to you. If an error occurrs, you will be given the congestion tone. Be sure to include the toll-trunks
; context to your dialing context
exten => _91NXXNXXXXXX,1,SetCallerID(nufonenumber)
exten => _91NXXNXXXXXX,2,Dial(IAX2/username@NuFone/${EXTEN:1})
exten => _91NXXNXXXXXX,3,Congestion
Note: When you set the CallerID above, make sure it is a valid US48 number, ie of the format xxx-yyy-zzzz
where xxx is the area code and yyy-zzzz is your local telephone number. If you do not have a valid
US48 number, you can use 248-748-0700. You may not be able to call toll-free numbers if you do not set the
CallerID correctly.
See also