DHAVAL INDRODIYA
2010-May-03 04:47 UTC
[asterisk-users] Calling a RESTful Web service from Dialplan????
Dear All, Last Week i tried and goggling more on how to call RESTful webservice from Dialplan? i found *CURL* function but while i tried to use it ,it 's not supported HTTPS request and we cannot set headers while send a request. also without HTTPS . i get result it will return a string means whole xml,json request is represented in string format, how can i parse that request? my question is that is there any best utility in asterisk that support calling a webservie from Dialplan? i am also comfortable with C, or PERL based AGI. please guide me as i am new to this Webservice part... regards Dhaval -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100503/a666773d/attachment.htm
Motiejus Jakštys
2010-May-03 06:18 UTC
[asterisk-users] Calling a RESTful Web service from Dialplan????
You can call an external script and call CURL from there (either use AGI, or Asterisk cmd System). It depends on your task what to use (perl/bash/C...) On Mon, May 3, 2010 at 7:47 AM, DHAVAL INDRODIYA <dhaval.it01034 at gmail.com> wrote:> Dear All, > > Last Week i tried and goggling more on how to call RESTful webservice from > Dialplan? > > i found CURL function but while i tried? to use it ,it 's not? supported > HTTPS request and we cannot set headers while send a request. > > also? without HTTPS . i get result it will return a string means whole > xml,json request? is represented in string format, how can i parse that > request? > > my question is that is there any? best utility in asterisk that support > calling a webservie from Dialplan? > > i am also comfortable with C, or PERL based AGI. > > please guide me as i am new to this Webservice part... > > regards > Dhaval > > > > -- > _____________________________________________________________________ > -- 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 >
Steve Edwards
2010-May-03 07:11 UTC
[asterisk-users] Calling a RESTful Web service from Dialplan????
On Mon, 3 May 2010, DHAVAL INDRODIYA wrote:> Last Week i tried and goggling more on how to call RESTful webservice > from Dialplan? > > i found CURL function but while i tried? to use it ,it 's not? supported > HTTPS request and we cannot set headers while send a request. > > also? without HTTPS . i get result it will return a string means whole > xml,json request? is represented in string format, how can i parse that > request? > > my question is that is there any? best utility in asterisk that support > calling a webservie from Dialplan? > > i am also comfortable with C, or PERL based AGI.Wanting to parse XML sounds way out of scope for dialplan. I'd vote for an AGI written in C. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000