<html><head><meta http-equiv="Content-Type" content="text/html charset=gb2312"><meta http-equiv="Content-Type" content="text/html charset=gb2312"><meta http-equiv="Content-Type" content="text/html charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">All:<div class=""> recently i write a small program based freeswitch, in this program i only do things like callcenter mod,</div><div class="">here is what i do:</div><div class=""><br class=""></div><div class=""> 1. originate a call (Ą° originate sofia/gateway/gw01/xxxx my-out-call XML defaultĄ±), in the default.xml,</div><div class=""> i already config it as follow:</div><div class=""><br class=""></div><div class=""> <span style="font-family: 'Andale Mono'; background-color: rgb(0, 0, 0); color: rgb(255, 246, 244);" class=""> </span><span style="font-family: 'Andale Mono'; background-color: rgb(0, 0, 0); color: rgb(52, 187, 199);" class=""><extension </span><span style="font-family: 'Andale Mono'; background-color: rgb(0, 0, 0); color: rgb(52, 189, 38);" class="">name</span><span style="font-family: 'Andale Mono'; background-color: rgb(0, 0, 0); color: rgb(255, 246, 244);" class="">=</span><span style="background-color: rgb(0, 0, 0);" class=""><font color="#c33720" face="Andale Mono" class="">Ą°my-call-out"</font></span><span style="font-family: 'Andale Mono'; background-color: rgb(0, 0, 0); color: rgb(52, 187, 199);" class="">></span></div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(195, 55, 32); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""> 65 </span><span style="font-variant-ligatures: no-common-ligatures; color: #fff6f4" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class=""><condition </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">field</span><span style="font-variant-ligatures: no-common-ligatures; color: #fff6f4" class="">=</span>"destination_number"<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">expression</span><span style="font-variant-ligatures: no-common-ligatures; color: #fff6f4" class="">=</span>"^my-call-out$"<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">></span></div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(195, 55, 32); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""> 66 </span><span style="font-variant-ligatures: no-common-ligatures; color: #fff6f4" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class=""><action </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">application</span><span style="font-variant-ligatures: no-common-ligatures; color: #fff6f4" class="">=</span>"socket"<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">data</span><span style="font-variant-ligatures: no-common-ligatures; color: #fff6f4" class="">=</span>"127.0.0.1:9600 async full"<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">/></span></div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""> 67 </span><span style="font-variant-ligatures: no-common-ligatures; color: #fff6f4" class=""> </span><!-- <action application="log" data="This is ax-call-out-park"/></div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""> 68 </span> <action application="answer" /></div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""> 69 </span> <action application="playback" data="/usr/local/freeswitch/sounds/1.wav"/></div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""> 70 </span> </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(83, 48, 225); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""> 71 </span> <action application="park" data=""/> --></div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""> 72 </span><span style="font-variant-ligatures: no-common-ligatures; color: #fff6f4" class=""> </span></condition></div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""> 73 </span><span style="font-variant-ligatures: no-common-ligatures; color: #fff6f4" class=""> </span></extension></div><div class=""> </div><div class=""> 2. when call-out-destination customer pick up the call, i control the flow to playback a wav file, then ,</div><div class=""> bridge the call to a free agent while the wav file play over in CHANNEL_EXECUTE_COMPLETE,</div><div class=""> these steps run normally ok.</div><div class=""><br class=""></div><div class=""> 3. the question is : if i have two agent in one moment, and this time i have 3 or > 3 out-call to bridge, </div><div class=""> iĄŻll leave the other call do nothing,for i can not get more free agents to service; some special scene</div><div class=""> is i have two agents (A1,A2) service 3 call (C1,C2,C3), A1 service C1, A2 service C2,then C3 is only </div><div class=""> A-LEG when play over a wav file,about 100 seconds later, C3 is hangup(itĄŻs not user hangup manually),</div><div class=""> how can i do make the C3 call not hangup until i get a free agent to service it?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> any suggest is appreciate,</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> <a href="mailto:ax.lyb.lei@gmail.com" class="">ax.lyb.lei@gmail.com</a></div><div class=""> </div></body></html>