[Asterisk-Users] budgetphone

Michiel van Baak michiel at vanbaak.info
Sat Apr 30 16:33:06 MST 2005


On 01:11, Sun 01 May 05, Bert Haverkamp wrote:
> Dear all,
> 
> I'm trying to get asterisk to register to budgetphone.nl. In several threads
>  I saw people who got this to work:
> http://www.voip-info.org/wiki-Talkin2ya

Hi,

The directions on the page there are working like a charm.
The one who made this page helped me too. We did this setup
at the same time, and I was able to get 50% done without his
help and after his help all worked fine.

Did you setup the /etc/hosts file ?
That was the thing I needed to do to get it all working.
My config now is (ip's and telephone numbers replaced with
bogus values):

/etc/hosts:
# Host Database
81.23.228.150   budgetphone.nl

/etc/asterisk/sip.conf:
[general]
context=from-sip                 ; Default context for incoming calls
realm=vanbaak           ; Realm for digest authentication
port=5060                       ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0                ; IP address to bind to (0.0.0.0 binds to all)
srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
maxexpirey=3600         ; Max length of incoming registration we allow
defaultexpirey=120              ; Default length of incoming/outoing registration
allow=all                               ; This may also be set for individual users/peers
language=en                     ; Default language setting for all users/peers
relaxdtmf=yes                   ; Relax dtmf handling
rtptimeout=60                   ; Terminate call if 60 seconds of no RTP activity
rtpholdtimeout=300              ; Terminate call if 300 seconds of no RTP activity
useragent=Asterisk              ; Allows you to change the user agent string
nat=no                          ; NAT settings 
externip=XXX.XXX.XXX.XXX
localnet=192.168.2.0/255.255.255.0
promiscredir = no      ; If yes, allows 302 or REDIR to non-local SIP address
register => 31XXXXXXXXX:my_passwd at budgetphone.nl/31XXXXXXXXX

[budgetphone]
canreinvite=no
context=from-budgetphone
fromuser=31XXXXXXXX
fromdomain=budgetphone.nl
host=budgetphone.nl
insecure=very
nat=yes
;qualify=yes
secret=my_passwd
type=friend
username=31XXXXXXXXX

/etc/asterisk/extensions.conf:
[general]
static=yes
writeprotect=no
[globals]
VMBOX=michiel ; the VM box

[outgoing-budgetphone]
exten => _0XXXXXXXXX,1,SetAccount(outgoing-budgetphone)
exten => _0XXXXXXXXX,2,SetCallerID(31XXXXXXXXX)
exten => _0XXXXXXXXX,3,SetCIDName(Michiel en Nancy van Baak)
exten => _0XXXXXXXXX,4,SetCIDNum(31XXXXXXXX)
exten => _0XXXXXXXXX,5,Dial(SIP/budgetphone/${EXTEN},50,Tr)
exten => _0XXXXXXXXX,6,Congestion
exten => _0XXXXXXXXX,106,Busy

[from-budgetphone]
exten => 31XXXXXXXXX,1,SetCIdNum(0${CALLERIDNUM:2})
exten => 31XXXXXXXXX,2,LookupCIDName
exten => 31XXXXXXXXX,3,Macro(stdexten,michiel,SIP/michiel)


We are using this setup for 3 months now and the KPN line is
already history.

-- 
Michiel van Baak
http://lunteren.vanbaak.info
michiel at vanbaak.info
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D

"Two of the most famous products of Berkeley are LSD and BSD. I don't think that this is a coincidence."




More information about the asterisk-users mailing list