<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
I've been doing a little playing around with conference calls and I've encountered some odd behaviour that perhaps someone can account for.
<div><br>
</div>
<div>I have a system with FreeSWITCH version 1.7 along with the FSClient (Client Id 5006). I have another system running FSClient (ClientId 5007).</div>
<div><br>
</div>
<div>I have the following extension added in my public dialplan:</div>
<div><br>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div>
<div><span style="font-size: 12pt;"> <extension name="group_dial_surveillance"></span></div>
</div>
<div>
<div> <condition field="destination_number" expression="^1000$"></div>
</div>
<div>
<div> <action application="set" data="hangup_after_bridge=true"/></div>
</div>
<div>
<div> <action application="set" data="continue_on_fail=true"/></div>
</div>
<div>
<div> <action application="set" data="originate_continue_on_timeout=true"/></div>
</div>
<div>
<div> <action application="set" data="call_timeout=0"/></div>
</div>
<div>
<div> <action application="set" data="ignore_early_media=true"/></div>
</div>
<div>
<div> <action application="bridge" data="${group_call(surveillance@${domain_name}+A)}"/></div>
</div>
<div>
<div> <action application="transfer" data="1000 XML default"/></div>
</div>
<div>
<div> <action application="hangup"/></div>
</div>
<div>
<div> </condition></div>
</div>
<div>
<div> </extension></div>
</div>
</blockquote>
<div><br>
</div>
<div>If I dial the number 1000 from a third softphone, then both FSClient phones ring and when one answers the call the other stops ringing.</div>
<div>No problem there - that's exactly what I would expect as the bridge application is being passed the output for a group_call on the surveillance group (consisting of users 5006 and 5007).</div>
<div><br>
</div>
<div>I also have the following Mad Boss extension in my dialplan:</div>
<div><br>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div>
<div> <extension name="Mad Boss"></div>
</div>
<div>
<div> <condition field="destination_number" expression="^0911$"></div>
</div>
<div>
<div> <action application="set" data="conference_auto_outcall_caller_id_name=Mad Boss1"/></div>
</div>
<div>
<div> <action application="set" data="conference_auto_outcall_caller_id_number=0911"/></div>
</div>
<div>
<div> <action application="set" data="conference_auto_outcall_timeout=60"/></div>
</div>
<div>
<div> <action application="set" data="conference_auto_outcall_flags=mute"/></div>
</div>
<div>
<div> <action application="set" data="end-conf-grace-time=1"/></div>
</div>
<div>
<div> <action application="set" data="conference_auto_outcall_prefix={sip_auto_answer=true}"/></div>
</div>
<div>
<div> <action application="set" data="sip_exclude_contact=${network_addr}"/></div>
</div>
<div>
<div> <action application="conference_set_auto_outcall" data="${group_call(surveillance@${domain_name}+A)}"/></div>
</div>
<div>
<div><!-- <action application="conference_set_auto_outcall" data="user/5006@$${domain}"/></div>
</div>
<div>
<div> <action application="conference_set_auto_outcall" data="user/5007@$${domain}"/> --></div>
</div>
<div>
<div> <action application="conference" data="madboss_intercom1@default+flags{endconf|deaf}"/></div>
</div>
<div>
<div> </condition></div>
</div>
<div>
<div> </extension></div>
</div>
</blockquote>
<div>
<div></div>
<div></div>
<br>
</div>
<div>The problem is that when the third softphone is used to dial 0911, only one of the two phones answers.</div>
<div><br>
</div>
<div>Looking through the log files I've found that when 1000 is dialled and the group_dial_surveillance extension is processed the following is logged:</div>
<div><br>
</div>
<div><span>EXECUTE sofia/internal/4008@10.51.54.185 bridge([^^:sip_invite_domain=10.51.54.76:presence_id=5006@10.51.54.76]sofia/internal/sip:gw+1@10.51.54.76:12346;transport=udp;gw=1,[^^:sip_invite_domain=10.51.54.76:presence_id=5007@10.51.54.76]<span style="background-color: rgb(255, 255, 0);">sofia/internal/sip:gw+3@10.51.54.185:12346;transport=udp;gw=3</span>)</span><br>
</div>
<div><span><br>
</span></div>
<div><span>but when 0911 is dialled and the Mad Boss extension is executed the following is logged:</span></div>
<div><span><br>
</span></div>
<div><span><span>EXECUTE sofia/internal/4008@10.51.54.185 conference_set_auto_outcall([^^:sip_invite_domain=10.51.54.76:presence_id=5006@10.51.54.76]sofia/internal/sip:gw+1@10.51.54.76:12346;transport=udp;gw=1,[^^:sip_invite_domain=10.51.54.76:presence_id=5007@10.51.54.76]<span style="background-color: rgb(255, 255, 0);">error/user_not_registered</span>)</span> </span></div>
<div><br>
</div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;">As far as I can see</span><span style="font-size: 12pt;"> the data passed to the
</span><b style="font-size: 12pt;">bridge </b><span style="font-size: 12pt;">and </span>
<b style="font-size: 12pt;">conference_set_auto_outcall</b><span style="font-size: 12pt;"> should be the same - the
</span><span style="font-size: 12pt;"><b>data</b></span><span style="font-size: 12pt;"><b>
</b>entries for both </span><span style="font-size: 12pt;">are identical, but in the case of the conference call for some reason the group_call is not locating the second user. If I switch to explicitly listing the users instead of using the group_call both
phones will ring, if I switch back to </span><span style="font-size: 12pt;">using</span><span style="font-size: 12pt;"> group</span><span style="font-size: 12pt;">_</span><span style="font-size: 12pt;">call then the second phone doesn</span><span style="font-size: 12pt;">'</span><span style="font-size: 12pt;">t
ring. and the same user_not_registered message is logged.</span><br>
</div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;">It's completely reproducible as every call to 1000 works every time and every call to 0911 fails every time. As mentioned, I can work around the issue, but I'm kind of curios as to what would be causing it.</span></div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;">Paul</span></div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;">PS. On a slightly different note, is there a way to terminate the conference when the person who initiates it (the moderator?) hangs up?</span></div>
<div></div>
</div>
</body>
</html>