<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.3700.6699" name=GENERATOR>
<STYLE>@font-face {
        font-family: Tahoma;
}
P.MsoNormal {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt
}
LI.MsoNormal {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt
}
DIV.MsoNormal {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm
}
SPAN.EmailStyle17 {
        COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY bgColor=white lang=EN-GB link=blue vLink=purple>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=922401515-02032005>ActionID does not return in all events related to an
Action sent, sometimes it will just send you a success message and nothing more.
Just try Originating a call from a meetme room over an outside line. You will
get about 150 lines of output and only one message will have the ActionID in it,
the success message. On the other hand the callerID is placed on many more of
the events in the output. It is still the case that if you do complex Manager
Actions, the ONLY solution for tracking a call is to use a custom
CallerID.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=922401515-02032005></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=922401515-02032005>Action: Originate<BR>Exten: 8600080<BR>Channel:
local/917275551212@default<BR>Context: default<BR>Priority: 1<BR>Callerid:
DF345678901234567890<BR>Actionid: AID45678901234567890<BR></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=922401515-02032005></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=922401515-02032005>MATT---</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=922401515-02032005></SPAN></FONT> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Bill Seddon
[mailto:bill.seddon@lyquidity.com]<BR><B>Sent:</B> Wednesday, March 02, 2005
8:06 AM<BR><B>To:</B> Stephen Owen hosted; Asterisk Users Mailing List -
Non-Commercial Discussion<BR><B>Subject:</B> RE: [Asterisk-Users] Asterisk
Manager API - multi "Originate" calls<BR><BR></DIV></FONT>
<DIV class=Section1>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"><<</SPAN></FONT><FONT
face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> read
in places that you use "originate" command and wait for an event back,
does that mean you cannot place another "originate" until the event comes back
?>></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Not in my experience.
Originate will not send an event to the caller until either the intended
caller (that is the extension used in Originate) has picked up their phone or
a timeout occurs because the intended caller does not pick up their
phone. You can send as many originate requests as you like but they will
fail if more than one uses the same extension at the same
time.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">The issue you will face is
determining which event generated by Asterisk belongs to which origination
request. For this reason, the Manager API allows you to specify an
“ActionID” on any command. An ActionID is any string of characters that you
use to uniquely identify each command use issue. Asterisk will include
the ActionID with each related event so you know which events to respond to
and which to ignore. You will see many events generated by Asterisk only
some of which will relate to your command. The others will be events
that Asterisk raises (for example when a phone registers) or events in
response to commands issues by other Manager API users and at the command
line.</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Take a look at Nicolas Gudino’s
Flash Operator Panel (<A href="http://www.asternic.org/">www.asternic.org</A>)
as it used the manager API extensively (albeit through a proxy) and will
typically make many requests via the Manger API. </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"><<Is it true that multiple
API connections to Asterisk Manager API will crash it (thinking of alternative
way to crack the nut)>></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Again, not in my experience.
</SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<DIV>
<P><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Lyquidity Solutions
Limited</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy">
<BR></SPAN></FONT><FONT color=navy face=Arial size=2><SPAN
style="COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">+44 (0) 208 241
0500</SPAN></FONT><FONT color=navy><SPAN style="COLOR: navy">
</SPAN></FONT></P></DIV>
<DIV>
<DIV align=center class=MsoNormal style="TEXT-ALIGN: center"><FONT
face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR align=center SIZE=2 tabIndex=-1 width="100%">
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN lang=EN-US
style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt; FONT-WEIGHT: bold">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN lang=EN-US
style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt">
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Stephen Owen
hosted<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> March 02, 2005
12:28 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B>
asterisk-users@lists.digium.com<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Asterisk-Users] Asterisk
Manager API - multi "Originate" calls</SPAN></FONT></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> </SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Been researching connecting over
TCP\IP to Asterisk Manager API to initiate several concurrent calls to dial
out. Prefer not to generate ASCII .call files.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Question : I read in places
that you use "originate" command and wait for an event back, does that mean
you cannot place another "originate" until the event comes back
?</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Is it true that multiple API
connections to Asterisk Manager API will crash it (thinking of alternative way
to crack the nut)</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">All help would be welcome -
thanks</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Stephen
Owen</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">sip:stephenowen@iptel.org<BR>IM:stephen_owen_2001@hotmail.com</SPAN></FONT></P></DIV></DIV></BLOCKQUOTE></BODY></HTML>