web look up?

marc1's picture

I have a hosted text file that I would like to access and use in a dial plan. I know I have seen it before, but I can't remember the proper syntax for accessing the file from within the dial plan. Something like...

Dial(tech/service/[http://textfile])

?


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Dial/CURL

billsimon's picture

With Dial, there's this:

CLI> core show application dial

  -= Info about application 'Dial' =-

[Synopsis]
Place a call and connect to the current channel

[Description]
  Dial(Technology/resource[&Tech2/resource2...][|timeout][|options][|URL]):

...

  The optional URL will be sent to the called party if the channel supports it.

You might want the CURL function:

CLI> core show function CURL

  -= Info about function 'CURL' =-

[Syntax]
CURL(url[|post-data])

[Synopsis]
Retrieves the contents of a URL

[Description]
  url       - URL to retrieve
  post-data - Optional data to send as a POST (GET is default action)