[Freeswitch-users] mod_callcenter real answer

Gustavo Mársico gustavomarsico at gmail.com
Wed May 16 23:46:34 MSD 2012


Evginey:

These are the changes we made:

--- mod_callcenter.c.orig	2012-01-11 20:23:34.000000000 -0300
+++ mod_callcenter.c	2012-01-26 15:31:15.000000000 -0300
@@ -1420,6 +1420,7 @@
 		switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CC-Member-CID-Name", h->member_cid_name);
 		switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CC-Member-CID-Number", h->member_cid_number);
 		switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CC-Member-DNIS", member_dnis);
+		switch_event_add_header(event, SWITCH_STACK_BOTTOM, "CC-Member-Joined-Time", "%" SWITCH_TIME_T_FMT, t_member_called);
 		switch_event_fire(&event);
 	}
 
@@ -2408,7 +2409,7 @@
 	}
 
 	/* Make sure we answer the channel before getting the switch_channel_time_table_t answer time */
-	switch_channel_answer(member_channel);
+	switch_channel_pre_answer(member_channel);
 
 	/* Grab the start epoch of a channel */
 	times = switch_channel_get_timetable(member_channel);




On May 15, 2012, at 7:19 PM, Gustavo Mársico wrote:

> Hi Evginey
> 
> I made that change a few days ago, due a scenario where dialer is used. In fact, dialer dials to a queue first instead of customer.
> All I did was replace in the code "answer" by "pre_answer" in some place. I've no the code right now, but I can send it to you later.
> 
> Regards
> 
> Gustavo
> 
> 
> On May 15, 2012, at 6:15 AM, Евгений wrote:
> 
>> Hi, colleagues.
>> 
>> Could I have real answer for client on mod_callcenter, when agent answers?
>> Or there is another way to queue call between 2 FreeSwitch. 
>> For example, client's call has to be routed to two FS servers, which has different agents in queues. But answer comes from first server when application CALLCENTER is called. How can I do this?
>> 
>> Best Regards, Evginey.
>> http://blog.buchnev.ru
>> 
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> 
>> 
>> 
>> 
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>> 
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120516/16569c76/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list