I have these 2 examples from Mynetfone that I have found
Sip.conf
;
; SIP Configuration for Asterisk
;
; Useful CLI commands to check peers/users:
; sip show peers Show all SIP peers (including friends)
; sip show users Show all SIP users (including friends)
; sip show registry Show status of hosts we register with
;
; sip debug Show all SIP messages
;
[general]
context=sip-in ; Default context for incoming calls
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
; Note: Asterisk only uses the first host
; in SRV records
; Disabling DNS SRV lookups disables the
; ability to place SIP calls based on domain
; names to some other SIP users on the Internet
language=en ; Default language setting for all users/peers
; This may also be set for individual users/peers
rtptimeout=60 ; Terminate call if 60 seconds of no RTP
; activity when we're not on hold
rtpholdtimeout=300 ; Terminate call if 300 seconds of no RTP
; activity
defaultexpirey=240 ; SIP registration timeout is 240 seconds
pedantic=no ; Don't check SIP headers for strict
; compatibility
allow=all ; Allow all codecs
; Register with MyFone SIP proxy.
; Calls cannot be made/received without
; registering with MyFone SIP proxy
register => <MyNetFoneNumber>@sip.myfone.com.au:<MyNetFonePassword>:<MyNetFoneNumber>@sip.myfone.com.au/<MyNetFoneNumber>
[myfone-sip] ; MyFone SIP proxy
type=friend
secret=<MyNetFonePassword>
username=<MyNetFoneNumber>
fromuser=<MyNetFoneNumber>
authname=<MyNetFoneNumber>
host=sip.myfone.com.au
insecure=very
nat=yes
disallow=all
allow=g729
qualify=yes
dtmfmode=rfc2833
canreinvite=no
context=myfone-inbound ; Context to handle inbound calls from MyFone
; SIP proxy
[2222] ; SIP phone connected to Asterisk.
; It has extension number 2222 on Asterisk
type=friend
username=2222
fromuser=2222
host=dynamic
dtmfmode=rfc2833
secret=<Password>
disallow=all
allow=g729
context=default ; Context to handle calls made from SIP phone connected
; to Asterisk
canreinvite=no
Extensions.conf
; Handle calls coming in from MyFone SIP proxy
;
[myfone-inbound]
; Incoming calls from MyFone to Asterisk are directed to the extension
; 2222 on Asterisk
; This is a SIP phone in this sample config.
;
exten => <MyNetFoneNumber>,1,Dial(SIP/2222,30)
exten => <MyNetFoneNumber>,2,Congestion
exten => <MyNetFoneNumber>,102,Busy
; Note: In this sample config, in the settings for extension 2222 its
; context is set as "default".
; So any outgoing calls made from extension 2222 are processed in this
; section.
;
[default]
; Send all outbound calls with prefix 3 via MyFone. Strip the prefix 3
; before sending call to MyFone SIP proxy
; Ex: if 30291234567 is dialled then the 3 is removed and 0291234567 is
; sent to the MyFone SIP proxy.
;
; Note :{EXTEN:1} => strip the first digit of number contained in
; variable EXTEN
; myfone-sip is defined in sip.conf, 30 it the timeout
;
exten => _3.,1,Dial(SIP/${EXTEN:1}@myfone-sip,30)
exten => _3.,2,Congestion
exten => _3.,102,Busy
Can someone please help me with the incoming setup of this.
I seem to be running around in circles and getting no where.
My trunk setup atm
type=peer
host=sip10.mynetfone.com.au
qualify=yes
canreinvite=no
dtmfmode=rfc2833
fromdomain=sip10.mynetfone.com.au
username=09129509
fromuser=09129509
secret=<Mypassword>
authname=09129509
insecure=yes
nat=yes
disallow=all
allowg729
allow=alaw
allow=ulaw
registration string
09129509@sip10.mynetfone.com.au:<Mypassword>:09129509@sip10.mynetfone.com.au/09129509
Registration is ok and outbound calls with Mynetfone is working just no inbound calls.
In and outbound work on the soft phone they provide.
Regards,
Tib