<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theiphonewiki.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cyanidepoison</id>
	<title>The iPhone Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.theiphonewiki.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cyanidepoison"/>
	<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/wiki/Special:Contributions/Cyanidepoison"/>
	<updated>2026-05-01T02:34:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.14</generator>
	<entry>
		<id>https://www.theiphonewiki.com/w/index.php?title=CoreTelephony&amp;diff=4133</id>
		<title>CoreTelephony</title>
		<link rel="alternate" type="text/html" href="https://www.theiphonewiki.com/w/index.php?title=CoreTelephony&amp;diff=4133"/>
		<updated>2009-07-08T21:05:07Z</updated>

		<summary type="html">&lt;p&gt;Cyanidepoison: New page: CoreTelephony is the iPhone framework used for high-level cell modem interaction.  It handles SMS, MMS, phone calls, etc.  It is written in C, C++, and in 3.0, Objective-C portions were ad...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CoreTelephony is the iPhone framework used for high-level cell modem interaction.  It handles SMS, MMS, phone calls, etc.  It is written in C, C++, and in 3.0, Objective-C portions were added.&lt;br /&gt;
&lt;br /&gt;
===Usage=== &lt;br /&gt;
In order to use CoreTelephony, you need to set up your build environment to link against it. &amp;lt;br&amp;gt;&lt;br /&gt;
You also need a set of header files, which can be obtained by using the class-dump tool on the framework.&lt;br /&gt;
&lt;br /&gt;
===C functions/types===&lt;br /&gt;
&lt;br /&gt;
  typedef struct __CTSMSMessage CTSMSMessage;&lt;br /&gt;
&lt;br /&gt;
  void*                CTTelephonyCenterGetDefault();&lt;br /&gt;
  void                 CTSMSMessageSend(void*,CTSMSMessage*);&lt;br /&gt;
  CFStringRef          CTSMSMessageCopyAddress(void *, CTSMSMessage *);&lt;br /&gt;
  CFStringRef          CTSMSMessageCopyText(void *, CTSMSMessage *);&lt;br /&gt;
  CTSMSMessage*        CTSMSMessageCreate(void*,CFStringRef number, CFStringRef name);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Objective-C====&lt;br /&gt;
The ObjC parts are much easier to work with because of the magic of class-dump.  The only work I've done is getting an SMS message sent out.  This can be accomplished in one line of code:&lt;br /&gt;
  [[CTMessageCenter sharedMessageCenter]  sendSMSWithText:message serviceCenter:nil toAddress:number];&lt;br /&gt;
where message and number are NSStrings filled with the correct data.&lt;/div&gt;</summary>
		<author><name>Cyanidepoison</name></author>
		
	</entry>
</feed>