Asterisk settings nufone
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.
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:password@switch-2.nufone.net
[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.
iax.conf
Under the general context:
register => username:password@switch-2.nufone.net
[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
- Asterisk sample scripts
- Asterisk | Tips & Tricks | FAQ

Comments
333DMARK
If I supported a customer's asterisk box and it was their issue, I'd send them a bill.... this will become more of a practice as more businesses like NuFone start poping up....
If it's their problem I agree they need to take responsibility... PERIOD... but if it's yours DON'T COMPLAIN
333Service impression so far
I read that post below about problems with their conference bridge. They don't seem to offer a conference bridge any more. They DO offer PSTN-failover, where if your Asterisk link goes down inbound calls are forwarded to some arbitrary phone number. Call quality seems good, and I haven't had any technical problems with them yet. I'm thinking that 'severe problems' poster should have been more specific: it sounds like they didn't have any problems with call quality, so no technical problems with the provided service. It sounds like there were problems setting up new services, and problems interacting with a human. So there were customer service problems.
It seems to me if they're offering call termination for these kinds of rates, they probably can't afford high-maintenance customers. I'll try not to be one. :-)
333Re: Lamer
333Re: Configuration that works with AMP
333Configuration that works with AMP
Haven't had any problems with NuFone, hence I've never experienced their customer service.
However, here's a PEER configuration that works a bit better for me (even using AMP):
IAX.CONF
NuFone
host=switch-1.nufone.net
secret=
type=peer
username=
EXTENSIONS.CONF
exten => _1NXXNXXXXXX,1,Dial(IAX2/NuFone/${EXTEN})
With this setup, your NuFone username won't show up in the logs, and you're able to use i.e. Asterisk@Home and AMP to configure the trunk.
333Re: Severe problems with NuFone service
333Re: Lamer
Wouldnt it be easier to just edit the "firiend" to "peer". Would have been five keystrokes for you and two button clicks. This is a WiKi, after all, right. That way, no one else will make the mistake. Most will not read the "comments". Suggesting gun violence is certainly not what this country needs anyting more of, huh. It is not funny.
333nufone config
iax.conf:
NuFone
type=peer
host=switch-1.nufone.net
secret=urpasswd
extensions.conf:
exten => _1NXXNXXXXXX,1,Dial,IAX2/NuFoneUser@NuFone/${EXTEN}
and/or for International dialing
exten => _011N.,1,Dial,IAX2/NuFoneUser@NuFone/${EXTEN}
(:eek:)
333Re: Lamer
Maybe someone who is a user can fix it.
333Severe problems with NuFone service
First, I signed up by making a PayPal payment per the website. It took several days for a response and detials on my account. I took this in stride as many of these obscure VoIP services are startups that one must be patient with.
I had some problems when I first configured my Asterisk service whereby I reported the issue to NuFone. There were some voicemails back and forth (and some late night calls, even though I told them in my vmail I was in Amsterdam) but finally we connected. The individual in tech support was extremely helpful, logged into my server and found a stupid mistake I had made. They had redeemed themselves and I was impressed. Short lived it was...
I used the service to make US domestic calls and all worked fine. Although, when I tried to dial international the calls would not go through. I reported the problem to NuFone and received a response back that I had a 'non-standard Asterisk config' and would therefore be charged 85 Euros/hour for any assistance. And yet thereafter, without any changes on my configuration, the internationoal calls started completing. Therefore I presume NuFone must have changed account settings on their side enabling international calls, but they never responded with any details on this.
Meanwhile, as part of the package I was promised a conference bridge number for use with my account. This was not delivered and I had to chase NuFone to configure the service. After several days it was completed with a simple mailbox/conference room number (ie - no PIN - more on this later).
Then, I noticed that they were billing me differently than the NuFone package I had signed up for, see this post:
http://www.broadbandreports.com/forum/remark,10885337~mode=flat
I sent 4 emails before I got a response. The response was snide and said they had responded to all of my email and fixed the problem. Indeed I logged and I was now receiving the '1000 minutes' as promised, as opposed to be charged for individual calls at the basic rates. I challenged NuFone that they had not been emailing me with the responses and that this was poor customer service and that a snide reponse was unacceptable.
But in return they sent me the emails they claimed to have sent (albiet without any dates/times/headers of the emails, just basic text) to my inquiries. Upon one of my responses to these emails I received an SMTP timeout a day later, and yet they did not acknowledge any email problems...
Meanwhile, NuFone began to become openly hostile at my complaints about the fact that:
1. They did not provide my conferencing service and I had to chase them
2. They had not provisioned me for the package I had clrealy signed up for (1000 flat minutes, etc)
3. They were unresponse to customer care inquiries
Indeed, they have threatened to 'fire' me as a customer of their service (I have emails showing this). As of now I have yet to see such arrogance from any vendor globally...
Further, NuFone have now accused me of abusing their conferencing servides that they provided to me. As of today, I have placed one phone call to the bridge for 10 seconds to test the number and room number. And then I get this from NuFone:
"I turned up conference room XXXX and within an hour there was 5 people using it via our toll-free number." - NuFone
I had given this number to no one, further I have no idea which toll free number (they had provided a toll number, which I used for the test) could be used to access it. Therefore this number is absolutely useless as a conferencing bridge, as evidently miscellaneous people are logging into the number anyway. Since when did PIN numbers become obsolete?
So, in summary, NuFone is an arrogant service provider that provisions services wrong, does not respond to inquiries and then treats customers as if they were a nusance. If this is the quality of service you are looking for, then by all means sign-up for their service. (The other commment in here from Jeremy of new phone "Lamer" about sums up their attitude towards service.)
Then, in the end, after complaining that I had not abused their service and that they obviously had security issues I got a one line email:
"Your fired" - NuFone
But, they did refund my entire PayPall payment. So got some free calls for my troubles while I had the service.