[FS-9894] mod_callcenter: timeout to call an agent hardcoded to 60sec Created: 28/Dec/16  Updated: 27/Apr/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:
Distribution Version:
Debian 8 jessie
FreeSWITCH GIT Revision: 50714ec5e4eb14976695ff29bc6528e0b9a16862
GIT Master Revision hash:: 50714ec5e4eb14976695ff29bc6528e0b9a16862

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.

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 ]
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@ 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@ [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.

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@"
Comment by Antonio [ 27/Apr/17 ]
ping... for some reason the issue is on state: Waiting for reporter, and i provide the log and configuration to reproduce the issue...
Generated at Thu May 25 13:18:54 CDT 2017 using JIRA 7.3.3#73014-sha1:d5be8da522213be2ca9ad7b043c51da6e4cc9754.