When outgoing call fired,Call-Center agent gets Logged Out

I am having asterisk-1.6.0.26, dahdi-linux-2.2.1.1,dahdi-tools-2.2.1.1, asterisk-addons-1.6.0.4 on my fedora fc-8 system.

I have created the call center setup in asterisk. I am having 2 agents 1000 and 2000 registered for my process.
My inbound calling is working well. There is no problem.

My agents make login to call center by dialing **1. When the agent is idle,my outbound call script will fires the calls.
The call is fired through PRI line on our mobile Phones.
When the call is picked up on mobile, my [color=#FF0000]agent gets logged out[/color]. (Only Some times the call is transfered to the agents). Dont know why the call center agent gets logged out ?

Following is my configuration files:

sip.conf

[1000]
type=friend
username=1000
secret=1234
context=default
host=dynamic
canreinvite=yes
nat=yes
disallow=all
allow=all
;allow=g729
;allow=gsm
;allow=alaw

[2000]
type=friend
username=2000
secret=1234
context=default
host=dynamic
canreinvite=yes
nat=yes
disallow=all
allow=all
;allow=g729
;allow=gsm
;allow=alaw

extensions.conf

[P-1-ENG-Outgoing]
exten => _X.,1,Answer()
exten => _X.,n,Queue(Process-1-English,tT,300) ; cc

queues.conf

[Process-1-English]
strategy = ringall
context = Process-1-English-Callback
timeout = 15
wrapuptime=15
announce-frequency = 30
announce-holdtime = yes
announce-position = yes
joinempty = yes
queue-youarenext = /home/urmi/call-center/diopulse-callcenter-ivrs/english/hepbeat/busy
queue-thankyou = /home/urmi/call-center/diopulse-callcenter-ivrs/english/hepbeat/hold
;member => Agent/:1,1
member => Agent/1000
member => Agent/2000

agents.conf

agent => 1000
agent => 2000

Here is my CLI log :

*CLI> == Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
– Executing [**1@default:1] AgentLogin(“SIP/2000-00000001”, “2000”) in new stack
– <SIP/2000-00000001> Playing ‘agent-loginok.gsm’ (language ‘en’)

CLI> agent show
1000 not logged in (musiconhold is ‘default’)
2000 logged in on SIP/2000-00000000 is idle (musiconhold is ‘default’)
2 agents configured [1 online , 1 offline]

*CLI>
*CLI> – Attempting call on DAHDI/g0/9821878712 for _X.@P-1-ENG-Outgoing:1 (Retry 1)
– Requested transfer capability: 0x00 - SPEECH
*CLI>
*CLI> > Channel DAHDI/1-1 was answered.
– Executing [_X.@P-1-ENG-Outgoing:1] Answer(“DAHDI/1-1”, “”) in new stack
– Executing [_X.@P-1-ENG-Outgoing:2] Queue(“DAHDI/1-1”, “Process-1-English,tT,300”) in new stack
– Started music on hold, class ‘default’, on DAHDI/1-1
– Stopped music on hold on SIP/2000-00000000

– agent_call, call to agent ‘2000’ call on ‘SIP/2000-00000000’
[color=#FF0000]-- Couldn’t call Agent/2000
== Agent ‘2000’ logged out[/color]
== Spawn extension (default, **1, 1) exited non-zero on ‘SIP/2000-00000000’
*CLI>
*CLI>
*CLI> – Stopped music on hold on DAHDI/1-1
– Started music on hold, class ‘default’, on DAHDI/1-1
– Stopped music on hold on DAHDI/1-1
– <DAHDI/1-1> Playing ‘/home/urmi/call-center/diopulse-callcenter-ivrs/english/hepbeat/busy.slin’ (language ‘en’)

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

Please, tell me what is wrong with this ?

Thanks for your support.

-Urmi

Hello,

My soft phone gets gets logged out after few mins only. Sometimes its working fine. and sometimes its gets logged out.

– agent_call, call to agent ‘2000’ call on ‘SIP/2000-00000000’
– Couldn’t call Agent/2000
== Agent ‘2000’ logged out
== Spawn extension (default, **1, 1) exited non-zero on ‘SIP/2000-00000000’

Can any one please suggest me what is wrong ?

Thanks for your support.

-Urmi