Configuring Asterisk and Budgetphone.nl

After having spend quite a few days to get Asterisk working with Budgetphone, I have found the answer: The information on budgetphone.nl was simply wrong. Please feel free to copy my configuration!

This is the sip.conf:

[sourcecode language=”bash”]
[general]
disallow=all
allow=ilbc
allow=gsm
allow=alaw

context=default
bindport=5060
bindaddr=0.0.0.0
;externip=93.x.x.x
srvlookup=no

register => 31100000000:[email protected]/31100000000
register => voipbustergebruikersnaam:[email protected]

[31100000000]
type=friend
host=sip1.budgetphone.nl
fromuser=31100000000
username=31100000000
secret=budgetphonewachtwoord
qualify=no
fromdomain=sip1.budgetphone.nl
context=inbound
;port=5060
insecure=port,invite

[voipbuster]
type=peer
username=voipbustergebruikersnaam
secret=voipbusterwachtwoord
host=sip.voipbuster.com
fromuser=voipbustergebruikersnaam
fromdomain=sip.voipbuster.com
;auth=md5
context=da-isdn
canreinvite=no
disallow=all
allow=gsm
allow=alaw
allow=ulaw

[1001]
type=friend
context=phones
host=dynamic
canreinvite=no
qualify=yes
secret=password
nat=yes
[email protected]
;callerid=Dennis <1001>
setvar=MYCALLERID=0107000000
disallow=all
allow=alaw
allow=gsm
allow=ulaw
[/sourcecode]

This is the extensions.conf.

[sourcecode language=”bash”]
[general]
static=yes
writeprotect=no
autofallthrough=no
clearglobalvars=no

[inbound]
exten => 31100000000,1,Verbose(1,*** Budgetphone Inbound Call! ***)
exten => 31100000000,n,Playback(silence/1)
exten => 31100000000,n,Playback(vm-dialout)
exten => 31100000000,n,Playback(silence/1)
exten => 31100000000,n,Dial(SIP/1001,25)
exten => 31100000000,n,VoiceMail([email protected],u) ;

always specify which voicemail context
exten => 31100000000,n,Hangup()

exten => s,1,Verbose(1,*** Incoming Call! *** )
exten => s,2,Dial(SIP/1001,25)
exten => s,3,Voicemail([email protected],u) ;
exten => s,103,Voicemail([email protected],b) ;

[outbound]
;exten => _0XXXX.,1,NoOp(My Caller ID is ${MYCALLERID})
;exten => _0XXXX.,n,Set(CALLERID(num)=${MYCALLERID})

exten => _00XXXX.,1,Dial(SIP/${EXTEN}@voipbuster)
exten => _0XXXX.,1,Dial(SIP/${EXTEN}@31100000000)

[internal]
exten => 101,1,Answer()
exten => 101,n,Playback(tt-monkeys)
exten => 101,n,Hangup()

exten => _XXX,1,Dial(SIP/${EXTEN},25) ; 5 rings or 25,000 ms rings if
exten => _XXX,2,Voicemail(${EXTEN}@default,u) ; unavailable message
exten => _XXX,103,Voicemail(${EXTEN}@default,b) ; busy message
exten => _XXXX,1,Dial(SIP/${EXTEN},25) ; 5 rings or 25,000 ms rings if
exten => _XXXX,2,Voicemail(${EXTEN}@default,u) ; unavailable message
exten => _XXXX,103,Voicemail(${EXTEN}@default,b) ; busy message

[voicemail]
exten => 600,1,VoiceMailMain(${CALLERID(num)}@default) ;

[phones]
include => voicemail
include => internal
include => outbound
include => inbound[/sourcecode]

Comments

  1. what is the dial rule/outbound routes that you use for budgetphone? im trying to figure this out, cannot find the correct information anywhere…

Leave a Reply