[FS-9894] mod_callcenter: timeout to call an agent hardcoded to 60sec Created: 28/Dec/16  Updated: 16/Jan/17

Status: Waiting for reporter
Project: FreeSWITCH
Component/s: mod_callcenter
Affects Version/s: None
Fix Version/s: None
Security Level: public

Type: Bug Priority: Minor
Reporter: Antonio Assignee: Italo Rossi
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File freeswitch.29-12-2016.log     Text File freeswitch.30-12-2016.log     Text File freeswitch.log     XML File freeswitch.xml    
CPU Architecture:
x86-64
Kernel:
Linux
Userland:
GNU/Linux
Distribution:
Debian
Distribution Version:
Debian 8 jessie
Compiler:
gcc
FreeSWITCH GIT Revision: 50714ec5e4eb14976695ff29bc6528e0b9a16862
GIT Master Revision hash:: 50714ec5e4eb14976695ff29bc6528e0b9a16862

 Description   
when calling an agent the maximum time is hardcoded to be 60seconds.

Try to set call_timeout, leg_timeout to more than 60sec but the call always ends after 60seconds.

is not normal, but I've a client where he wants an agent to ring for 120seconds before jumping to another agent.

 Comments   
Comment by Italo Rossi [ 29/Dec/16 ]
This shouldn't be needed. Tried with leg_timeout=120 and it worked. Do not use call_timeout. This should be a limitation with your devices.
Comment by Antonio [ 29/Dec/16 ]
hi,
is not limitation on the device, soon i put the pr patch it worked as expected.

in the log you can see i use both, leg_timeout and call_timeout as export before calling the callcenter and also in the agent contact and it didn't work.
from the log line:
2016-12-28 13:12:26.291133 [DEBUG] switch_ivr_originate.c:2958 sofia/a/200@192.168.10.103:5062 Setting leg timeout to 120

here it sets the timeout to 120seconds, but the call gets terminated by the 60seconds timeout hardcoded callcenter when calling the switch_ivr_originate function.

2016-12-28 13:13:26.011184 [NOTICE] switch_ivr_originate.c:3606 Hangup sofia/a/200@192.168.10.103:5062 [CS_CONSUME_MEDIA] [NO_ANSWER]

how do you make it work?

Comment by Antonio [ 29/Dec/16 ]
Tested with latest git just in case... and same result.

Attached my configuration and log when calling the callcenter.

The call setup:
201 --> 123 (callcenter) --> 200 (agent)
Comment by Brian West [ 30/Dec/16 ]
You need to attach full logs on the latest git release with sip trace included.

/b
Comment by Antonio [ 30/Dec/16 ]
File attached
Comment by Italo Rossi [ 16/Jan/17 ]
Can you post your agent contact and your dialplan please?
Comment by Antonio [ 16/Jan/17 ]
full configuration attached as freeswitch.xml.

in the contact i've set: contact="[leg_timeout=120]sofia/a/sip:200@192.168.10.103:5062"
Generated at Wed Feb 22 17:07:35 EST 2017 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.