<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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="DE-CH" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">You must set ignore_early_media=true
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="DE">Von:</span></b><span lang="DE"> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org>
<b>Im Auftrag von </b>Julien Terrasson<br>
<b>Gesendet:</b> Mittwoch, 19. Juni 2019 16:23<br>
<b>An:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Betreff:</b> [Freeswitch-users] group_confirm_key=exec : freeswitch start exec on 183-session progress instead of 200-OK..<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Good morning,<br>
<br>
I'm using freeswitch Version 1.8.2 -3-a98a958ac3 64bit, and i have an issue with the following scenario :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I bridge an outgoing call through a PSTN gateway, using group_confirm_key = exec, mainly to ask the called party confirmation before establishing the call.
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">To do this, i use group_confirm_key=exec to start a lua script that :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">* Plays a vocal prompt to warn the calleR party that he has to wait for his call to be accepted.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">* Plays a vocal prompt to request the calleD to press a DTMF to confirm that he accept the call.<br>
<br>
This worked fine until i start dialing numbers that make the PSTN gateway to return a 183-session progress before 200-OK.<br>
When this happen, the group_confirm script is triggered on reception of 183-session progress : before the calleD party actually has answered the call !<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Maybe i'm missing something, but I don't get why group_confirm_key=exec start on 183-session progress, as per my understanding, confirmation message should be requested only when B party has answered (200-OK).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Does somebody knows how group_confirm_key=exec is supposed to work ?<br>
Should this be reported as an issue ?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">J.Terrasson<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>