M.Rafique
2004-Dec-13 16:45 UTC
[Asterisk-Users] incoming call from pstn to fxo not working with Asterisk
When somebody call me on my pstn # cable connected to my fxo card it does
not work when I check my computer the following error shows
Connected to Asterisk CVS-v1-0-12/05/04-19:46:25 currently running on
asterisk1 (pid = 2160)
Verbosity is atleast 3
-- Remote UNIX connection
-- Starting simple switch on 'Zap/1-1'
== Starting Zap/1-1 at incoming,s,1 failed so falling back to exten
's'
== Starting Zap/1-1 at incoming,s,1 still failed so falling back to
context 'default'
Dec 13 18:12:32 WARNING[2499]: pbx.c:1878 ast_pbx_run: Channel 'Zap/1-1'
sent into invalid extension 's' in context 'default', but no
invalid handler
-- Hungup 'Zap/1-1'
-- Starting simple switch on 'Zap/1-1'
Dec 13 18:12:42 NOTICE[2500]: chan_zap.c:5361 ss_thread: Got event 2
(Ring/Answered)...
== Starting Zap/1-1 at incoming,s,1 failed so falling back to exten
's'
== Starting Zap/1-1 at incoming,s,1 still failed so falling back to
context 'default'
Dec 13 18:12:42 WARNING[2500]: pbx.c:1878 ast_pbx_run: Channel 'Zap/1-1'
sent into invalid extension 's' in context 'default', but no
invalid handler
* Hungup 'Zap/1-1'
My extensions.conf
[general]
static=yes
writeprotect=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
TRUNK=Zap/g2 ; Trunk interface
;exten => _.,1,Congestion
;exten => s,1,Answer
;exten => s/*
;exten => s,4,BackGround(welcome)
;exten => s,2,SetCIDName(Good Person)
;exten => s,3,Dial(SIP/goodperson)
[IAXFWD]
exten => _98.,1,SetCallerID(my FWD #)
exten => _98.,2,SetCIDName,"FWD.Fahad"
exten => _98.,3,Dial(IAX2/ my FWD #: my fwd password
@iax2.fwdnet.net/${EXTEN:2},120,r)
exten => _98.,4,Congestion
exten => _98.,1,SetCallerID(my FWD #)
exten => _98.,2,SetCIDName,"FWD.Fahad"
exten => _98*.X.X,3,Dial(IAX2/ my FWD #: my fwd password
@iax2.fwdnet.net/${EXTEN:2},120,r)
exten => _98*.X.X,4,Congestion
[IAXFWD-IN]
exten => my FWD #,1,Answer
exten => my FWD #,2,DigitTimeout,5
exten => my FWD #,3,ResponseTimeout,15
exten => my FWD #,4,BackGround(welcome)
exten => my FWD #,5,Wait(2)
;exten => my FWD #,6,Playback(secondgreeting)
;exten => my FWD #,7,Read(EXT_ENTERED||6) ; Collect up to 4 digits
;exten => _ my FWD #.,8,Dial(IAX2/ my FWD #: my fwd password
@iax2.fwdnet.net/${EXT_ENTERED},60,Ttr)
exten => _98.,1,SetCallerID(my FWD #)
exten => _98.,2,SetCIDName,"FWD.Fahad"
exten => _98.,3,Dial(IAX2/ my FWD #: my fwd password
@iax2.fwdnet.net/${EXTEN:2},120,r)
exten => _98.,4,Congestion
exten => _98.,1,SetCallerID(my FWD #)
exten => _98.,2,SetCIDName,"FWD.Fahad"
exten => _98*.X.X,3,Dial(IAX2/ my FWD #:my fwd
password@iax2.fwdnet.net/${EXTEN:2},120,r)
exten => _98*.X.X,4,Congestion
exten => _7x.,1,SetCallerID(my FWD #)
exten => _7x.,2,SetCIDName,"FWD.Fahad"
exten => _7X.,3,Dial,Zap/1/${EXTEN:1}
exten => _7x.,4,Congestion
[from-sip]
exten => 2001,1,Dial(SIP/2001,20)
exten => 2001,2,Voicemail(u2001)
exten => 2001,102,Voicemail(b2001)
exten => 2001,103,Hangup
exten => _7X.,1,Dial,Zap/1/${EXTEN:1}
[pstn_fwd_forwarding]
;exten =>
s,1,Dial(IAX2/my_uname:my_secret@iax2.fwdnet.net/my_fwd_number|60|tT)
exten => s,1,,BackGround(welcome)
exten => s,2,Hangup
[sip]
include=IAXFWD
include=IAXFWD-IN
is there any suggestion for configuration.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20041213/4ca4166f/attachment.htm
Amer Nasir
2004-Dec-13 17:57 UTC
[Asterisk-Users] incoming call from pstn to fxo not working with Asterisk
ok why do you have the s extension commented out. Try this, 1113 is a sip phone connected directly to asterisk. You can fwd the incoming calls to a phone or let an auto attendant answer the calls. It really depends on how you want to handle incoming calls. [incoming] exten => s,1,Dial(SIP/1113,20) exten => s,2,Voicemail,u1113 exten => s,102,Voicemail,b1113 You might have to include this context. On Mon, 13 Dec 2004 15:45:44 -0800, M.Rafique <rafique@lanset.com> wrote:> > > > When somebody call me on my pstn # cable connected to my fxo card it does > not work when I check my computer the following error shows > > > > > > Connected to Asterisk CVS-v1-0-12/05/04-19:46:25 currently running on > asterisk1 (pid = 2160) > > Verbosity is atleast 3 > > -- Remote UNIX connection > > -- Starting simple switch on 'Zap/1-1' > > == Starting Zap/1-1 at incoming,s,1 failed so falling back to exten 's' > > == Starting Zap/1-1 at incoming,s,1 still failed so falling back to > context 'default' > > Dec 13 18:12:32 WARNING[2499]: pbx.c:1878 ast_pbx_run: Channel 'Zap/1-1' > sent into invalid extension 's' in context 'default', but no invalid handler > > -- Hungup 'Zap/1-1' > > -- Starting simple switch on 'Zap/1-1' > > Dec 13 18:12:42 NOTICE[2500]: chan_zap.c:5361 ss_thread: Got event 2 > (Ring/Answered)... > > == Starting Zap/1-1 at incoming,s,1 failed so falling back to exten 's' > > == Starting Zap/1-1 at incoming,s,1 still failed so falling back to > context 'default' > > Dec 13 18:12:42 WARNING[2500]: pbx.c:1878 ast_pbx_run: Channel 'Zap/1-1' > sent into invalid extension 's' in context 'default', but no invalid handler > > n Hungup 'Zap/1-1' > > > > > > > > > > > > My extensions.conf > > > > [general] > > static=yes > > writeprotect=no > > > > [globals] > > CONSOLE=Console/dsp ; Console interface for demo > > IAXINFO=guest ; IAXtel username/password > > TRUNK=Zap/g2 ; Trunk interface > > > > ;exten => _.,1,Congestion > > > > ;exten => s,1,Answer > > ;exten => s/* > > ;exten => s,4,BackGround(welcome) > > ;exten => s,2,SetCIDName(Good Person) > > ;exten => s,3,Dial(SIP/goodperson) > > > > [IAXFWD] > > exten => _98.,1,SetCallerID(my FWD #) > > exten => _98.,2,SetCIDName,"FWD.Fahad" > > exten => _98.,3,Dial(IAX2/ my FWD #: my fwd password > @iax2.fwdnet.net/${EXTEN:2},120,r) > > exten => _98.,4,Congestion > > > > exten => _98.,1,SetCallerID(my FWD #) > > exten => _98.,2,SetCIDName,"FWD.Fahad" > > exten => _98*.X.X,3,Dial(IAX2/ my FWD #: my fwd password > @iax2.fwdnet.net/${EXTEN:2},120,r) > > exten => _98*.X.X,4,Congestion > > > > > > [IAXFWD-IN] > > exten => my FWD #,1,Answer > > exten => my FWD #,2,DigitTimeout,5 > > exten => my FWD #,3,ResponseTimeout,15 > > exten => my FWD #,4,BackGround(welcome) > > exten => my FWD #,5,Wait(2) > > ;exten => my FWD #,6,Playback(secondgreeting) > > ;exten => my FWD #,7,Read(EXT_ENTERED||6) ; Collect up to 4 digits > > ;exten => _ my FWD #.,8,Dial(IAX2/ my FWD #: my fwd password > @iax2.fwdnet.net/${EXT_ENTERED},60,Ttr) > > > > exten => _98.,1,SetCallerID(my FWD #) > > exten => _98.,2,SetCIDName,"FWD.Fahad" > > exten => _98.,3,Dial(IAX2/ my FWD #: my fwd password > @iax2.fwdnet.net/${EXTEN:2},120,r) > > exten => _98.,4,Congestion > > > > exten => _98.,1,SetCallerID(my FWD #) > > exten => _98.,2,SetCIDName,"FWD.Fahad" > > exten => _98*.X.X,3,Dial(IAX2/ my FWD #:my fwd > password@iax2.fwdnet.net/${EXTEN:2},120,r) > > exten => _98*.X.X,4,Congestion > > > > exten => _7x.,1,SetCallerID(my FWD #) > > exten => _7x.,2,SetCIDName,"FWD.Fahad" > > exten => _7X.,3,Dial,Zap/1/${EXTEN:1} > > exten => _7x.,4,Congestion > > > > [from-sip] > > exten => 2001,1,Dial(SIP/2001,20) > > exten => 2001,2,Voicemail(u2001) > > exten => 2001,102,Voicemail(b2001) > > exten => 2001,103,Hangup > > > > exten => _7X.,1,Dial,Zap/1/${EXTEN:1} > > > > [pstn_fwd_forwarding] > > > > ;exten => > s,1,Dial(IAX2/my_uname:my_secret@iax2.fwdnet.net/my_fwd_number|60|tT) > > exten => s,1,,BackGround(welcome) > > exten => s,2,Hangup > > > > [sip] > > include=IAXFWD > > include=IAXFWD-IN > > > > > > is there any suggestion for configuration. > > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >