Agent Login Crashes

I hava follwing problem

Asterisk 1.2.9 , Agent Login through Softphone works fine.
When I connect using Audicodes MP 124 , The Agent login Automatically logs off immediately . I suspect the ztummy and timer issue with 2.6 kernal. I wonder what could be the problemsince I have seen using MP124 it worked well for me some time back. Can any one help to figure this problem out?[code]Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 7: Contact: sip:304@192.168.0.75;user=phone;expires=180 (54)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 8: Supported: em,timer,replaces,path (33)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 9: Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE (86)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 10: Expires: 180 (12)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 11: User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350 (60)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 12: Content-Length: 0 (17)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 13: (0)
— (13 headers 0 lines)—
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3121 sip_alloc: Allocating new SIP dialog for 2999117213nykg@192.168.0.75 - REGISTER (No RTP)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:10973 handle_request: **** Received REGISTER (2) - Command in SIP REGISTER
Using latest REGISTER request as basis request
Sending to 192.168.0.75 : 5060 (non-NAT)
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacwLHtpbX;received=192.168.0.75
From: sip:304@192.168.0.75;tag=1c2452211802
To: sip:304@192.168.0.75
Call-ID: 2999117213nykg@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:304@192.168.0.52
Content-Length: 0


-- Saved useragent "Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350" for peer 304

Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacwLHtpbX;received=192.168.0.75
From: sip:304@192.168.0.75;tag=1c2452211802
To: sip:304@192.168.0.75;tag=as3f2bef38
Call-ID: 2999117213nykg@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 180
Contact: sip:304@192.168.0.75;user=phone;expires=180
Date: Sat, 15 Jul 2006 12:09:28 GMT
Content-Length: 0


Scheduling destruction of call ‘2999117213nykg@192.168.0.75’ in 15000 ms

<-- SIP read from 192.168.0.75:5060:
REGISTER sip:192.168.0.52 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacQNRvhdP
Max-Forwards: 70
From: sip:305@192.168.0.75;tag=1c1054629685
To: sip:305@192.168.0.75
Call-ID: 2660829760Cvhd@192.168.0.75
CSeq: 5 REGISTER
Contact: sip:305@192.168.0.75;user=phone;expires=180
Supported: em,timer,replaces,path
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Expires: 180
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Content-Length: 0

Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 0: REGISTER sip:192.168.0.52 SIP/2.0 (33)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 1: Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacQNRvhdP (53)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 2: Max-Forwards: 70 (16)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 3: From: sip:305@192.168.0.75;tag=1c1054629685 (45)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 4: To: sip:305@192.168.0.75 (26)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 5: Call-ID: 2660829760Cvhd@192.168.0.75 (36)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 6: CSeq: 5 REGISTER (16)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 7: Contact: sip:305@192.168.0.75;user=phone;expires=180 (54)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 8: Supported: em,timer,replaces,path (33)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 9: Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE (86)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 10: Expires: 180 (12)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 11: User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350 (60)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 12: Content-Length: 0 (17)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 13: (0)
— (13 headers 0 lines)—
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3121 sip_alloc: Allocating new SIP dialog for 2660829760Cvhd@192.168.0.75 - REGISTER (No RTP)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:10973 handle_request: **** Received REGISTER (2) - Command in SIP REGISTER
Using latest REGISTER request as basis request
Sending to 192.168.0.75 : 5060 (non-NAT)
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacQNRvhdP;received=192.168.0.75
From: sip:305@192.168.0.75;tag=1c1054629685
To: sip:305@192.168.0.75
Call-ID: 2660829760Cvhd@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:305@192.168.0.52
Content-Length: 0


Jul 15 17:39:28 DEBUG[16149]: chan_sip.c:11494 sip_devicestate: Checking device state for peer 304
Jul 15 17:39:28 DEBUG[16149]: devicestate.c:187 do_state_change: Changing state for SIP/304 - state 1 (Not in use)
– Saved useragent “Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350” for peer 305
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacQNRvhdP;received=192.168.0.75
From: sip:305@192.168.0.75;tag=1c1054629685
To: sip:305@192.168.0.75;tag=as37fda0b0
Call-ID: 2660829760Cvhd@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 180
Contact: sip:305@192.168.0.75;user=phone;expires=180
Date: Sat, 15 Jul 2006 12:09:28 GMT
Content-Length: 0


Scheduling destruction of call ‘2660829760Cvhd@192.168.0.75’ in 15000 ms

<-- SIP read from 192.168.0.75:5060:
REGISTER sip:192.168.0.52 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKaccQuycgK
Max-Forwards: 70
From: sip:306@192.168.0.75;tag=1c191145485
To: sip:306@192.168.0.75
Call-ID: 63879538aTXB@192.168.0.75
CSeq: 5 REGISTER
Contact: sip:306@192.168.0.75;user=phone;expires=180
Supported: em,timer,replaces,path
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Expires: 180
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Content-Length: 0

Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 0: REGISTER sip:192.168.0.52 SIP/2.0 (33)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 1: Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKaccQuycgK (53)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 2: Max-Forwards: 70 (16)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 3: From: sip:306@192.168.0.75;tag=1c191145485 (44)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 4: To: sip:306@192.168.0.75 (26)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 5: Call-ID: 63879538aTXB@192.168.0.75 (34)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 6: CSeq: 5 REGISTER (16)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 7: Contact: sip:306@192.168.0.75;user=phone;expires=180 (54)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 8: Supported: em,timer,replaces,path (33)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 9: Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE (86)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 10: Expires: 180 (12)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 11: User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350 (60)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 12: Content-Length: 0 (17)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 13: (0)
— (13 headers 0 lines)—
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3121 sip_alloc: Allocating new SIP dialog for 63879538aTXB@192.168.0.75 - REGISTER (No RTP)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:10973 handle_request: **** Received REGISTER (2) - Command in SIP REGISTER
Using latest REGISTER request as basis request
Sending to 192.168.0.75 : 5060 (non-NAT)
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKaccQuycgK;received=192.168.0.75
From: sip:306@192.168.0.75;tag=1c191145485
To: sip:306@192.168.0.75
Call-ID: 63879538aTXB@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:306@192.168.0.52
Content-Length: 0


Jul 15 17:39:28 DEBUG[16170]: app_queue.c:471 changethread: Device ‘SIP/304’ changed to state ‘1’ (Not in use)
Jul 15 17:39:28 DEBUG[16149]: chan_sip.c:11494 sip_devicestate: Checking device state for peer 305
Jul 15 17:39:28 DEBUG[16149]: devicestate.c:187 do_state_change: Changing state for SIP/305 - state 1 (Not in use)
– Saved useragent “Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350” for peer 306
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKaccQuycgK;received=192.168.0.75
From: sip:306@192.168.0.75;tag=1c191145485
To: sip:306@192.168.0.75;tag=as06e428c4
Call-ID: 63879538aTXB@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 180
Contact: sip:306@192.168.0.75;user=phone;expires=180
Date: Sat, 15 Jul 2006 12:09:28 GMT
Content-Length: 0


Scheduling destruction of call ‘63879538aTXB@192.168.0.75’ in 15000 ms

<-- SIP read from 192.168.0.75:5060:
REGISTER sip:192.168.0.52 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacapbXJFr
Max-Forwards: 70
From: sip:307@192.168.0.75;tag=1c2489911270
To: sip:307@192.168.0.75
Call-ID: 20965247zseQ@192.168.0.75
CSeq: 5 REGISTER
Contact: sip:307@192.168.0.75;user=phone;expires=180
Supported: em,timer,replaces,path
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Expires: 180
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Content-Length: 0

Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 0: REGISTER sip:192.168.0.52 SIP/2.0 (33)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 1: Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacapbXJFr (53)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 2: Max-Forwards: 70 (16)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 3: From: sip:307@192.168.0.75;tag=1c2489911270 (45)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 4: To: sip:307@192.168.0.75 (26)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 5: Call-ID: 20965247zseQ@192.168.0.75 (34)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 6: CSeq: 5 REGISTER (16)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 7: Contact: sip:307@192.168.0.75;user=phone;expires=180 (54)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 8: Supported: em,timer,replaces,path (33)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 9: Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE (86)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 10: Expires: 180 (12)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 11: User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350 (60)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 12: Content-Length: 0 (17)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 13: (0)
— (13 headers 0 lines)—
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3121 sip_alloc: Allocating new SIP dialog for 20965247zseQ@192.168.0.75 - REGISTER (No RTP)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:10973 handle_request: **** Received REGISTER (2) - Command in SIP REGISTER
Using latest REGISTER request as basis request
Sending to 192.168.0.75 : 5060 (non-NAT)
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacapbXJFr;received=192.168.0.75
From: sip:307@192.168.0.75;tag=1c2489911270
To: sip:307@192.168.0.75
Call-ID: 20965247zseQ@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:307@192.168.0.52
Content-Length: 0


Jul 15 17:39:28 DEBUG[16171]: app_queue.c:471 changethread: Device ‘SIP/305’ changed to state ‘1’ (Not in use)
Jul 15 17:39:28 DEBUG[16149]: chan_sip.c:11494 sip_devicestate: Checking device state for peer 306
Jul 15 17:39:28 DEBUG[16149]: devicestate.c:187 do_state_change: Changing state for SIP/306 - state 1 (Not in use)
– Saved useragent “Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350” for peer 307
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacapbXJFr;received=192.168.0.75
From: sip:307@192.168.0.75;tag=1c2489911270
To: sip:307@192.168.0.75;tag=as7699d92c
Call-ID: 20965247zseQ@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 180
Contact: sip:307@192.168.0.75;user=phone;expires=180
Date: Sat, 15 Jul 2006 12:09:28 GMT
Content-Length: 0


Scheduling destruction of call ‘20965247zseQ@192.168.0.75’ in 15000 ms

<-- SIP read from 192.168.0.75:5060:
REGISTER sip:192.168.0.52 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacwjnjVzD
Max-Forwards: 70
From: sip:308@192.168.0.75;tag=1c176464016
To: sip:308@192.168.0.75
Call-ID: 305721864wxso@192.168.0.75
CSeq: 5 REGISTER
Contact: sip:308@192.168.0.75;user=phone;expires=180
Supported: em,timer,replaces,path
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Expires: 180
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Content-Length: 0

Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 0: REGISTER sip:192.168.0.52 SIP/2.0 (33)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 1: Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacwjnjVzD (53)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 2: Max-Forwards: 70 (16)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 3: From: sip:308@192.168.0.75;tag=1c176464016 (44)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 4: To: sip:308@192.168.0.75 (26)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 5: Call-ID: 305721864wxso@192.168.0.75 (35)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 6: CSeq: 5 REGISTER (16)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 7: Contact: sip:308@192.168.0.75;user=phone;expires=180 (54)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 8: Supported: em,timer,replaces,path (33)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 9: Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE (86)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 10: Expires: 180 (12)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 11: User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350 (60)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 12: Content-Length: 0 (17)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 13: (0)
— (13 headers 0 lines)—
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:3121 sip_alloc: Allocating new SIP dialog for 305721864wxso@192.168.0.75 - REGISTER (No RTP)
Jul 15 17:39:28 DEBUG[16162]: chan_sip.c:10973 handle_request: **** Received REGISTER (2) - Command in SIP REGISTER
Using latest REGISTER request as basis request
Sending to 192.168.0.75 : 5060 (non-NAT)
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacwjnjVzD;received=192.168.0.75
From: sip:308@192.168.0.75;tag=1c176464016
To: sip:308@192.168.0.75
Call-ID: 305721864wxso@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:308@192.168.0.52
Content-Length: 0


Jul 15 17:39:28 DEBUG[16172]: app_queue.c:471 changethread: Device ‘SIP/306’ changed to state ‘1’ (Not in use)
Jul 15 17:39:28 DEBUG[16149]: chan_sip.c:11494 sip_devicestate: Checking device state for peer 307
Jul 15 17:39:28 DEBUG[16149]: devicestate.c:187 do_state_change: Changing state for SIP/307 - state 1 (Not in use)
– Saved useragent “Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350” for peer 308
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacwjnjVzD;received=192.168.0.75
From: sip:308@192.168.0.75;tag=1c176464016
To: sip:308@192.168.0.75;tag=as271f6664
Call-ID: 305721864wxso@192.168.0.75
CSeq: 5 REGISTER
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 180
Contact: sip:308@192.168.0.75;user=phone;expires=180
Date: Sat, 15 Jul 2006 12:09:28 GMT
Content-Length: 0


Scheduling destruction of call ‘305721864wxso@192.168.0.75’ in 15000 ms
Jul 15 17:39:28 DEBUG[16173]: app_queue.c:471 changethread: Device ‘SIP/307’ changed to state ‘1’ (Not in use)
Jul 15 17:39:28 DEBUG[16149]: chan_sip.c:11494 sip_devicestate: Checking device state for peer 308
Jul 15 17:39:28 DEBUG[16149]: devicestate.c:187 do_state_change: Changing state for SIP/308 - state 2 (In use)
Jul 15 17:39:28 DEBUG[16174]: app_queue.c:471 changethread: Device ‘SIP/308’ changed to state ‘2’ (In use)
Jul 15 17:39:30 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 49 (1), at 192.168.0.75
Jul 15 17:39:30 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 0 sample intervals
Jul 15 17:39:30 DEBUG[16164]: channel.c:2355 set_format: Set channel SIP/308-87f2 to write format ulaw
Jul 15 17:39:31 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 48 (0), at 192.168.0.75
Jul 15 17:39:31 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 48 (0), at 192.168.0.75
Jul 15 17:39:31 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 49 (1), at 192.168.0.75
Jul 15 17:39:32 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 35 (#), at 192.168.0.75
Jul 15 17:39:32 DEBUG[16164]: channel.c:2355 set_format: Set channel SIP/308-87f2 to write format gsm
Jul 15 17:39:32 DEBUG[16164]: rtp.c:1249 ast_rtp_raw_write: Difference is 12512, ms is 1584
Jul 15 17:39:32 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 160 sample intervals
– Playing ‘agent-pass’ (language ‘en’)
Jul 15 17:39:35 DEBUG[16164]: rtp.c:410 ast_rtcp_read: Got RTCP report of 68 bytes
Jul 15 17:39:35 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 0 sample intervals
Jul 15 17:39:35 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 0 sample intervals
Jul 15 17:39:35 DEBUG[16164]: channel.c:2355 set_format: Set channel SIP/308-87f2 to write format ulaw
Jul 15 17:39:35 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 52 (4), at 192.168.0.75
Jul 15 17:39:36 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 51 (3), at 192.168.0.75
Jul 15 17:39:36 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 50 (2), at 192.168.0.75
Jul 15 17:39:36 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 49 (1), at 192.168.0.75
Jul 15 17:39:37 DEBUG[16164]: rtp.c:192 send_dtmf: Sending dtmf: 35 (#), at 192.168.0.75
Jul 15 17:39:37 DEBUG[16164]: channel.c:2355 set_format: Set channel SIP/308-87f2 to write format gsm
Jul 15 17:39:37 DEBUG[16164]: rtp.c:1249 ast_rtp_raw_write: Difference is 14248, ms is 1801
Jul 15 17:39:37 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 160 sample intervals
– Playing ‘agent-loginok’ (language ‘en’)
Jul 15 17:39:38 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 0 sample intervals
Jul 15 17:39:38 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 0 sample intervals
Jul 15 17:39:38 DEBUG[16164]: channel.c:2355 set_format: Set channel SIP/308-87f2 to write format ulaw
Jul 15 17:39:38 DEBUG[16164]: channel.c:2355 set_format: Set channel SIP/308-87f2 to read format ulaw
Jul 15 17:39:38 DEBUG[16164]: channel.c:2355 set_format: Set channel SIP/308-87f2 to write format ulaw
Jul 15 17:39:38 DEBUG[16164]: channel.c:2355 set_format: Set channel SIP/308-87f2 to write format slin
– Started music on hold, class ‘default’, on channel 'SIP/308-87f2’
Jul 15 17:39:38 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 160 sample intervals
== Agent ‘1001’ logged in (format ulaw/slin)
Jul 15 17:39:38 DEBUG[16164]: chan_agent.c:1157 check_availability: Checking availability of '1001’
Jul 15 17:39:38 DEBUG[16149]: devicestate.c:187 do_state_change: Changing state for Agent/1001 - state 1 (Not in use)
Jul 15 17:39:38 DEBUG[16175]: app_queue.c:471 changethread: Device ‘Agent/1001’ changed to state ‘1’ (Not in use)
Jul 15 17:39:38 DEBUG[16164]: chan_agent.c:1989 __login_exec: Wrapup time for 1001 expired!
Jul 15 17:39:38 DEBUG[16164]: chan_agent.c:1157 check_availability: Checking availability of '1001’
Jul 15 17:39:38 DEBUG[16164]: channel.c:1980 ast_read: Generator got voice, switching to phase locked mode
Jul 15 17:39:38 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 0 sample intervals
Jul 15 17:39:38 DEBUG[16150]: res_musiconhold.c:526 monmp3thread: Read 184 bytes of audio while expecting 640
Jul 15 17:39:38 DEBUG[16150]: res_musiconhold.c:526 monmp3thread: Read 184 bytes of audio while expecting 640
Jul 15 17:39:38 DEBUG[16164]: channel.c:1989 ast_read: Auto-deactivating generator
Jul 15 17:39:38 DEBUG[16164]: channel.c:2355 set_format: Set channel SIP/308-87f2 to write format ulaw
– Stopped music on hold on SIP/308-87f2
Jul 15 17:39:38 DEBUG[16164]: channel.c:1718 ast_settimeout: Scheduling timer at 0 sample intervals
Jul 15 17:39:41 DEBUG[16164]: rtp.c:410 ast_rtcp_read: Got RTCP report of 68 bytes
Jul 15 17:39:43 DEBUG[16162]: chan_sip.c:1316 __sip_autodestruct: Auto destroying call '2651118276iSEA@192.168.0.75’
Destroying call '2651118276iSEA@192.168.0.75’
Jul 15 17:39:43 DEBUG[16162]: chan_sip.c:1316 __sip_autodestruct: Auto destroying call '1719321253XQCy@192.168.0.75’
Destroying call '1719321253XQCy@192.168.0.75’
Jul 15 17:39:43 DEBUG[16162]: chan_sip.c:1316 __sip_autodestruct: Auto destroying call '3155718779tmYK@192.168.0.75’
Destroying call '3155718779tmYK@192.168.0.75’
Jul 15 17:39:43 DEBUG[16162]: chan_sip.c:1316 __sip_autodestruct: Auto destroying call '2999117213nykg@192.168.0.75’
Destroying call '2999117213nykg@192.168.0.75’
Jul 15 17:39:43 DEBUG[16162]: chan_sip.c:1316 __sip_autodestruct: Auto destroying call '2660829760Cvhd@192.168.0.75’
Destroying call '2660829760Cvhd@192.168.0.75’
Jul 15 17:39:43 DEBUG[16162]: chan_sip.c:1316 __sip_autodestruct: Auto destroying call '63879538aTXB@192.168.0.75’
Destroying call '63879538aTXB@192.168.0.75’
Jul 15 17:39:43 DEBUG[16162]: chan_sip.c:1316 __sip_autodestruct: Auto destroying call '20965247zseQ@192.168.0.75’
Destroying call '20965247zseQ@192.168.0.75’
Jul 15 17:39:43 DEBUG[16162]: chan_sip.c:1316 __sip_autodestruct: Auto destroying call '305721864wxso@192.168.0.75’
Destroying call '305721864wxso@192.168.0.75’
Jul 15 17:39:48 DEBUG[16164]: rtp.c:410 ast_rtcp_read: Got RTCP report of 44 bytes

<-- SIP read from 192.168.0.75:5060:
BYE sip:111@192.168.0.52 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacSPLPtxb
Max-Forwards: 70
From: sip:308@192.168.0.75;tag=1c133924306
To: sip:111@192.168.0.52;user=phone;tag=as4e2d6d5a
Call-ID: 2918622768Dwie@192.168.0.75
CSeq: 2 BYE
Contact: sip:308@192.168.0.75
Supported: em,timer,replaces,path
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Content-Length: 0

Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 0: BYE sip:111@192.168.0.52 SIP/2.0 (32)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 1: Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacSPLPtxb (53)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 2: Max-Forwards: 70 (16)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 3: From: sip:308@192.168.0.75;tag=1c133924306 (44)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 4: To: sip:111@192.168.0.52;user=phone;tag=as4e2d6d5a (52)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 5: Call-ID: 2918622768Dwie@192.168.0.75 (36)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 6: CSeq: 2 BYE (11)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 7: Contact: sip:308@192.168.0.75 (31)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 8: Supported: em,timer,replaces,path (33)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 9: Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE (86)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 10: User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350 (60)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 11: Content-Length: 0 (17)
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:3337 parse_request: Header 12: (0)
— (12 headers 0 lines)—
Jul 15 17:39:48 DEBUG[16162]: chan_sip.c:10973 handle_request: **** Received BYE (8) - Command in SIP BYE
Sending to 192.168.0.75 : 5060 (non-NAT)
Transmitting (no NAT) to 192.168.0.75:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.75;branch=z9hG4bKacSPLPtxb;received=192.168.0.75
From: sip:308@192.168.0.75;tag=1c133924306
To: sip:111@192.168.0.52;user=phone;tag=as4e2d6d5a
Call-ID: 2918622768Dwie@192.168.0.75
CSeq: 2 BYE
User-Agent: Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:111@192.168.0.52
Content-Length: 0


== Agent ‘1001’ logged out
Jul 15 17:39:48 DEBUG[16164]: pbx.c:2304 __ast_pbx_run: Spawn extension (default,111,1) exited non-zero on 'SIP/308-87f2’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '308’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '308’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '111’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'default’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'SIP/308-87f2’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '(null)'
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'AgentLogin’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '(null)'
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '2006-07-15 17:39:27’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '2006-07-15 17:39:27’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '2006-07-15 17:39:48’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '21’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '21’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'ANSWERED’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is 'DOCUMENTATION’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '(null)'
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '1152965367.0’
Jul 15 17:39:48 DEBUG[16164]: pbx.c:1510 pbx_substitute_variables_helper_full: Function result is '(null)'
Jul 15 17:39:48 DEBUG[16164]: channel.c:1330 ast_hangup: Hanging up channel 'SIP/308-87f2’
Jul 15 17:39:48 DEBUG[16164]: chan_sip.c:2411 sip_hangup: Hangup call SIP/308-87f2, SIP callid 2918622768Dwie@192.168.0.75)
Jul 15 17:39:48 DEBUG[16164]: chan_sip.c:2419 sip_hangup: update_call_counter(308) - decrement call limit counter
Jul 15 17:39:48 DEBUG[16164]: chan_sip.c:2202 update_call_counter: Updating call counter for incoming call
Jul 15 17:39:48 DEBUG[16149]: devicestate.c:187 do_state_change: Changing state for Agent/1001 - state 5 (Unavailable)
Jul 15 17:39:48 DEBUG[16149]: chan_sip.c:11494 sip_devicestate: Checking device state for peer 308
Jul 15 17:39:48 DEBUG[16149]: devicestate.c:187 do_state_change: Changing state for SIP/308 - state 1 (Not in use)
Jul 15 17:39:48 DEBUG[16177]: app_queue.c:471 changethread: Device ‘Agent/1001’ changed to state ‘5’ (Unavailable)
Jul 15 17:39:48 DEBUG[16178]: app_queue.c:471 changethread: Device ‘SIP/308’ changed to state ‘1’ (Not in use)
Destroying call ‘2918622768Dwie@192.168.0.75’

[/code]

I have attached the SIP debug result. Can any one see why the Agent gets log off?
We are now using 1.2.6 Version asterisk

Thanks[code][general]
useragent=Audiocodes-Sip-Gateway-MP-108 FXS/v.4.40.193.350
port=5060
bindaddr=0.0.0.0
;context=default
;context=incoming203.196.128.58
;tos=lowdelay
;disallow=all
;allow=g729
allow=ulaw
;allow=alaw
canreinvite=yes

;Dishnet

[301]
type=friend
username=301
;secret=1234
host=dynamic

[302]
type=friend
username=302
;secret=1234
host=dynamic

[303]
type=friend
username=303
;secret=1234
host=dynamic

[304]
type=friend
username=304
;secret=1234
host=dynamic

[305]
type=friend
username=305
;secret=1234
host=dynamic

[306]
type=friend
username=306
;secret=1234
host=dynamic

[307]
type=friend
username=307
;secret=1234
host=dynamic

[308]
type=friend
username=308
;secret=1234
host=dynamic
disallow=all
allow=ulaw

[309]
type=friend
username=309
secret=1234
host=dynamic

extens.conf

[/code]