No incoming or outgoing w/ Bandwidth.com

I’m using a bandwidth.com SIP trunk, but haven’t been able to make any calls inbound or outbound.

I do believe that my calls are hitting the SIP trunk, but my configuration is off.

When I call my cell phone from my test softphone, it appears that it’s following the dial rules, but just sits there when it hits “–Called trunk_1/+CELLPHONENUMBER”

Here’s the error when I call in from my cell phone:
[Apr 30 16:06:06] NOTICE[4565] chan_sip.c: Call from ‘’ to extension ‘+19402204525’ rejected because extension not found.

Any idea as to what’s up? Thanks.

For outbound calls to bandwidth.com make sure your caller id is in this format:
+1XXXXXXXXXX just like the format for sending the digits.

For inbound calls from bandwidth.com you need to have a match for the number +19402204525 in the context where calls come in from bandwidth.com

Thanks for the reply. I’ve just changed my caller ID in the service provider dialog to +1MYNUMBER, and I’ve done the same thing on the inbound route, but it’s still not working. However, when calling on my cell phone, after a very long silence my softphone will ring, but when I pick it up, there’s only silence. I’m not sure if I’m just getting one way sound, since I don’t have a microphone to plug into my computer at the moment, but I will test that as soon as I get a mic. Any other ideas?

Here’s a little update. After a little more fiddling, My softphone now rings just fine, with no delay, but there is no sound from my cell phone.

As for outbound calls, the softphone just sits there until it eventually gives up, and the asterisk box cites “congestion” as the reason. Hope this helps.

YET ANOTHER UPDATE: Internal calls work perfectly.

Here is a link to info from bandwidth.com on using Asterisk with their service. Although it is not specificall for *NOW, if you feel comfortable editing the config files, it will work, at least it did for me.

bandwidth.com/wiki/article/C … dwidth.com

do you have the right number prefix setting for the trunk? please show us your extensions.conf

Also could you post a “sip set debug ip x.x.x.x” I use bandwidth and the ip is 216.82.224.202. Could you post your trunk config as well? here is mine:

[trunk_8]                                                  
allow = all                                                
context = DID_trunk_8                                      
hasexten = no                                              
hasiax = no                                                
hassip = yes                                                 
host = 216.82.224.202                                      
provider = bandwidth                                       
registeriax = no                                           
registersip = no                                           
trunkname = Bandwidth_pri
trunkstyle = voip                                          
usecallerid = yes                                          
fromuser = +13015555555

Thanks for the tips everyone. I’ll try to take all of these into account. I’ve been swamped with other assignments and this is just a test deal, so I’ll get to this ASAP. I’m also probably going to reinstalling with AsteriskNOW, just to make everything more streamlined. Thanks again everybody and I’ll post back my results soon. :smiley:

Alright. I’ve reinstalled using AsteriskNOW and I’m running into the same problems. Now my trunk isn’t even hitting the Asterisk box. I don’t know what’s up. I have Bandwidth.com chosen in my service providers, and all of my incoming and outgoing settings are set to what I believe is correct. Here is my extensions.conf that ya’ll have requested. Hopefully you guys can dig something from this.

  [general]
  static=yes
  writeprotect=no
  autofallthrough=yes
  clearglobalvars=no
  priorityjumping=no
  [globals]
  trunk_1=SIP/trunk_1
  trunk_1_cid=+19402204525
  [dundi-e164-canonical]
  
  [dundi-e164-customers]
  
  [dundi-e164-via-pstn]
  
  [dundi-e164-local]
  include=dundi-e164-canonical
  include=dundi-e164-customers
  include=dundi-e164-via-pstn
  [dundi-e164-switch]
  switch=DUNDi/e164
  [dundi-e164-lookup]
  include=dundi-e164-local
  include=dundi-e164-switch
  [macro-dundi-e164]
  exten=s,1,Goto(${ARG1},1)
  include=dundi-e164-lookup
  [iaxtel700]
  exten=_91700XXXXXXX,1,Dial(IAX2/${IAXINFO}@iaxtel.com/${EXTEN:1}@iaxtel)
  [iaxprovider]
  
  [trunkint]
  exten=_9011.,1,Macro(dundi-e164,${EXTEN:4})
  exten=_9011.,n,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
  [trunkld]
  exten=_91NXXNXXXXXX,1,Macro(dundi-e164,${EXTEN:1})
  exten=_91NXXNXXXXXX,n,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
  [trunklocal]
  exten=_9NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
  [trunktollfree]
  exten=_91800NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
  exten=_91888NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
  exten=_91877NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
  exten=_91866NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
  [international]
  ignorepat=9
  include=longdistance
  include=trunkint
  [longdistance]
  ignorepat=9
  include=local
  include=trunkld
  [local]
  ignorepat=9
  include=default
  include=parkedcalls
  include=trunklocal
  include=iaxtel700
  include=trunktollfree
  include=iaxprovider
  [macro-stdexten]
  exten=s,1,Dial(${ARG2},20)
  exten=s,2,Goto(s-${DIALSTATUS},1)
  exten=s-NOANSWER,1,Voicemail(${ARG1},u)
  exten=s-NOANSWER,2,Goto(default,s,1)
  exten=s-BUSY,1,Voicemail(${ARG1},b)
  exten=s-BUSY,2,Goto(default,s,1)
  exten=_s-.,1,Goto(s-NOANSWER,1)
  exten=a,1,VoicemailMain(${ARG1})
  [macro-stdPrivacyexten]
  exten=s,1,Dial(${ARG2},20|p)
  exten=s,2,Goto(s-${DIALSTATUS},1)
  exten=s-NOANSWER,1,Voicemail(u${ARG1})
  exten=s-NOANSWER,2,Goto(default,s,1)
  exten=s-BUSY,1,Voicemail(b${ARG1})
  exten=s-BUSY,2,Goto(default,s,1)
  exten=s-DONTCALL,1,Goto(${ARG3},s,1)
  exten=s-TORTURE,1,Goto(${ARG4},s,1)
  exten=_s-.,1,Goto(s-NOANSWER,1)
  exten=a,1,VoicemailMain(${ARG1})
  [macro-page]
  exten=s,1,ChanIsAvail(${ARG1}|js)
  exten=s,n,GoToIf([${AVAILSTATUS} = "1"]?autoanswer:fail)
  exten=s,n(autoanswer),Set(_ALERT_INFO="RA")
  exten=s,n,SIPAddHeader(Call-Info: Answer-After=0)
  exten=s,n,NoOp()
  exten=s,n,Dial(${ARG1}||)
  exten=s,n(fail),Hangup
  [demo]
  exten=s,1,Wait(1)
  exten=s,n,Answer
  exten=s,n,Set(TIMEOUT(digit)=5)
  exten=s,n,Set(TIMEOUT(response)=10)
  exten=s,n(restart),BackGround(demo-congrats)
  exten=s,n(instruct),BackGround(demo-instruct)
  exten=s,n,WaitExten
  exten=2,1,BackGround(demo-moreinfo)
  exten=2,n,Goto(s,instruct)
  exten=3,1,Set(LANGUAGE()=fr)
  exten=3,n,Goto(s,restart)
  exten=1000,1,Goto(default,s,1)
  exten=1234,1,Playback(transfer,skip)
  exten=1234,n,Macro(stdexten,1234,${CONSOLE})
  exten=1235,1,Voicemail(u1234)
  exten=1236,1,Dial(Console/dsp)
  exten=1236,n,Voicemail(u1234)
  exten=#,1,Playback(demo-thanks)
  exten=#,n,Hangup
  exten=t,1,Goto(#,1)
  exten=i,1,Playback(invalid)
  exten=500,1,Playback(demo-abouttotry)
  exten=500,n,Dial(IAX2/guest@misery.digium.com/s@default)
  exten=500,n,Playback(demo-nogo)
  exten=500,n,Goto(s,6)
  exten=600,1,Playback(demo-echotest)
  exten=600,n,Echo
  exten=600,n,Playback(demo-echodone)
  exten=600,n,Goto(s,6)
  exten=76245,1,Macro(page,SIP/Grandstream1)
  exten=_7XXX,1,Macro(page,SIP/${EXTEN})
  exten=7999,1,Set(TIMEOUT(absolute)=60)
  exten=7999,2,Page(Local/Grandstream1@page&Local/Xlite1@page&Local/1234@page/n|d)
  exten=8500,1,VoicemailMain
  exten=8500,n,Goto(s,6)
  [page]
  exten=_X.,1,Macro(page,SIP/${EXTEN})
  [default]
  exten=980,1,VoiceMailMain
  exten=7000,1,Goto(voicemenu-custom-1|s|1)
  [voicemenu-custom-1]
  include=default
  comment=Welcome
  alias_exten=7000
  exten=s,1,Answer
  exten=s,2,Wait(1)
  exten=s,3,Background(thank-you-for-calling)
  exten=s,4,Background(if-u-know-ext-dial)
  exten=s,5,Background(otherwise)
  exten=s,6,Background(to-reach-operator)
  exten=s,7,Background(pls-hold-while-try)
  exten=s,8,WaitExten(6)
  [numberplan-custom-1]
  plancomment=DialPlan1
  include=default
  include=parkedcalls
  exten=_91XXXXXXXXXX!,1,Macro(trunkdial,${trunk_1}/+1${EXTEN:1},${trunk_1_cid})
  comment=_91XXXXXXXXXX!,1,Longdistance,standard
  exten=_911!,1,Macro(trunkdial,${trunk_1}/+1${EXTEN:0},${trunk_1_cid})
  comment=_911!,1,911,standard
  exten=_9XXXXXXX!,1,Macro(trunkdial,${trunk_1}/+1${EXTEN:1},${trunk_1_cid})
  comment=_9XXXXXXX!,1,Local,standard
  exten=_9011XXXXXXX!,1,Macro(trunkdial,${trunk_1}/+1${EXTEN:1},${trunk_1_cid})
  comment=_9011XXXXXXX!,1,International,standard
  [macro-trunkdial]
  exten=s,1,set(CALLERID(all)=${IF($["${LEN(${CALLERID(num)})}" > "6"]?${CALLERID(all)}:${ARG2})})
  exten=s,n,Dial(${ARG1})
  exten=s,n,Goto(s-${DIALSTATUS},1)
  exten=s-NOANSWER,1,Hangup
  exten=s-BUSY,1,Hangup
  exten=_s-.,1,NoOp
  [asterisk_guitools]
  exten=executecommand,1,System(${command})
  exten=executecommand,n,Hangup()
  exten=record_vmenu,1,Answer
  exten=record_vmenu,n,Playback(vm-intro)
  exten=record_vmenu,n,Record(${var1})
  exten=record_vmenu,n,Playback(vm-saved)
  exten=record_vmenu,n,Playback(vm-goodbye)
  exten=record_vmenu,n,Hangup
  exten=play_file,1,Answer
  exten=play_file,n,Playback(${var1})
  exten=play_file,n,Hangup
  [DID_trunk_1]
  include=default