<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">El 31/05/13 09:21, Salaheddine Elharit
      escribi&oacute;:<br>
    </div>
    <blockquote
cite="mid:CAHexamtCWVyLVdm8Gaa3nWrV=Lkg5=dENQNqOpQFD8XER1YF_g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>thanks justin i try to do this but the issue still the
          same.this link is stored in my server 192.168.5.109 .but what
          i want to receive this link when i call this number in my pc&nbsp;</div>
        <div><br>
        </div>
        <div> ip adresse of my pc 192.168.5.131</div>
        <div>ip adresse of server when the page php is stored&nbsp;</div>
        <div><br>
        </div>
        <div>thanks and regards&nbsp;</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote"> 2013/5/30 Justin Killen <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:jkillen@allamericanasphalt.com"
              target="_blank">jkillen@allamericanasphalt.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div link="blue" vlink="blue" lang="EN-US">
              <div>
                <p class="MsoNormal"><font color="navy" face="Arial"><span
style="font-size:10.0pt;font-family:Arial;color:navy">If you just want
                      the url to be opened (perhaps to update a counter
                      via a web service or cgi script), you can do this:</span></font></p>
                <p class="MsoNormal"><font color="navy" face="Arial"><span
style="font-size:10.0pt;font-family:Arial;color:navy">&nbsp;</span></font></p>
                <p class="MsoNormal"><font color="navy" face="Arial"><span
style="font-size:10.0pt;font-family:Arial;color:navy" lang="SV">system(&#8220;wget

                      <a class="moz-txt-link-freetext" href="http://%3F">http://&#8221;</a>)</span></font></p>
                <p class="MsoNormal"><font color="navy" face="Arial"><span
style="font-size:10.0pt;font-family:Arial;color:navy" lang="SV">or</span></font></p>
                <p class="MsoNormal"><font color="navy" face="Arial"><span
style="font-size:10.0pt;font-family:Arial;color:navy" lang="SV">system(&#8220;fetch

                      <a class="moz-txt-link-freetext"
                        href="http://...%3F">http://...&#8221;</a>)</span></font></p>
                <p class="MsoNormal"><font color="navy" face="Arial"><span
style="font-size:10.0pt;font-family:Arial;color:navy" lang="SV">&nbsp;</span></font></p>
                <p class="MsoNormal"><font color="navy" face="Arial"><span
style="font-size:10.0pt;font-family:Arial;color:navy" lang="SV">&nbsp;</span></font></p>
                <p class="MsoNormal"><font color="navy" face="Arial"><span
style="font-size:10.0pt;font-family:Arial;color:navy" lang="SV">&nbsp;</span></font></p>
                <div>
                  <div>
                    <p class="MsoNormal"><font color="navy" face="Arial"><span
style="font-size:10.0pt;font-family:Arial;color:navy" lang="SV">-Justin
                        </span></font><span lang="SV"></span></p>
                  </div>
                </div>
                <div>
                  <div class="MsoNormal" style="text-align:center"
                    align="center"><font size="3" face="Times New Roman"><span
                        style="font-size:12.0pt">
                        <hr size="2" width="100%" align="center"> </span></font></div>
                  <p class="MsoNormal"><b><font face="Tahoma"><span
                          style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font
                      face="Tahoma"><span
                        style="font-size:10.0pt;font-family:Tahoma"> <a
                          moz-do-not-send="true"
                          href="mailto:asterisk-users-bounces@lists.digium.com"
                          target="_blank">asterisk-users-bounces@lists.digium.com</a>
                        [mailto:<a moz-do-not-send="true"
                          href="mailto:asterisk-users-bounces@lists.digium.com"
                          target="_blank">asterisk-users-bounces@lists.digium.com</a>]
                        <b><span style="font-weight:bold">On Behalf Of </span></b>Salaheddine

                        Elharit<br>
                        <b><span style="font-weight:bold">Sent:</span></b>
                        Thursday, May 30, 2013 8:07 AM<br>
                        <b><span style="font-weight:bold">To:</span></b>
                        Asterisk Users Mailing List - Non-Commercial
                        Discussion<br>
                        <b><span style="font-weight:bold">Subject:</span></b>
                        [asterisk-users] how to launch a URl when
                        dialing a number</span></font></p>
                </div>
                <div>
                  <div class="h5">
                    <p class="MsoNormal"><font size="3" face="Times New
                        Roman"><span style="font-size:12.0pt">&nbsp;</span></font></p>
                    <div>
                      <p class="MsoNormal"><font size="3" face="Times
                          New Roman"><span style="font-size:12.0pt">Hello&nbsp;</span></font></p>
                      <div>
                        <p class="MsoNormal"><font size="3" face="Times
                            New Roman"><span style="font-size:12.0pt">&nbsp;</span></font></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><font size="3" face="Times
                            New Roman"><span style="font-size:12.0pt">i
                              want to luanch an URL in my PC when i call
                              a number &nbsp;like below</span></font></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><font size="3" face="Times
                            New Roman"><span style="font-size:12.0pt">&nbsp;</span></font></p>
                      </div>
                      <div>
                        <div>
                          <p class="MsoNormal"><font size="3"
                              face="Times New Roman"><span
                                style="font-size:12.0pt">exten =&gt;
                                066104xxxx,1,Set(CALLERID(number)=52xxxxxxx)</span></font></p>
                        </div>
                        <div>
                          <p class="MsoNormal"><font size="3"
                              face="Times New Roman"><span
                                style="font-size:12.0pt">exten
                                =&gt;&nbsp;066104xxxx,n,MixMonitor(zap_g1_${EXTEN}_${UNIQUEID}.wav|av(0}V(0))</span></font></p>
                        </div>
                        <div>
                          <p class="MsoNormal"><font size="3"
                              face="Times New Roman"><span
                                style="font-size:12.0pt">exten
=&gt;&nbsp;066104xxxx,n,Dial(Zap/g1/${EXTEN},30,A(this-call-may-be-monitored-or-recorded))</span></font></p>
                        </div>
                        <div>
                          <p class="MsoNormal"><font size="3"
                              face="Times New Roman"><span
                                style="font-size:12.0pt">exten
                                =&gt;&nbsp;066104xxxx,n,<a
                                  moz-do-not-send="true"
                                  href="http://192.168.5.109/interface2/interface2.php"
                                  target="_blank">http://192.168.5.109/interface2/interface2.php</a>
                                ( here i want to launch this url in my
                                pc )</span></font></p>
                        </div>
                        <div>
                          <p class="MsoNormal"><font size="3"
                              face="Times New Roman"><span
                                style="font-size:12.0pt">exten
                                =&gt;&nbsp;066104xxxx,n,Hangup()&nbsp;</span></font></p>
                        </div>
                        <br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    From this discussion, I am guessing the following scenario. Please
    correct me if I am wrong.<br>
    - There are (at least) three roles in your scenario: the Asterisk
    server, the PHP webserver (which may or may not be the same machine
    as the Asterisk server), and the client PC.<br>
    - Apparently your client PC runs a softphone (but the exact nature
    of the telephony client is not important).<br>
    - A call is connected from the phone to your Asterisk, is directed
    to your context, and dials some trunk (Zap/g1 in your snippet).<br>
    - You then want, somehow, to make the Asterisk server reach out to
    your client PC (which runs a GUI and has a web browser) and force it
    to open an arbitrary web page on the PHP webserver, presumably a
    callcenter data collecting form.<br>
    <br>
    The problematic issue is the last part. Especially the implication
    of remotely opening a web page on some random PC.<br>
    <br>
    If the above scenario is in fact what you were planning to do, maybe
    you need to rethink your design. In the default case, there is no
    way to make a remote PC open an arbitrary URL on its GUI. Think
    about the security implications. You should instead have the web
    interface already open, and program a Click2Call capability that
    contacts the Asterisk server and uses AMI to execute an Originate
    action with your context as your target. Then the web page would
    load your target URL in order to handle the call. Or, if the calls
    come from an external source, you should program some kind of
    monitor that alerts the web interface that the call was handled by
    the context.<br>
  </body>
</html>