<div dir="ltr"><div>hello ,</div><div><br></div><div>thanks alex for your help and support the scenario is correct.</div><div><br></div><div>i will try to follow your suggestion and i will update you asap</div><div><br></div>
<div>thank you again for your explication i really appreciate it </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/31 Alex Villací­s Lasso <span dir="ltr">&lt;<a href="mailto:a_villacis@palosanto.com" target="_blank">a_villacis@palosanto.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>El 31/05/13 09:21, Salaheddine Elharit
      escribió:<br>
    </div><div class="im">
    <blockquote 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 </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 </div>
        <div><br>
        </div>
        <div>thanks and regards </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 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"> </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(“wget

                      <a href="http://%3F" target="_blank">http://”</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(“fetch

                      <a href="http://...%3F" target="_blank">http://...”</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"> </span></font></p>
                <p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy" lang="SV"> </span></font></p>
                <p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy" lang="SV"> </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 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><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>
                    <p class="MsoNormal"><font size="3" face="Times New
                        Roman"><span style="font-size:12.0pt"> </span></font></p>
                    <div>
                      <p class="MsoNormal"><font size="3" face="Times
                          New Roman"><span style="font-size:12.0pt">Hello </span></font></p>
                      <div>
                        <p class="MsoNormal"><font size="3" face="Times
                            New Roman"><span style="font-size:12.0pt"> </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  like below</span></font></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><font size="3" face="Times
                            New Roman"><span style="font-size:12.0pt"> </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; 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; 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; 066104xxxx,n,<a 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; 066104xxxx,n,Hangup() </span></font></p>
                        </div>
                        <br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br></div>
    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>
  </div>

<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>