Zhang Shukun
2010-May-11 09:21 UTC
[asterisk-users] Creating a HTTP Request on missed call?
Hello there, I have successfully installed and configured asterisk for use as an office PBX using SIP trucks and Voip handsets (using g.729 codec) which works great. Now I wish to try and configure asterisk to do a HTTP request and submit callerID to an external website when a call is missed. eg Someone calls PBX and rings extension 100 -> Call is not answered -> HTTP request is initiated to the following URL "http://www.mywebsite.com/index.php?=NumberHere" ....or something similar. There are a couple of threads I have read on similar topics but none seem to fit the bill. One involved installing a DialPlan Injection module, however I was unable to get the associated SQL database installed so I fell at the first hurdle. I hope this is not too taxing to solve and understand that this may not be a native function of asterisk, but any help would be greatly appreciated. Thanks in advance! -- Thanks for your supporting, have a nice day. Sucan
Motiejus Jakštys
2010-May-11 10:36 UTC
[asterisk-users] Creating a HTTP Request on missed call?
Issuing HTTP request from dialplan is simple: Use System call when you have all the statuses: exten => _X.,n,System(curl -d number=${EXTEN},status=${STATUS} http://mywebsite/) Check your dialplan when you have to issue the command and man 1 curl Good luck On Tue, May 11, 2010 at 12:21 PM, Zhang Shukun <bitzsk at gmail.com> wrote:> Hello there, > > I have successfully installed and configured asterisk for use as an > office PBX using SIP trucks and Voip handsets (using g.729 codec) > which works great. > > Now I wish to try and configure asterisk to do a HTTP request and > submit callerID to an external website when a call is missed. eg > Someone calls PBX and rings extension 100 -> Call is not answered -> > HTTP request is initiated to the following URL > "http://www.mywebsite.com/index.php?=NumberHere" > ....or something similar. > > There are a couple of threads I have read on similar topics but none > seem to fit the bill. One involved installing a DialPlan Injection > module, however I was unable to get the associated SQL database > installed so I fell at the first hurdle. > > I hope this is not too taxing to solve and understand that this may > not be a native function of asterisk, but any help would be greatly > appreciated. > Thanks in advance! > > > -- > Thanks for your supporting, > have a nice day. > Sucan > > -- > _____________________________________________________________________ > -- 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 >
Sebastian Denz
2010-May-11 11:40 UTC
[asterisk-users] Creating a HTTP Request on missed call?
Am Dienstag, 11. Mai 2010, um 12:36:41 schrieb Motiejus Jak?tys:> Issuing HTTP request from dialplan is simple: Use System call when you > have all the statuses: > exten => _X.,n,System(curl -d number=${EXTEN},status=${STATUS} > http://mywebsite/) > > Check your dialplan when you have to issue the command > and > man 1 curl > > Good luckDepending on his asterisk version, the dialplan function CURL() could be an option too.. -- Sebastian Denz <sebastian.denz at GONICUS.de> (System Engineer) * GONICUS GmbH * Zentrale * Moehnestrasse 11-17 * D-59755 Arnsberg * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 270 * http://www.GONICUS.de *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder *Vorsitzender des Beirats: Juergen Michels *Amtsgericht Arnsberg * HRB 1968