Thanks a lot for your replies!
I've tested a direct connection using a softphone (X-lite) and that works perfectly. Now I want to register asterisk with my provider, and incoming calls do work almost.
These are my configs:
---------------------------------
| Code: |
-- sip.conf --
[general]
context=default
bindport=5060
bindaddr=0.0.0.0
svrloookup=yes
register => 3171xxxx [!at] budgetphone.nl (replace the [!at] with a @):xxxxx:3171xxxx8@sip.budgetphone.nl/3171xxxxx
[31717xxxx]
type=friend
context=incomingcalls
host=budgetphone.nl
fromuser=31717xxxx
fromdomain=budgetphone.nl
username=31717xxxx
insecure=invite,port
secret=xxxxxx
qualify=no
port=5060
--- extensions.conf ---
[globals]
[general]
[default]
exten => 31717xxxx,1,Goto(incomincalls,3171xxxx,1)
;[31717xxxx]
;exten => s,1,Dial(SIP/1002)
[incomingcalls]
exten => 317171xxxx,1,Dial(SIP/1002)
;exten => _.,1,Dial(SIP/1002)
[outgoing_calls]
exten => _X.,1,Dial(SIP/${EXTEN}@3171xxxx)
[internal]
exten => _XXXX,1,Dial(SIP/${EXTEN});
[phones]
include => internal
include => outgoing_calls
|