<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.kirkhamsystems.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Arkansas Website Design, Fort Smith - Asttapi for Asterisk 1.2 - Comments</title>
 <link>http://www.kirkhamsystems.com/asttapi</link>
 <description>Comments for &quot;Asttapi for Asterisk 1.2&quot;</description>
 <language>en</language>
<item>
 <title>Hi
Thanks for the info.
I</title>
 <link>http://www.kirkhamsystems.com/asttapi#comment-224</link>
 <description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks for the info.&lt;br /&gt;
I have installed the patch and asttapi OK.&lt;/p&gt;
&lt;p&gt;But I cannot work out what to put in the extensions.conf to notify ASTTAPI.  It doesnt make much sense.&lt;/p&gt;
&lt;p&gt;My standard context for incoming calls is:&lt;/p&gt;
&lt;p&gt;[incoming]&lt;br /&gt;
exten=&gt;039012xxxx,1,Dial(SIP/clientphone,30,r)&lt;/p&gt;
&lt;p&gt;How do I adapt the required context into the above string?&lt;/p&gt;
</description>
 <pubDate>Mon, 08 Sep 2008 06:35:59 -0500</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 224 at http://www.kirkhamsystems.com</guid>
</item>
<item>
 <title>Got it working</title>
 <link>http://www.kirkhamsystems.com/asttapi#comment-211</link>
 <description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;This works now for me. Thanks for providing information on Asterisk 1.2 and the corresponding patched file.&lt;/p&gt;
&lt;p&gt;One should note that if you use a different line name and user channel the above given extensions do not work.&lt;/p&gt;
&lt;p&gt;The dial line for incoming calls should then read:&lt;/p&gt;
&lt;p&gt;exten =&gt; s,n,Dial(${ARG1},20,rtM(tapi^${UNIQUEID}|${ARG2}))&lt;/p&gt;
&lt;p&gt;when the macro is called in the following way:Macro(stdexten,SIP/sipuserchannel,lineid)&lt;/p&gt;
&lt;p&gt;Greetings Torge&lt;/p&gt;
</description>
 <pubDate>Wed, 23 Jul 2008 12:08:13 -0500</pubDate>
 <dc:creator>Cygnus</dc:creator>
 <guid isPermaLink="false">comment 211 at http://www.kirkhamsystems.com</guid>
</item>
<item>
 <title>Feedback</title>
 <link>http://www.kirkhamsystems.com/asttapi#comment-210</link>
 <description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I have followed your configuration using a Outlook 2007 client with Identapro on Windows XP. I can initiate outgoing calls, but incoming calls are not shown in the identapro debug log.&lt;/p&gt;
&lt;p&gt;I have verified that asterisk is sending out the incoming phone event through the manager interface on port 5038. But on the astapi side i do not see any incoming call. Any ideas? I can send you a tcpdump on port 5038 of the incoming call.&lt;/p&gt;
&lt;p&gt;Greetings Torge&lt;/p&gt;
</description>
 <pubDate>Wed, 23 Jul 2008 11:17:34 -0500</pubDate>
 <dc:creator>Cygnus</dc:creator>
 <guid isPermaLink="false">comment 210 at http://www.kirkhamsystems.com</guid>
</item>
<item>
 <title>Asttapi for Asterisk 1.2</title>
 <link>http://www.kirkhamsystems.com/asttapi</link>
 <description>&lt;p&gt;I&#039;ve patched Asttapi 0.10 to work with Asterisk 1.2.  This requires things to be properly setup in your dial plan per the Asttapi 0.10 documentation, which admittedly is pretty poor.  I&#039;ll try to simplify that a bit here.&lt;/p&gt;
&lt;p&gt;Asterisk signals Asttapi through the UserEvent command in the dialplan.  Asttapi needs to be informed of call progress as originated and incoming calls are progressing.  Partially a problem exists that as the calls are connected, two unique IDs are generated which means that some of the commands need to pass the old unique ID back to asttapi as well.  To setup Asttapi properly in the dial plan, you need the following:&lt;/p&gt;
&lt;p&gt;Prior to the Dial() command, you need to send some UserEvents to Asttapi to let it know there&#039;s a call coming into your phone.  I&#039;ve modified my stdexten macro to look like this:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
exten =&gt; s,1,UserEvent(TAPI|TAPIEVENT: LINE_NEWCALL ${ARG2})&lt;br /&gt;
exten =&gt; s,n,UserEvent(TAPI|TAPIEVENT: LINE_CALLSTATE LINECALLSTATE_OFFERING)&lt;br /&gt;
exten =&gt; s,n,UserEvent(TAPI|TAPIEVENT: SET CALLERID ${CALLERID})&lt;br /&gt;
exten =&gt; s,n,UserEvent(TAPI|TAPIEVENT: LINE_CALLINFO LINECALLINFOSTATE_CALLERID)&lt;/p&gt;
&lt;p&gt;exten =&gt; s,n,Dial(${ARG2},20,rtM(tapi^${UNIQUEID}|${ARG2}))&lt;br /&gt;
exten =&gt; s,n,Goto(s-${DIALSTATUS},1)                ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)&lt;br /&gt;
;exten =&gt; s,104,Goto(s-BUSY,1)&lt;/p&gt;
&lt;p&gt;exten =&gt; s-NOANSWER,1,Voicemail(u${ARG1})       ; If unavailable, send to voicemail w/ unavail announce&lt;br /&gt;
exten =&gt; s-NOANSWER,2,Goto(default,s,1)         ; If they press #, return to start&lt;/p&gt;
&lt;p&gt;exten =&gt; s-BUSY,1,Voicemail(b${ARG1})           ; If busy, send to voicemail w/ busy announce&lt;br /&gt;
exten =&gt; s-BUSY,2,Goto(default,s,1)             ; If they press #, return to start&lt;/p&gt;
&lt;p&gt;exten =&gt; _s-.,1,Goto(s-NOANSWER,1)              ; Treat anything else as no answer&lt;/p&gt;
&lt;p&gt;exten =&gt; a,1,VoicemailMain(${ARG1})             ; If they press *, send the user into VoicemailMain&lt;/p&gt;
&lt;p&gt;exten =&gt; h,1,UserEvent(TAPI|TAPIEVENT: LINE_CALLSTATE LINECALLSTATE_IDLE)&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This sends both a dial event and a hangup event to asttapi to let it know an incoming call is progressing.  Notice in the Dial command for stdexten, we also call a macro, tapi, that sends additional call progression information after the call is connected.  The macro looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.kirkhamsystems.com/asttapi&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.kirkhamsystems.com/asttapi#comment</comments>
 <pubDate>Tue, 16 May 2006 14:07:28 -0500</pubDate>
 <dc:creator />
 <guid isPermaLink="false">77 at http://www.kirkhamsystems.com</guid>
</item>
</channel>
</rss>
