[general] ;----------------------------------------------------------------------- ; GENERAL SETTINGS ;----------------------------------------------------------------------- ; the server is natted behind APITECH router with internal ip 192.100.100.253 and external ip xxx.xxx.xxx.xxx externip=Mon.adresse.ip.publique localnet=192.100.100.0/255.255.255.0 nat=force_rport,comedia ; Default context for incoming calls context=ip2pstn ; Enable DNS SRV lookups (used in incoming calls) srvlookup=yes ; Send ALL outbound signalling to proxy, ignoring route: headers outboundproxy=routing.emerginov.localnet ; Bind on port 5060 bindport=5060 defaultexpiry=1800 ;dtmfmode=auto qualify=yes ; Codecs disallow=all ; First disallow all codecs allow=ulaw ; Allow codecs in order of preference allow=gsm ; Allow codecs in order of preference allow=alaw ; Allow codecs in order of preference ; Set User Agent useragent=emerginov ; Keep Asterisk in media path ; https://wiki.asterisk.org/wiki/display/AST/SIP+Direct+Media+Reinvite+Glare+Avoidance directmedia=no ;----------------------------------------------------------------------- ; SIP TRUNK REGISTRATIONS ;----------------------------------------------------------------------- ; Here are some registration sample to use when Asterisk is also used as ; a GW to go through an external SIP account provider (aka sip trunk) ; Asterisk can register as a SIP user agent to a SIP proxy (provider) ; Format for the register statement is: ; register => [peer?][transport://]user[@domain][:secret[:authuser]]@host[:port][/extension][~expiry] register => sip-outside?0950714930:xxxxxxxx@freephonie.net/33950714930 [sip-outside] type=peer host=freephonie.net outboundproxy=freephonie.net,force defaultuser=0950714930 fromuser=0950714930 secret=xxxxxxxx context=pstn2ip insecure=invite,port defaultexpiry=3600 registertimeout=3600