<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="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (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: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:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>So your application, fdial, would work
sort of like a monitor except with 2 way audio. It could be used say for a call
center where  a supervisor wanted to listen to a call and provide coaching to
the agent but not have the supervisor&#8217;s audio go to the person on the
other end of the call. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Is this correct?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Jonathan<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-dev-bounces@lists.digium.com
[mailto:asterisk-dev-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>BJ Weschke<br>
<b><span style='font-weight:bold'>Sent:</span></b> Saturday, October 22, 2005
3:41 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Asterisk Developers Mailing
List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Asterisk-Dev] Help
needed for custom application</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;What you're
requesting to be done here is going to require not only some of the
functionality from app_dial to establish a call, but you will also need MeetMe
itself or some of the internals from MeetMe to mux the RTP frames out to two
destinations instead of the one original destination. <o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 10/21/05, <b><span style='font-weight:bold'>John
Todd</span></b> &lt;<a href="mailto:jtodd@loligo.com">jtodd@loligo.com</a>&gt;
wrote:</span></font></span> <o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&gt;Hi folks,<br>
&gt;I've been tasked with writing a very special application for Asterisk which
is<br>
&gt;needed for a very special project (I have no idea whether I may give out <br>
&gt;details, so I'll stay on the safe side and won't). Since I still have<br>
&gt;difficulties in understanding the Asterisk internals I thought I could try<br>
&gt;asking the people who probably know the most about Asterisk :-) <br>
&gt;<br>
&gt;Just so you don't get me wrong, I don't want you to develop that
application<br>
&gt;for me, I just need some hints at how to do it.<br>
&gt;<br>
&gt;The application I need to develop (let's call it fdial) can be described as
a <br>
&gt;forking dial application (which only needs to support SIP). It should act<br>
&gt;almost like a normal dial at first, but when a special control frame
arrives<br>
&gt;from a channel it should dial to a second address, and when the call is <br>
&gt;established the voice streams should be sent to both destinations (and vice<br>
&gt;versa, but not between the two destinations. So the voice stream is forking<br>
&gt;to two destinations. One of the established destination channels may then
be <br>
&gt;hung up (obviously at least one destination channel must be up, otherwise
we<br>
&gt;have a normal hangup).<br>
&gt;<br>
&gt;I know it sounds weird :-)<br>
&gt;<br>
&gt;I've looked into app_dial.c, but that code is doing way too much to easily <br>
&gt;understand what is necessary to do a call... and especially having two
active<br>
&gt;destinations channel at a time is something that no other applications
seems<br>
&gt;to do, not even MeetMe (MeetMe seems to do conferencing/voice stream mixing
<br>
&gt;via a Zaptel device, doesn't it ?).<br>
&gt;<br>
&gt;Has anyone some suggestions for me ? Is it even possible without really
nasty<br>
&gt;hacks to Asterisk itself ? Does anyone know of an application that does<br>
&gt;something remotely like the fdial I need to implement ? <br>
&gt;<br>
&gt;Thanks for your help in advance,<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Marc Haisenko<br>
&gt;--<br>
&gt;Marc Haisenko<br>
&gt;Linux Solutions<br>
&gt;Be O.K. service group GmbH<br>
&gt;<br>
&gt;Rüdesheimer Straße 7<br>
&gt;D-80686 München <br>
&gt;Tel:&nbsp;&nbsp; +49 (0)89 - 548 43 33 21<br>
&gt;Fax:&nbsp;&nbsp; +49 (0)89 - 548 43 33 29<br>
&gt;e-mail: <a href="mailto:haisenko@be-ok.com">haisenko@be-ok.com</a><br>
&gt;<a href="http://www.be-ok.com">http://www.be-ok.com</a><br>
<br>
<br>
This sounds like you're trying to do an<br>
intercept, but with dual way audio?&nbsp;&nbsp;I would<br>
suggest looking at app_chanspy for ideas.&nbsp;&nbsp;I'm<br>
somewhat unclear on what the actual goal is of<br>
your project, so perhaps some diagrams might help <br>
here.<br>
<br>
JT<br>
<br>
<br>
_______________________________________________<br>
Asterisk-Dev mailing list<br>
<a href="mailto:Asterisk-Dev@lists.digium.com">Asterisk-Dev@lists.digium.com</a><br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
To UNSUBSCRIBE or update options visit:<br>
&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev
</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>