Problem Asterisk 1.2.12.1 crashes

I’ve installed Asterisk 1.2.12.1 from Trixbox 1.2.3
with an iax trunk and about 20 sip phones ( linksys spa921 )
And asterisk sometimes crash randomly whithout a reason.
I can’t find what is wrong in the logs.
here is the copy of differents crashs :

Dec 12 14:36:53 NOTICE[20526] chan_iax2.c: I should never be called!
Dec 12 14:36:53 DEBUG[2319] chan_iax2.c: Ooh, voice format changed to 4
Dec 12 14:36:54 WARNING[20526] interface.c: Junk at the beginning of frame 49443303
Dec 12 14:36:54 DEBUG[20526] channel.c: Scheduling timer at 160 sample intervals
Dec 12 14:36:57 DEBUG[2313] channel.c: Scheduling timer at 160 sample intervals
Dec 12 14:36:57 DEBUG[20481] channel.c: Generator got voice, switching to phase locked mode
Dec 12 14:36:57 DEBUG[20481] channel.c: Scheduling timer at 0 sample intervals
Dec 12 14:36:57 WARNING[20481] interface.c: Junk at the beginning of frame 49443303
Dec 12 14:36:57 DEBUG[2313] chan_sip.c: Stopping retransmission on ‘0a1d8ea752c4733f05da3c031c6731e8@192.168.50.254’ of Response 101: Match Found
Dec 12 14:37:02 DEBUG[2313] chan_sip.c: Setting NAT on RTP to 0
Dec 12 14:37:02 DEBUG[2313] chan_sip.c: Stopping retransmission on ‘70776e4e-e312b6a0@192.168.50.105’ of Response 101: Match Found
Dec 12 14:37:02 DEBUG[2313] chan_sip.c: Setting NAT on RTP to 0
Dec 12 14:37:02 DEBUG[2313] chan_sip.c: Checking SIP call limits for device 304
Dec 12 14:37:02 DEBUG[2313] chan_sip.c: build_route: Contact hop: “iSarah BENSOUSSAN” sip:304@192.168.50.105:5060
Dec 12 14:37:02 DEBUG[20540] pbx.c: Expression result is '0’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Not taking any branch
Dec 12 14:37:02 DEBUG[20540] pbx.c: Expression result is '0’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Not taking any branch
Dec 12 14:37:02 DEBUG[20540] pbx.c: Function result is '304’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Function result is '304’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Function result is 'Sarah BENSOUSSAN’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Expression result is '0’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Not taking any branch
Dec 12 14:37:02 DEBUG[20540] pbx.c: Function result is '“Sarah BENSOUSSAN” <304>'
Dec 12 14:37:02 DEBUG[20540] db.c: Unable to find key ‘501’ in family 'CFU’
Dec 12 14:37:02 DEBUG[20540] func_db.c: DB: CFU/501 not found in database.
Dec 12 14:37:02 DEBUG[20540] pbx.c: Function result is ''
Dec 12 14:37:02 DEBUG[20540] pbx.c: Expression result is '1’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Expression result is '0’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Expression result is '1’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Function result is '15’
Dec 12 14:37:02 DEBUG[20540] pbx.c: Function result is '0’
Dec 12 14:38:01 VERBOSE[20571] logger.c: Asterisk Event Logger Started /var/log/asterisk/event_log
Dec 12 14:38:01 VERBOSE[20571] logger.c: Asterisk Dynamic Loader loading preload modules:
Dec 12 14:38:01 VERBOSE[20571] logger.c: Asterisk Management interface listening on port 5038

========================

Dec 12 15:08:30 DEBUG[23800] channel.c: Scheduling timer at 160 sample intervals
Dec 12 15:08:30 DEBUG[20581] chan_sip.c: Stopping retransmission on ‘f9d3e991-6de1344d@192.168.50.106’ of Response 102: Match Found
Dec 12 15:08:32 DEBUG[20581] chan_sip.c: Assigning Replace-Call-ID Info f9d3e991-6de1344d@192.168.50.106 to REPLACE_CALL_ID
Dec 12 15:08:32 DEBUG[20581] chan_sip.c: 202 Accepted (supervised)
Dec 12 15:08:32 DEBUG[20581] channel.c: Scheduling timer at 0 sample intervals
Dec 12 15:08:32 DEBUG[20581] channel.c: Planning to masquerade channel IAX2/securitykeepers-1 into the structure of SIP/506-0a0f45c8
Dec 12 15:08:32 DEBUG[20581] channel.c: Done planning to masquerade channel IAX2/securitykeepers-1 into the structure of SIP/506-0a0f45c8
Dec 12 15:08:32 DEBUG[23800] channel.c: Got clone lock for masquerade on ‘IAX2/securitykeepers-1’ at 0xa0a456c
Dec 12 15:08:32 DEBUG[23800] chan_sip.c: update_call_counter(506) - decrement call limit counter
Dec 12 15:08:32 DEBUG[23800] channel.c: Putting channel IAX2/securitykeepers-1 in 2/4 formats
Dec 12 15:08:32 DEBUG[23800] channel.c: Released clone lock on 'SIP/506-0a0f45c8’
Dec 12 15:08:32 DEBUG[23800] channel.c: Done Masquerading IAX2/securitykeepers-1 (6)
Dec 12 15:08:32 DEBUG[23729] channel.c: Didn’t get a frame from channel: SIP/506-0a0f45c8
Dec 12 15:08:32 DEBUG[23729] channel.c: Bridge stops bridging channels SIP/506-0a0f45c8 and SIP/506-0a0a4d90
Dec 12 15:08:32 DEBUG[23729] chan_sip.c: update_call_counter(506) - decrement call limit counter
Dec 12 15:08:32 DEBUG[23729] app_dial.c: Exiting with DIALSTATUS=ANSWER.
Dec 12 15:08:32 DEBUG[20581] chan_sip.c: Stopping retransmission on ‘06dd59ad3084924311ac1b26783aada9@192.168.50.254’ of Request 103: Match Found
Dec 12 15:08:32 DEBUG[20581] chan_sip.c: Stopping retransmission on ‘06dd59ad3084924311ac1b26783aada9@192.168.50.254’ of Request 104: Match Found
Dec 12 15:08:32 DEBUG[20581] chan_sip.c: Stopping retransmission on ‘f9d3e991-6de1344d@192.168.50.106’ of Request 102: Match Found
Dec 12 15:08:32 DEBUG[20581] chan_sip.c: That’s odd… Got a response on a call we dont know about. Cseq 104 Cmd SIP/2.0
Dec 12 15:08:33 DEBUG[23800] channel.c: Scheduling timer at 0 sample intervals
Dec 12 15:08:33 DEBUG[23800] channel.c: Scheduling timer at 0 sample intervals
Dec 12 15:08:33 DEBUG[23800] channel.c: Scheduling timer at 160 sample intervals
Dec 12 15:08:34 DEBUG[23800] channel.c: Scheduling timer at 61 sample intervals
Dec 12 15:08:34 DEBUG[23800] channel.c: Scheduling timer at 0 sample intervals
Dec 12 15:08:34 DEBUG[23800] channel.c: Scheduling timer at 0 sample intervals
Dec 12 15:08:34 DEBUG[23800] channel.c: Scheduling timer at 160 sample intervals
Dec 12 15:09:01 VERBOSE[23835] logger.c: Asterisk Event Logger Started /var/log/asterisk/event_log
Dec 12 15:09:01 VERBOSE[23835] logger.c: Asterisk Dynamic Loader loading preload modules:
Dec 12 15:09:01 VERBOSE[23835] logger.c: Asterisk Management interface listening on port 5038

==========================

Dec 12 16:00:33 DEBUG[28827] channel.c: Scheduling timer at 0 sample intervals
Dec 12 16:00:33 DEBUG[28827] pbx.c: Oooh, got something to jump out with (‘3’)!
Dec 12 16:00:33 DEBUG[28827] pbx.c: Expression result is '0’
Dec 12 16:00:33 DEBUG[28827] pbx.c: Not taking any branch
Dec 12 16:00:33 DEBUG[28827] pbx.c: Expression result is '0’
Dec 12 16:00:33 DEBUG[28827] pbx.c: Not taking any branch
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is '155336050’
Dec 12 16:00:33 DEBUG[28827] db.c: Unable to find key ‘155336050/user’ in family 'DEVICE’
Dec 12 16:00:33 DEBUG[28827] func_db.c: DB: DEVICE/155336050/user not found in database.
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is ''
Dec 12 16:00:33 DEBUG[28827] db.c: Unable to find key ‘/cidname’ in family 'AMPUSER’
Dec 12 16:00:33 DEBUG[28827] func_db.c: DB: AMPUSER//cidname not found in database.
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is ''
Dec 12 16:00:33 DEBUG[28827] pbx.c: Expression result is '1’
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is '“155336050” <155336050>'
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is '0’
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is '155336050’
Dec 12 16:00:33 DEBUG[28827] pbx.c: Expression result is '0’
Dec 12 16:00:33 DEBUG[28827] pbx.c: Not taking any branch
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is '0’
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is '155336050’
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is '155336050’
Dec 12 16:00:33 DEBUG[28827] pbx.c: Function result is '0’
Dec 12 16:00:33 NOTICE[28827] chan_iax2.c: I should never be called!
Dec 12 16:00:34 WARNING[28827] interface.c: Junk at the beginning of frame 49443303
Dec 12 16:00:34 DEBUG[28827] channel.c: Scheduling timer at 160 sample intervals
Dec 12 16:01:01 VERBOSE[29198] logger.c: Asterisk Event Logger Started /var/log/asterisk/event_log
Dec 12 16:01:01 VERBOSE[29198] logger.c: Asterisk Dynamic Loader loading preload modules:
Dec 12 16:01:01 VERBOSE[29198] logger.c: Asterisk Management interface listening on port 5038

==========================

Dec 12 16:52:45 DEBUG[1588] db.c: Unable to find key ‘506’ in family 'CFU’
Dec 12 16:52:45 DEBUG[1588] func_db.c: DB: CFU/506 not found in database.
Dec 12 16:52:45 DEBUG[1588] pbx.c: Function result is ''
Dec 12 16:52:45 DEBUG[1588] pbx.c: Expression result is '1’
Dec 12 16:52:45 DEBUG[1588] pbx.c: Expression result is '0’
Dec 12 16:52:45 DEBUG[1588] pbx.c: Expression result is '1’
Dec 12 16:52:45 DEBUG[1588] pbx.c: Function result is '15’
Dec 12 16:52:45 DEBUG[1588] pbx.c: Function result is '0’
Dec 12 16:52:45 VERBOSE[1588] logger.c: recordingcheck|20061212-165245|1165938765.281: Inbound recording not enabled
Dec 12 16:52:45 DEBUG[1588] pbx.c: Expression result is '0’
Dec 12 16:52:45 DEBUG[1588] pbx.c: Not taking any branch
Dec 12 16:52:45 VERBOSE[1588] logger.c: dialparties.agi: Starting New Dialparties.agi
Dec 12 16:52:45 VERBOSE[1588] logger.c: dialparties.agi: Caller ID name is ‘Operateur 507’ number is '507’
Dec 12 16:52:45 VERBOSE[1588] logger.c: dialparties.agi: Methodology of ring is 'none’
Dec 12 16:52:45 DEBUG[1588] db.c: Unable to find key ‘506’ in family 'CF’
Dec 12 16:52:45 DEBUG[1588] db.c: Unable to find key ‘506’ in family 'DND’
Dec 12 16:52:45 DEBUG[1588] db.c: Unable to find key ‘506’ in family 'CW’
Dec 12 16:52:45 DEBUG[1588] db.c: Unable to find key ‘506’ in family 'CFB’
Dec 12 16:52:45 DEBUG[1588] db.c: Unable to find key ‘506’ in family 'CFU’
Dec 12 16:52:45 DEBUG[1592] manager.c: Manager received command 'login’
Dec 12 16:52:45 DEBUG[1592] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Dec 12 16:52:45 DEBUG[1592] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Dec 12 16:52:45 DEBUG[1592] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Dec 12 16:52:45 DEBUG[1592] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Dec 12 16:52:45 DEBUG[1592] manager.c: Manager received command 'ExtensionState’
Dec 12 16:52:45 DEBUG[1592] manager.c: Manager received command 'Logoff’
Dec 12 16:52:45 DEBUG[1588] chan_sip.c: Setting NAT on RTP to 0
Dec 12 16:52:45 DEBUG[1588] chan_sip.c: Outgoing Call for 506
Dec 12 16:52:45 DEBUG[29208] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on ‘5773c7197489f8825bc8e7a353d8e32a@192.168.50.254’ Request 102:
Found
Dec 12 16:52:46 DEBUG[29208] chan_sip.c: (Provisional) Stopping retransmission (but retaining packet) on ‘5773c7197489f8825bc8e7a353d8e32a@192.168.50.254’ Request 102:
Found
Dec 12 16:53:01 VERBOSE[1620] logger.c: Asterisk Event Logger Started /var/log/asterisk/event_log
Dec 12 16:53:01 VERBOSE[1620] logger.c: Asterisk Dynamic Loader loading preload modules:
Dec 12 16:53:01 VERBOSE[1620] logger.c: Asterisk Management interface listening on port 5038

I’ve some hints but no explanations of what it mean exactly

NOTICE[28827] chan_iax2.c: I should never be called!

WARNING[28827] interface.c: Junk at the beginning of frame 49443303

DEBUG[29164] manager.c: Manager received command ‘Logoff’

Did you try the trixbox forums ? It very likely be a bug in thier code that is causing this.