<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Telephony - Comments</title>
 <link>http://www.newlc.com/forums/telephony</link>
 <description>Comments for &quot;Telephony&quot;</description>
 <language>en</language>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48114</link>
 <description>&lt;p&gt;Just making sure i follow your string of thought . thanx.&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 12:31:59 +0200</pubDate>
 <dc:creator>Yotamix</dc:creator>
 <guid isPermaLink="false">comment 48114 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48113</link>
 <description>&lt;p&gt;Look, I cannot write the code instead of you. You know what processing you want and in what manner. Think a bit, try, and you&#039;ll certainly find a solution.&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 12:30:30 +0200</pubDate>
 <dc:creator>lvsti</dc:creator>
 <guid isPermaLink="false">comment 48113 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48112</link>
 <description>&lt;p&gt;so i should stop the AO which handles the Listening and Hanging up , and only then create AO for DialNewCall . am i correct ?&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 12:26:37 +0200</pubDate>
 <dc:creator>Yotamix</dc:creator>
 <guid isPermaLink="false">comment 48112 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48111</link>
 <description>&lt;p&gt;At least you can put line status monitoring in a separate AO and pass it an observer which it can then notify about status changes. You can also consider creating an AO for dialling as well (again, with an observer) if there is a chance that some other operation will overlap dialling. The state machine can be in the original/main AO which acts as the observer for the status monitor, and this should be the one which dials, sets the DTMF, etc. depending on the state.&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 10:56:27 +0200</pubDate>
 <dc:creator>lvsti</dc:creator>
 <guid isPermaLink="false">comment 48111 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48110</link>
 <description>&lt;p&gt;so devide and conquer is the best solution ?&lt;br /&gt;
AO for calls , AO for DTMF and the state machine will sit outside ?&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 10:29:54 +0200</pubDate>
 <dc:creator>Yotamix</dc:creator>
 <guid isPermaLink="false">comment 48110 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48109</link>
 <description>&lt;p&gt;Ok, it seems that either of us misunderstood the other &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt; &lt;/p&gt;

&lt;p&gt;You MUSTN&#039;T call NotifyChange() there for the *same* iStatus because that would result in nice AO panics. In this case you would need separate active objects for dialling and monitoring the line status. What I previously meant was that you could use the same active object for asynchronous calls which follow each other without overlapping in time.&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 10:05:55 +0200</pubDate>
 <dc:creator>lvsti</dc:creator>
 <guid isPermaLink="false">comment 48109 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48108</link>
 <description>&lt;p&gt;I Will Rephrase my question :&lt;/p&gt;

&lt;p&gt;When i Switch to the second stage , after hanging up , Calling DialNewCall() will execute RunL() of the AO if a Call is successful . will it also change iLineStatus automatically or should i call RequestNotifucation as well before the SetActive() ?&lt;/p&gt;

&lt;p&gt;Code Snippet is here :&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;switch (iState)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case EIdle:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( iLineStatus.iStatus == CTelephony::EStatusDialling )&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iNotifier-&amp;gt;NotifyOutgoingCall(iLineStatus.iStatus, CallerNumber);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this-&amp;gt;SetStateCallServer();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Request the next notification */&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iTelephony-&amp;gt;NotifyChange( iStatus,CTelephony::EVoiceLineStatusChange,iLineStatusPckg );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetActive();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case ECallingServer:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( iLineStatus.iStatus == CTelephony::EStatusIdle )&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CTelephony::TTelNumber telNumber(DomesticCallBack);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CTelephony::TCallParamsV1 callParams;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; callParams.iIdRestrict = CTelephony::ESendMyId;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CTelephony::TCallParamsV1Pckg callParamsPckg(callParams);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this-&amp;gt;SetStateInSession();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iTelephony-&amp;gt;DialNewCall(iStatus, callParamsPckg, telNumber, iCallId);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Should i Request Notify Here ?&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetActive();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp; } &lt;/code&gt;&lt;/div&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 09:57:57 +0200</pubDate>
 <dc:creator>Yotamix</dc:creator>
 <guid isPermaLink="false">comment 48108 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48102</link>
 <description>&lt;p&gt;Do I need to Trigger that change in the State Machine , or basically the nest call of RequestNotify will do the trick ? &lt;br /&gt;
I will use the ELineStatusChange &lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 08:57:56 +0200</pubDate>
 <dc:creator>Yotamix</dc:creator>
 <guid isPermaLink="false">comment 48102 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48100</link>
 <description>&lt;p&gt;Afaik hangup is an asynchronous call so you&#039;d need a state for it. When it completes (call is hung up) execution enters RunL again. If you got to RunL from the framework (that is, you didn&#039;t do &lt;code&gt;RunL();&lt;/code&gt; manually), you can start any asynchronous request from there without calling Cancel() because the active object is not active at that time.&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;void CFooBar::RunL()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (iState)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case EFooHangingUp:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // call is hung up, start new dialling&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iState = EFooDialling;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iTelephony-&amp;gt;DialNewCall( ... );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetActive();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 08:44:01 +0200</pubDate>
 <dc:creator>lvsti</dc:creator>
 <guid isPermaLink="false">comment 48100 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48099</link>
 <description>&lt;p&gt;So Suppose i have a RequestNotify() for EDialling . I Capture it , RunL() starts and i hangup the call . from here i need to make a new call - so should first call Cancel() and than start a DialNewCall() + Switch the State MAchine to the next phase? &lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 08:34:13 +0200</pubDate>
 <dc:creator>Yotamix</dc:creator>
 <guid isPermaLink="false">comment 48099 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48098</link>
 <description>&lt;p&gt;For &lt;code&gt;CTelephony&lt;/code&gt; it is easier if you just store the current &lt;code&gt;TCancellationRequest&lt;/code&gt; value in a member variable so in &lt;code&gt;DoCancel()&lt;/code&gt; you won&#039;t need any checks but can call &lt;code&gt;CancelAsync()&lt;/code&gt; directly with that value. Naturally, if you make asynchronous calls to classes other than &lt;code&gt;CTelephony&lt;/code&gt;, in that case you would need the same &lt;code&gt;switch&lt;/code&gt; as in &lt;code&gt;RunL&lt;/code&gt;.&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 08:32:40 +0200</pubDate>
 <dc:creator>lvsti</dc:creator>
 <guid isPermaLink="false">comment 48098 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48097</link>
 <description>&lt;p&gt;oh , one last question - regarding the state machine : should i in DoCancel() check each state for the proper AsyncCancel of is there a general Cancellation?&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 08:24:44 +0200</pubDate>
 <dc:creator>Yotamix</dc:creator>
 <guid isPermaLink="false">comment 48097 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48096</link>
 <description>&lt;p&gt;Thank you very much , i shall do that excatly . i have a great solution for that&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 08:21:52 +0200</pubDate>
 <dc:creator>Yotamix</dc:creator>
 <guid isPermaLink="false">comment 48096 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CTelephony Methods under one class</title>
 <link>http://www.newlc.com/forum/ctelephony-methods-under-one-class#comment-48095</link>
 <description>&lt;p&gt;Of course. You just need to maintain a state machine in the active object. When you issue an asynchronous request, you set a state variable accordingly, then when you enter &lt;code&gt;RunL&lt;/code&gt;, you can decide what type of request has been completed by &lt;code&gt;switch&lt;/code&gt;ing between the possible values of that variable.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Mon, 18 Aug 2008 08:20:11 +0200</pubDate>
 <dc:creator>lvsti</dc:creator>
 <guid isPermaLink="false">comment 48095 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Overriding Incoming Call Dialog</title>
 <link>http://www.newlc.com/forum/overriding-incoming-call-dialog#comment-47990</link>
 <description>&lt;p&gt;Hi Willi,&lt;/p&gt;

&lt;p&gt;is it possible to display any kind of window/app behind the incoming call window??&lt;/p&gt;</description>
 <pubDate>Mon, 11 Aug 2008 07:06:31 +0200</pubDate>
 <dc:creator>kkrish</dc:creator>
 <guid isPermaLink="false">comment 47990 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
