[asterisk-bugs] [JIRA] (ASTERISK-26750) new app: XML
scgm11 (JIRA)
noreply at issues.asterisk.org
Wed Jan 25 14:02:09 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-26750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
scgm11 updated ASTERISK-26750:
------------------------------
Description:
New application to parse XML Strings. passing XML String will do for the nodes variables and values that can be used directly in dialplan. Useful when using CURL with WebServices responses.
Example:
exten=> _XXXX,1,Set(xml=<res>body>msgtype>12</msgtype>langflag>zh_CN</langflag><engineid>1</engineid><tokensn>1000000001</tokensn><dynamicpass>111111</dynamicpass><emptyfield></emptyfield></body></res>)
exten=> _XXXX,2,XML(${xml})
exten=> _XXXX,3,NoOp(${msgtype})
exten=> _XXXX,4,NoOp(${tokensn})
exten=> _XXXX,5,NoOp(${langflag})
was:New application to parse XML Strings. passing XML String will do for the nodes variables and values that can be used directly in dialplan. Useful when using CURL with WebServices responses.
> new app: XML
> -------------
>
> Key: ASTERISK-26750
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26750
> Project: Asterisk
> Issue Type: New Feature
> Security Level: None
> Reporter: scgm11
> Severity: Minor
>
> New application to parse XML Strings. passing XML String will do for the nodes variables and values that can be used directly in dialplan. Useful when using CURL with WebServices responses.
> Example:
> exten=> _XXXX,1,Set(xml=<res>body>msgtype>12</msgtype>langflag>zh_CN</langflag><engineid>1</engineid><tokensn>1000000001</tokensn><dynamicpass>111111</dynamicpass><emptyfield></emptyfield></body></res>)
> exten=> _XXXX,2,XML(${xml})
> exten=> _XXXX,3,NoOp(${msgtype})
> exten=> _XXXX,4,NoOp(${tokensn})
> exten=> _XXXX,5,NoOp(${langflag})
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list