Incoming and Outgoing Call Problem

Guys can you help me to troubleshoot the problem in asterisk, were on testing of asterisk using our line 12 - 15, i noticed that in line 13 there is a problem when incoming ongoing ringing but and not IVR. When i tried to call outside no ringing and after a few seconds it will hangup. Other line like 14 and 15 has no problem at all.

Below is the report from asterisk -rv command of our line 13

login as: root
root@192.168.2.240’s password:
Last login: Wed Feb 18 16:11:57 2009 from itg-jeff.metrogas.com.ph

Welcome to Elastix

For access to the Elastix web GUI use this URL
192.168.2.240

[root@elastix ~]# asterisk
Asterisk already running on /var/run/asterisk/asterisk.ctl. Use ‘asterisk -r’ t o connect.
[root@elastix ~]# asterisk -rv
Asterisk 1.4.19, Copyright © 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for detail s.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk 1.4.19 currently running on elastix (pid = 2917)
Verbosity is at least 3
– Executing [s@ivr-2:11] WaitExten(“Zap/13-1”, “|”) in new stack
– Timeout on Zap/13-1, going to ‘t’
– Executing [t@ivr-2:1] Goto(“Zap/13-1”, “loop|1”) in new stack
– Goto (ivr-2,loop,1)
– Executing [loop@ivr-2:1] Set(“Zap/13-1”, “LOOPCOUNT=3”) in new stack
– Executing [loop@ivr-2:2] GotoIf(“Zap/13-1”, “1?hang|1”) in new stack
– Goto (ivr-2,hang,1)
– Executing [hang@ivr-2:1] Playback(“Zap/13-1”, “vm-goodbye”) in new stack
– <Zap/13-1> Playing ‘vm-goodbye’ (language ‘en’)
– Executing [hang@ivr-2:2] Hangup(“Zap/13-1”, “”) in new stack
== Spawn extension (ivr-2, hang, 2) exited non-zero on ‘Zap/13-1’
– Executing [h@ivr-2:1] Hangup(“Zap/13-1”, “”) in new stack
== Spawn extension (ivr-2, h, 1) exited non-zero on ‘Zap/13-1’
– Hungup 'Zap/13-1’
elastixCLI> clear
No such command ‘clear’ (type ‘help’ for help)
elastix
CLI> exit
Executing last minute cleanups
[root@elastix ~]# clear
[root@elastix ~]# asterisk -rv
Asterisk 1.4.19, Copyright © 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for detail s.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk 1.4.19 currently running on elastix (pid = 2917)
Verbosity is at least 3
– Remote UNIX connection
– Remote UNIX connection disconnected
– Starting simple switch on ‘Zap/13-1’
– Executing [s@from-pstn:1] Set(“Zap/13-1”, “__FROM_DID=s”) in new stack
– Executing [s@from-pstn:2] GotoIf(“Zap/13-1”, “0 ?cidok”) in new stack
– Executing [s@from-pstn:3] Set(“Zap/13-1”, “CALLERID(name)=”) in new stack
– Executing [s@from-pstn:4] NoOp(“Zap/13-1”, “CallerID is “” <>”) in new st ack
– Executing [s@from-pstn:5] SetMusicOnHold(“Zap/13-1”, “Metrogas”) in new s tack
– Executing [s@from-pstn:6] Set(“Zap/13-1”, “__MOHCLASS=Metrogas”) in new s tack
– Executing [s@from-pstn:7] Goto(“Zap/13-1”, “timeconditions|1|1”) in new s tack
– Goto (timeconditions,1,1)
– Executing [1@timeconditions:1] GotoIfTime(“Zap/13-1”, “05:00-21:00|mon-su n|1-31|jan-dec?ivr-2|s|1”) in new stack
– Goto (ivr-2,s,1)
– Executing [s@ivr-2:1] Set(“Zap/13-1”, “LOOPCOUNT=0”) in new stack
– Executing [s@ivr-2:2] Set(“Zap/13-1”, “__DIR-CONTEXT=”) in new stack
– Executing [s@ivr-2:3] Set(“Zap/13-1”, “_IVR_CONTEXT_ivr-2=”) in new stack
– Executing [s@ivr-2:4] Set(“Zap/13-1”, “_IVR_CONTEXT=ivr-2”) in new stack
– Executing [s@ivr-2:5] GotoIf(“Zap/13-1”, “0?begin”) in new stack
– Executing [s@ivr-2:6] Answer(“Zap/13-1”, “”) in new stack
– Executing [s@ivr-2:7] Wait(“Zap/13-1”, “1”) in new stack
– Executing [s@ivr-2:8] Set(“Zap/13-1”, “TIMEOUT(digit)=3”) in new stack
– Digit timeout set to 3
– Executing [s@ivr-2:9] Set(“Zap/13-1”, “TIMEOUT(response)=10”) in new stac k
– Response timeout set to 10
– Executing [s@ivr-2:10] BackGround(“Zap/13-1”, “custom/openingarc02”) in n ew stack
– <Zap/13-1> Playing ‘custom/openingarc02’ (language ‘en’)
elastix*CLI>