<div dir="ltr">On Wed, Jan 23, 2013 at 10:14 AM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Originate is the answer here. Let’s say your X-lite is SIP/100 and you’re dialing 555-1212. From the x-lite you dial 555-1212 and Asterisk does a dial command to execute the call. From the web, we “originate” the call from SIP/100 to 555-1212. Asterisk makes sure SIP/100 is available then dials the call.<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">sendcommand( Action => 'Originate',<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> Channel => "SIP/100",<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> Exten => 5551212,<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> Context => 'default',<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> priority => 1,<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> Number => 5551212<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> );<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I use this in my office with Apache 1.X and 2.X.</span></p>
</div></div></blockquote><div><br></div><div><br></div><div style>He's already doing an originate invocation. From his email:</div><div style><br></div><div style><div style="font-family:arial,sans-serif;font-size:13px">
fputs($oSocket, "Action: originate\r\n");</div><div style="font-family:arial,sans-serif;font-size:13px">fputs($oSocket, "Channel: $channel\r\n");</div><div style="font-family:arial,sans-serif;font-size:13px">
fputs($oSocket, "WaitTime: $waitTime\r\n");</div><div style="font-family:arial,sans-serif;font-size:13px">fputs($oSocket, "CallerId: $callerId\r\n");</div><div style="font-family:arial,sans-serif;font-size:13px">
fputs($oSocket, "Exten: $number\r\n");</div><div style="font-family:arial,sans-serif;font-size:13px">fputs($oSocket, "Context: $context\r\n");</div><div style="font-family:arial,sans-serif;font-size:13px">
fputs($oSocket, "Priority: $priority\r\n\r\n");</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">-Chris</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Christopher Harrington<br>
<b>Sent:</b> Wednesday, January 23, 2013 9:42 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] two steps when calling from web!<u></u><u></u></span></p><div>
<div class="h5"><p class=""><u></u> <u></u></p><div><p class="">On Wed, Jan 23, 2013 at 1:09 AM, Muhammad <<a href="mailto:mohammad.ghazavi@gmail.com" target="_blank">mohammad.ghazavi@gmail.com</a>> wrote:<u></u><u></u></p>
<div><div><blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="">-1 in normal way, when I type the number in softphone, it call the number and show me just "End" bottom.<u></u><u></u></p>
</div><div><p class="">2- when I calling the number through the web, it show me "Answer" bottom and I have to click answer to calling then number. it is 2 steps to calling from web.<u></u><u></u></p></div><div><p class="">
<u></u> <u></u></p></div></div></blockquote><div><p class=""><u></u> <u></u></p></div><div><p class="">For Asterisk, there is no way to bring a device in on a call unless Asterisk dials out to it first. That device needs to accept the Asterisk-originated call as if a normal call were incoming.<u></u><u></u></p>
</div><div><p class=""><u></u> <u></u></p></div><div><p class="">When I was referring to headers, I was talking about SIP headers that allow many hardware SIP phones to go into what is effectively an intercom mode, not requiring an explicit answer function. I don't know (off of the top of my head) how to set SIP headers from the AMI originate action, but I suppose there probably is some way to do it. Then question then becomes whether or not your softphone supports it.<u></u><u></u></p>
</div><div><p class=""><u></u> <u></u></p></div><div><p class="">Otherwise, there may be an option to configure your softphone to simply automatically answer all incoming calls.<u></u><u></u></p></div></div><div><p class="">
<u></u> <u></u></p></div><p class="">-- <br>-Chris Harrington<u></u><u></u></p><div><p class="">ACSDi Office: <a href="tel:763.559.5800" value="+17635595800" target="_blank">763.559.5800</a><u></u><u></u></p></div><div><div>
<p class="">Mobile Phone: <a href="tel:612.326.4248" value="+16123264248" target="_blank">612.326.4248</a><u></u><u></u></p></div></div><div><p class=""><u></u> <u></u></p></div></div></div></div></div></div></div></blockquote>
</div><br><br clear="all"><div><br></div>-- <br>-Chris Harrington<br><div>ACSDi Office: 763.559.5800</div><div><div>Mobile Phone: 612.326.4248</div></div><div><br></div>
</div></div>