[Asterisk-Users] PSTN tones with ISDN4Linux

Alex kleis-asterisk-dev at tiscali.it
Tue Feb 22 09:17:42 MST 2005


Hi all,

I'm playing with Asterisk and I've already configured all needed .conf
files.
It works quite well, but now I need your help to tune the system: when I
place a call from a softphone to the PSTN, I can't hear directly Telco's
tones and I can't use its services, e.g. a mobile's answering machine.
I don't know if I have to modify the dialplan or if it depends on my
configuration: what is wrong?
Any help will be appreciated!

TIA,

Alex


modem.conf

[interfaces]
context=pstn-in
driver=i4l      ; isdn4linux - an alternative to i4l is to use chan_capi
language=it
type=autodetect
stripmsd=0
dialtype=tone
mode=immediate
group=1
msn=***REMOVED***
device => /dev/ttyI0
device => /dev/ttyI1


sip.conf

[general]
port = 5060           ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
context = sip-remote-in ; Send unknown SIP callers to this context
callerid = Unknown

[201] ; X-Lite client 201
type=friend
secret=***REMOVED***
auth=md5
nat=yes
host=dynamic
reinvite=no
canreinvite=no
qualify=1000
dtmfmode=rfc2833
callerid="***REMOVED***" <201>
disallow=all
allow=gsm
context=sip-in


extensions.conf

[general]
static=yes
writeprotect=no

[globals]
CONSOLE=Console/dsp                             ; Console interface for demo
TRUNK=Modem/g1                                  ; Trunk interface
TRUNKMSD=1                                      ; MSD digits to strip
(usually 1 or 0)

; ##################################################
; Macros
; ##################################################

[macro-dialout]
exten => s,1,Dial(${TRUNK}:${ARG1})		; Ring the interface
exten => s,2,Goto(s-${DIALSTATUS},1)	; Jump based on status
(NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten => s-NOANSWER,1,Playtones(congestion)
exten => s-BUSY,1,Playtones(busy)
exten => s-.,1,Goto(s-NOANSWER,1)		; Treat anything else as no
answer


; ##################################################
; Outbound Contexts
; ##################################################

[pstn-mobiles-out]
exten => _3.,1,Macro(dialout,${EXTEN})	; All mobiles start with 3

; other pstn-related contexts were cut

[pstn-out]
include => pstn-locals-out
include => pstn-longdistance-out
include => pstn-mobiles-out


; ##################################################
; Inbound Contexts
; ##################################################

[sip-remote-in]
exten => s,1,Hungup

[sip-in]
include => pstn-out
; cut




More information about the asterisk-users mailing list