<?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 - send caller id - outgoing calls - Comments</title>
 <link>http://www.newlc.com/en/topic-17076</link>
 <description>Comments for &quot;send caller id - outgoing calls&quot;</description>
 <language>en</language>
<item>
 <title>Re: send caller id - outgoing calls</title>
 <link>http://www.newlc.com/en/topic-17076#comment-41691</link>
 <description>&lt;p&gt;Hello..&lt;br /&gt;
I&#039;m trying to get &quot;Send my caller ID&quot; value useing this code:&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;/*&lt;br /&gt;Retrieve value Settings&amp;gt;Call settings&amp;gt;Send my caller ID&lt;br /&gt;0 for the &amp;quot;Set by network&amp;quot; setting&lt;br /&gt;1 for &amp;quot;No&amp;quot;&lt;br /&gt;2 for &amp;quot;Yes&amp;quot;&lt;br /&gt;*/&lt;br /&gt;#include &amp;lt;centralrepository.h&amp;gt;&lt;br /&gt;TInt GetSendCallerIdL( void )&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; const TUid KCRUidCallSettings = { 0x101F87E3 };&lt;br /&gt;&amp;nbsp; TInt iValue;&lt;br /&gt;&amp;nbsp; CRepository* iCr = CRepository::NewLC( KCRUidCallSettings );&lt;br /&gt;&amp;nbsp; User::LeaveIfError( iCr-&amp;gt;Get( 2, iValue ) );&lt;br /&gt;&amp;nbsp; CleanupStack::PopAndDestroy( iCr );&lt;br /&gt;&amp;nbsp; return iValue&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;but on emulator is working and on phone i&#039;ve got error -46&lt;br /&gt;
can any one give any solution?&lt;/p&gt;

&lt;p&gt;Regards, X.&lt;/p&gt;</description>
 <pubDate>Fri, 21 Sep 2007 10:14:43 +0200</pubDate>
 <dc:creator>xone</dc:creator>
 <guid isPermaLink="false">comment 41691 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: send caller id - outgoing calls</title>
 <link>http://www.newlc.com/en/topic-17076#comment-36387</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi grapentin,&lt;br /&gt;&lt;br /&gt;I ran into your second question today, and here&amp;#039;s the way to detect it on Series60 Symbian 9.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;/*&lt;br /&gt;Retrieve value Settings&amp;gt;Call settings&amp;gt;Send my caller ID&lt;br /&gt;0 for the &amp;quot;Set by network&amp;quot; setting&lt;br /&gt;1 for &amp;quot;No&amp;quot;&lt;br /&gt;2 for &amp;quot;Yes&amp;quot; &lt;br /&gt;*/&lt;br /&gt;#include &amp;lt;centralrepository.h&amp;gt;&lt;br /&gt;TInt GetSendCallerIdL( void )&lt;br /&gt;{&lt;br /&gt;Â  Â const TUid KCRUidCallSettings = { 0x101F87E3 };&lt;br /&gt;Â  Â TInt iValue;&lt;br /&gt;Â  Â CRepository* iCr = CRepository::NewLC( KCRUidCallSettings );&lt;br /&gt;Â  Â User::LeaveIfError( iCr-&amp;gt;Get( 2, iValue ) );&lt;br /&gt;Â  Â CleanupStack::PopAndDestroy( iCr );&lt;br /&gt;Â  Â return iValue&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Furthermore there&amp;#039;s the option of getting the network&amp;#039;s setting:&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;#include &amp;lt;Etel3rdParty.h&amp;gt;&lt;br /&gt;class CInfoExtractor : public CActive&lt;br /&gt;{&lt;br /&gt;Â  Â TInt iRequest;&lt;br /&gt;Â  Â CTelephony* iTelephony;&lt;br /&gt;Â  Â CActiveSchedulerWait* iSchedWait;&lt;br /&gt;Â  Â void RunL( void )&lt;br /&gt;Â  Â {&lt;br /&gt;Â  Â  Â  if( iStatus == KErrNone )&lt;br /&gt;Â  Â  Â  Â  Â iRequest++;&lt;br /&gt;Â  Â  Â  else&lt;br /&gt;Â  Â  Â  Â  Â iRequest = -1;&lt;br /&gt;Â  Â  Â  iSchedWait-&amp;gt;AsyncStop();&lt;br /&gt;Â  Â }&lt;br /&gt;Â  Â void DoCancel( void )&lt;br /&gt;Â  Â {&lt;br /&gt;Â  Â }&lt;br /&gt;Â  Â TInt AsyncResponse( void )&lt;br /&gt;Â  Â {&lt;br /&gt;Â  Â  Â  if ( iRequest == 1 )&lt;br /&gt;Â  Â  Â  Â  Â return 0; //Success&lt;br /&gt;Â  Â  Â  else if ( iRequest == -1 )&lt;br /&gt;Â  Â  Â  Â  Â return -1; //Error&lt;br /&gt;Â  Â }&lt;br /&gt;public:&lt;br /&gt;Â  Â CInfoExtractor( void ):CActive(EPriorityStandard)&lt;br /&gt;Â  Â {&lt;br /&gt;Â  Â  Â  CActiveScheduler::Add( this );&lt;br /&gt;Â  Â  Â  iTelephony = CTelephony::NewL();&lt;br /&gt;Â  Â  Â  iSchedWait = new CActiveSchedulerWait();&lt;br /&gt;Â  Â }&lt;br /&gt;Â  Â ~CInfoExtractor( void )&lt;br /&gt;Â  Â {&lt;br /&gt;Â  Â  Â  Cancel(); // ActiveObject&lt;br /&gt;Â  Â  Â  delete iTelephony;&lt;br /&gt;Â  Â  Â  delete iSchWait;&lt;br /&gt;Â  Â }&lt;br /&gt;&lt;br /&gt;Â  Â // return values for GetSendCallerIdL are -1 for error and the CTelephony::TIdentityServiceStatus values defined inf Etel3rdParty.h&lt;br /&gt;Â  Â TInt GetSendCallerIdL( void )&lt;br /&gt;Â  Â {&lt;br /&gt;Â  Â  Â  iRequest = 0;&lt;br /&gt;Â  Â  Â  CTelephony::TIdentityService iIdentityService = CTelephony::EIdServiceCallerRestriction;&lt;br /&gt;Â  Â  Â  CTelephony::TIdentityServiceV1 iTIdentityServiceV1;&lt;br /&gt;Â  Â  Â  CTelephony::TIdentityServiceV1Pckg iTIdentityServiceV1Pckg(iTIdentityServiceV1);&lt;br /&gt;Â  Â  Â  iTelephony-&amp;gt;GetIdentityServiceStatus( iStatus, iIdentityService, iTIdentityServiceV1Pckg );&lt;br /&gt;Â  Â  Â  SetActive();&lt;br /&gt;Â  Â  Â  iSchedWait-&amp;gt;Start();&lt;br /&gt;Â  Â  Â  if( AsyncResponse() != 0)&lt;br /&gt;Â  Â  Â  {&lt;br /&gt;Â  Â  Â  Â  Â return iTIdentityServiceV1.iIdentityStatus;&lt;br /&gt;Â  Â  Â  }&lt;br /&gt;Â  Â  Â  return -1;// error&lt;br /&gt;Â  Â }&lt;br /&gt;};&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Above snippets may not be entirely typo free, but then, you can&amp;#039;t get any thing for free, right?&amp;nbsp; &amp;nbsp;&lt;img src=&quot;/en/sites/all/modules/smf_filter/smf_smileys/undecided.gif&quot; alt=&quot;Undecided&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jens&lt;/div&gt;</description>
 <pubDate>Tue, 27 Feb 2007 16:10:06 +0100</pubDate>
 <dc:creator>JensJ</dc:creator>
 <guid isPermaLink="false">comment 36387 at http://www.newlc.com</guid>
</item>
<item>
 <title>send caller id - outgoing calls</title>
 <link>http://www.newlc.com/en/topic-17076</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-17076&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-17076#comments</comments>
 <category domain="http://www.newlc.com/en/forums/telephony">Telephony</category>
 <pubDate>Wed, 13 Dec 2006 19:35:22 +0100</pubDate>
 <dc:creator>grapentin</dc:creator>
 <guid isPermaLink="false">16634 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
