hello , thanks alex for your help and support the scenario is correct.
i will try to follow your suggestion and i will update you asap thank you again for your explication i really appreciate it 2013/5/31 Alex Villacís Lasso <[email protected]> > El 31/05/13 09:21, Salaheddine Elharit escribió: > > 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 > > ip adresse of my pc 192.168.5.131 > ip adresse of server when the page php is stored > > thanks and regards > > > > 2013/5/30 Justin Killen <[email protected]> > >> 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: >> >> >> >> system(“wget http://” <http://%3F>) >> >> or >> >> system(“fetch http://...” <http://...%3F>) >> >> >> >> >> >> >> >> -Justin >> ------------------------------ >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Salaheddine >> Elharit >> *Sent:* Thursday, May 30, 2013 8:07 AM >> *To:* Asterisk Users Mailing List - Non-Commercial Discussion >> *Subject:* [asterisk-users] how to launch a URl when dialing a number >> >> >> >> Hello >> >> >> >> i want to luanch an URL in my PC when i call a number like below >> >> >> >> exten => 066104xxxx,1,Set(CALLERID(number)=52xxxxxxx) >> >> exten >> => 066104xxxx,n,MixMonitor(zap_g1_${EXTEN}_${UNIQUEID}.wav|av(0}V(0)) >> >> exten >> => >> 066104xxxx,n,Dial(Zap/g1/${EXTEN},30,A(this-call-may-be-monitored-or-recorded)) >> >> exten => 066104xxxx,n,http://192.168.5.109/interface2/interface2.php ( >> here i want to launch this url in my pc ) >> >> exten => 066104xxxx,n,Hangup() >> >> > From this discussion, I am guessing the following scenario. Please correct > me if I am wrong. > - 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. > - Apparently your client PC runs a softphone (but the exact nature of the > telephony client is not important). > - A call is connected from the phone to your Asterisk, is directed to your > context, and dials some trunk (Zap/g1 in your snippet). > - 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. > > The problematic issue is the last part. Especially the implication of > remotely opening a web page on some random PC. > > 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. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
