<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using call screen feature and it works great for calls to single endpoints. However when call bridges to multiple endpoints the other endpoints continue to ring after one endpoint is answered. They are hungup on the accept/reject,
but they should be hungup on answer.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">These are the variables I am setting up before call_screen:<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "ignore_early_media", "true");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "send_silence_when_idle", "10000"); // Eliminates initial white noise<o:p></o:p></p>
<p class="MsoNormal"> p = switch_channel_get_variable(channel, "caller_id_number");<o:p></o:p></p>
<p class="MsoNormal"> s = switch_channel_get_variable(channel, "uuid");<o:p></o:p></p>
<p class="MsoNormal"> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "screen_call: caller_id_number='%s', variable_uuid='%s'\n", p, s);<o:p></o:p></p>
<p class="MsoNormal"> switch_snprintf(q, 256, "/tmp/%s-%s-name.wav", p, s);<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "call_screen_filename", q);<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "group_confirm_key", "exec");<o:p></o:p></p>
<p class="MsoNormal"> switch_core_session_execute_application(session, "answer", NULL);<o:p></o:p></p>
<p class="MsoNormal"> switch_core_session_execute_application(session, "sleep", "1000");<o:p></o:p></p>
<p class="MsoNormal"> switch_snprintf(r, 256, "callscreen_record_name,%s", dn);<o:p></o:p></p>
<p class="MsoNormal"> switch_core_session_execute_application(session, "phrase", r);<o:p></o:p></p>
<p class="MsoNormal"> switch_core_session_execute_application(session, "playback", "tone_stream://%(500, 0, 640)");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "playback_terminators", "#*0123456789");<o:p></o:p></p>
<p class="MsoNormal"> switch_snprintf(r, 256, "%s 7 200 2", q);<o:p></o:p></p>
<p class="MsoNormal"> switch_core_session_execute_application(session, "record", r);<o:p></o:p></p>
<p class="MsoNormal"> switch_core_session_execute_application(session, "set", "ringback=${hold_music}");<o:p></o:p></p>
<p class="MsoNormal"> switch_core_session_execute_application(session, "set", "transfer_ringback=${hold_music}");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "group_confirm_key", "exec");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "group_confirm_cancel_timeout", "60");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "origination_cancel_key", "2");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "group_confirm_read_timeout", "60");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "group_confirm_error_file", "/opt/teoswitch/lang/en/vm/vm-goodbye.wav");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "fail_on_single_reject", "true");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "continue_on_fail", "true");<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "call_timeout", "60");<o:p></o:p></p>
<p class="MsoNormal"> p = switch_channel_get_variable(channel, "uuid");<o:p></o:p></p>
<p class="MsoNormal"> switch_snprintf(r, 256, "callscreen %s %s", dn, p);<o:p></o:p></p>
<p class="MsoNormal"> switch_channel_set_variable(channel, "group_confirm_file", r);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#99A402">Robert Hadley</span><span style="font-size:14.0pt;color:#99A402"><br>
</span><i><span style="font-size:9.0pt;color:#4F6228">Software Engineer</span></i><i><span style="font-size:10.0pt;color:#4F6228"><o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#5C5C5C"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#BFBFBF"><img width="108" height="39" id="Picture_x0020_3" src="cid:image001.png@01CD9268.F0267A40" alt="Description: Description: Teo Logos (R)"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in">
<b><span style="font-size:9.0pt;color:#4F6228">Teo, formerly Tone Commander Systems
<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#9C9C9C">UC 425.349.1045<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#9C9C9C">WEB </span><a href="http://www.teotech.com/"><span style="font-size:9.0pt;color:blue">www.teotech.com</span></a><span style="font-size:10.0pt;color:#9C9C9C"><br>
</span><span style="font-size:8.0pt;color:#106470"><br>
</span><span style="font-size:10.0pt;color:#106470">CONNECT WITH </span><span style="font-size:9.0pt;color:#106470">US</span><span style="font-size:9.0pt;color:#A2A2A2"> </span><a href="http://facebook.com/TeoUC"><span style="font-size:9.0pt;color:blue">Facebook</span></a><span style="font-size:9.0pt;color:#A2A2A2">
| </span><a href="http://twitter.com/TeoTechUC"><span style="font-size:9.0pt;color:blue">Twitter</span></a><span style="font-size:9.0pt;color:#A2A2A2"> | </span><a href="http://youtube.com/TeoMedia"><span style="font-size:9.0pt;color:blue">YouTube</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>