Asterisk crashes on external calls

I have set up trixbox 1.2.3 with a EICON Diva Server Pro BRI card.

Everything works well except answering calls across the CAPI interface, I can dial and all phones ring (eternal & external), asterisk dies when the call is answered.

Here is asterisk’s output:

[root@asterisk1 asterisk]# asterisk -rvvvvv
== Parsing ‘/etc/asterisk/asterisk.conf’: Found
== Parsing ‘/etc/asterisk/extconfig.conf’: Found
Asterisk 1.2.13 svn rev 47264, Copyright © 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘show warranty’ for details.
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 ‘show license’ for details.

Connected to Asterisk 1.2.13 svn rev 47264 currently running on asterisk1 (pid = 32584)
Verbosity was 1 and is now 5
– Saved useragent “Aastra 480i/1.4.1.1077 Brcm Callctrl/1.5.1.0 MxSF/v3.2.6.26” for peer 202
– Saved useragent “X-Lite release 1006e stamp 34025” for peer 205
– Saved useragent “Aastra 480i/1.4.1.1077 Brcm Callctrl/1.5.1.0 MxSF/v3.2.6.26” for peer 201
– Saved useragent “Aastra 480i/1.4.1.1077 Brcm Callctrl/1.5.1.0 MxSF/v3.2.6.26” for peer 203
– Saved useragent “Aastra 480i/1.4.1.1077 Brcm Callctrl/1.5.1.0 MxSF/v3.2.6.26” for peer 200
– Executing Macro(“SIP/203-09f33328”, “dialout-trunk|2|079MOBILE00||”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “1?3:2”) in new stack
– Goto (macro-dialout-trunk,s,3)
– Executing Macro(“SIP/203-09f33328”, “user-callerid”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “0?report”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “0?start”) in new stack
– Executing Set(“SIP/203-09f33328”, “REALCALLERIDNUM=203”) in new stack
– Executing NoOp(“SIP/203-09f33328”, “REALCALLERIDNUM is 203”) in new stack
– Executing Set(“SIP/203-09f33328”, “AMPUSER=203”) in new stack
– Executing Set(“SIP/203-09f33328”, “AMPUSERCIDNAME=Someone”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “0?report”) in new stack
– Executing Set(“SIP/203-09f33328”, “CALLERID(all)=Someone <203>”) in new stack
– Executing NoOp(“SIP/203-09f33328”, “Using CallerID “Someone” <203>”) in new stack
– Executing Macro(“SIP/203-09f33328”, “record-enable|203|OUT”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“SIP/203-09f33328”, “recordingcheck|20061207-175531|1165514131.0”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20061207-175531|1165514131.0: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“SIP/203-09f33328”, “No recording needed”) in new stack
– Executing Macro(“SIP/203-09f33328”, “outbound-callerid|2”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing NoOp(“SIP/203-09f33328”, “REALCALLERIDNUM is 203”) in new stack
– Executing Set(“SIP/203-09f33328”, “USEROUTCID=”) in new stack
– Executing Set(“SIP/203-09f33328”, “EMERGENCYCID=”) in new stack
– Executing Set(“SIP/203-09f33328”, “TRUNKOUTCID=Company (00000 000000)”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,11)
– Executing GotoIf(“SIP/203-09f33328”, “0?usercid”) in new stack
– Executing Set(“SIP/203-09f33328”, “CALLERID(all)=Company (00000 000000)”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,15)
– Executing NoOp(“SIP/203-09f33328”, “CallerID set to “Company (00000 000000)” <>”) in new stack
– Executing Set(“SIP/203-09f33328”, “GROUP()=OUT_2”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “0?108”) in new stack
– Executing Set(“SIP/203-09f33328”, “DIAL_NUMBER=079MOBILE00”) in new stack
– Executing Set(“SIP/203-09f33328”, “DIAL_TRUNK=2”) in new stack
– Executing AGI(“SIP/203-09f33328”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
– AGI Script fixlocalprefix completed, returning 0
– Executing Set(“SIP/203-09f33328”, “OUTNUM=079MOBILE00”) in new stack
– Executing Set(“SIP/203-09f33328”, “custom=AMP”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “1?16”) in new stack
– Goto (macro-dialout-trunk,s,16)
– Executing Set(“SIP/203-09f33328”, “pre_num=AMP:CAPI/ISDN1/”) in new stack
– Executing Set(“SIP/203-09f33328”, “the_num=OUTNUM”) in new stack
– Executing Set(“SIP/203-09f33328”, “post_num=”) in new stack
– Executing GotoIf(“SIP/203-09f33328”, “1?20:21”) in new stack
– Goto (macro-dialout-trunk,s,20)
– Executing Set(“SIP/203-09f33328”, “the_num=079MOBILE00”) in new stack
– Executing Dial(“SIP/203-09f33328”, “CAPI/ISDN1/079MOBILE00|120|r”) in new stack
– Called ISDN1/079MOBILE00
– CAPI/ISDN1/079MOBILE00-0 is proceeding passing it to SIP/203-09f33328
– CAPI/ISDN1/079MOBILE00-0 is ringing
== ISDN1: Setting up echo canceller (PLCI=0x101, function=1, options=4, tail=64)
– CAPI/ISDN1/079MOBILE00-0 answered SIP/203-09f33328
asterisk1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
[root@asterisk1 asterisk]#

I dies on CAPI/ISDN1/079MOBILE00-0 answered SIP/203-09f33328 and the internal aastra 480i keeps ringing.

Also incoming call dose the same all phones ring, we pickup dead line and asterisk has died.

Here is asterisk output:

[root@asterisk1 asterisk]# asterisk -rvvvvv
== Parsing ‘/etc/asterisk/asterisk.conf’: Found
== Parsing ‘/etc/asterisk/extconfig.conf’: Found
Asterisk 1.2.13 svn rev 47264, Copyright © 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘show warranty’ for details.
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 ‘show license’ for details.

Connected to Asterisk 1.2.13 svn rev 47264 currently running on asterisk1 (pid = 826)
Verbosity was 1 and is now 5
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
– Saved useragent “Aastra 480i/1.4.1.1077 Brcm Callctrl/1.5.1.0 MxSF/v3.2.6.26” for peer 202
– Saved useragent “Aastra 480i/1.4.1.1077 Brcm Callctrl/1.5.1.0 MxSF/v3.2.6.26” for peer 201
– Saved useragent “Aastra 480i/1.4.1.1077 Brcm Callctrl/1.5.1.0 MxSF/v3.2.6.26” for peer 203
– Saved useragent “Aastra 480i/1.4.1.1077 Brcm Callctrl/1.5.1.0 MxSF/v3.2.6.26” for peer 200
== ISDN1: Incoming call ‘’ -> ‘123456’
– Executing NoOp(“CAPI/ISDN1/123456-0”, “Catch-All DID Match - Found 123456 - You probably want a DID for this.”) in new stack
– Executing Goto(“CAPI/ISDN1/123456-0”, “ext-did|s|1”) in new stack
– Goto (ext-did,s,1)
– Executing Set(“CAPI/ISDN1/123456-0”, “FROM_DID=s”) in new stack
– Executing Goto(“CAPI/ISDN1/123456-0”, “ext-group|1|1”) in new stack
– Goto (ext-group,1,1)
– Executing Macro(“CAPI/ISDN1/123456-0”, “user-callerid|”) in new stack
– Executing GotoIf(“CAPI/ISDN1/123456-0”, “0?report”) in new stack
– Executing GotoIf(“CAPI/ISDN1/123456-0”, “0?start”) in new stack
– Executing Set(“CAPI/ISDN1/123456-0”, “REALCALLERIDNUM=”) in new stack
– Executing NoOp(“CAPI/ISDN1/123456-0”, "REALCALLERIDNUM is ") in new stack
– Executing Set(“CAPI/ISDN1/123456-0”, “AMPUSER=”) in new stack
– Executing Set(“CAPI/ISDN1/123456-0”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“CAPI/ISDN1/123456-0”, “1?report”) in new stack
– Goto (macro-user-callerid,s,9)
– Executing NoOp(“CAPI/ISDN1/123456-0”, “Using CallerID “” <>”) in new stack
– Executing GotoIf(“CAPI/ISDN1/123456-0”, “0?NEWPREFIX”) in new stack
– Executing Set(“CAPI/ISDN1/123456-0”, “CALLERID(name)=”) in new stack
– Executing Set(“CAPI/ISDN1/123456-0”, “RGPREFIX=”) in new stack
– Executing Set(“CAPI/ISDN1/123456-0”, “CALLERID(name)=”) in new stack
– Executing Set(“CAPI/ISDN1/123456-0”, “RecordMethod=Group”) in new stack
– Executing Macro(“CAPI/ISDN1/123456-0”, “record-enable|200-201-202-203|Group”) in new stack
– Executing GotoIf(“CAPI/ISDN1/123456-0”, “0 > 0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing AGI(“CAPI/ISDN1/123456-0”, “recordingcheck|20061207-180855|1165514935.0”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“CAPI/ISDN1/123456-0”, “No recording needed”) in new stack
– Executing Set(“CAPI/ISDN1/123456-0”, “RingGroupMethod=ringall”) in new stack
– Executing Macro(“CAPI/ISDN1/123456-0”, “dial|20|tr|200-201-202-203”) in new stack
– Executing AGI(“CAPI/ISDN1/123456-0”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
– dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘unknown’ number is 'unknown’
dialparties.agi: Methodology of ring is ‘ringall’
– dialparties.agi: Added extension 200 to extension map
– dialparties.agi: Added extension 201 to extension map
– dialparties.agi: Added extension 202 to extension map
– dialparties.agi: Added extension 203 to extension map
– dialparties.agi: Extension 200 cf is disabled
– dialparties.agi: Extension 201 cf is disabled
– dialparties.agi: Extension 202 cf is disabled
– dialparties.agi: Extension 203 cf is disabled
– dialparties.agi: Extension 200 do not disturb is disabled
– dialparties.agi: Extension 201 do not disturb is disabled
– dialparties.agi: Extension 202 do not disturb is disabled
– dialparties.agi: Extension 203 do not disturb is disabled

dialparties.agi: extnum: 200
dialparties.agi: exthascw: 0
dialparties.agi: exthascfb: 0
dialparties.agi: extcfb:
dialparties.agi: exthascfu: 0
dialparties.agi: extcfu:
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
dialparties.agi: ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 200
– dialparties.agi: DbSet CALLTRACE/200 to unknown
dialparties.agi: extnum: 201
dialparties.agi: exthascw: 0
dialparties.agi: exthascfb: 0
dialparties.agi: extcfb:
dialparties.agi: exthascfu: 0
dialparties.agi: extcfu:
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
dialparties.agi: ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 201
– dialparties.agi: DbSet CALLTRACE/201 to unknown
dialparties.agi: extnum: 202
dialparties.agi: exthascw: 0
dialparties.agi: exthascfb: 0
dialparties.agi: extcfb:
dialparties.agi: exthascfu: 0
dialparties.agi: extcfu:
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
dialparties.agi: ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 202
– dialparties.agi: DbSet CALLTRACE/202 to unknown
dialparties.agi: extnum: 203
dialparties.agi: exthascw: 0
dialparties.agi: exthascfb: 0
dialparties.agi: extcfb:
dialparties.agi: exthascfu: 0
dialparties.agi: extcfu:
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
dialparties.agi: ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 203
– dialparties.agi: DbSet CALLTRACE/203 to unknown
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“CAPI/ISDN1/123456-0”, “SIP/200&SIP/201&SIP/202&SIP/203|20|tr”) in new stack
– Called 200
– Called 201
– Called 202
– Called 203
– SIP/201-0849b910 is ringing
– SIP/200-08495fb8 is ringing
– SIP/203-084a71d8 is ringing
– SIP/202-084a1568 is ringing
– SIP/203-084a71d8 answered CAPI/ISDN1/123456-0
asterisk1*CLI>
Disconnected from Asterisk server
Executing last minute cleanups
[root@asterisk1 asterisk]#

Dies at SIP/203-084a71d8 answered CAPI/ISDN1/123456-0

Any ideas thanks
Steven