Advertisement
oquidave

asterisk function cannot be read

Oct 23rd, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. //CLI
  2.  
  3. [Oct 23 13:47:41] ERROR[13881]: pbx.c:3671 ast_func_read: Function ODBC_CHANGE_PIN cannot be read
  4.  
  5. //cli
  6. core show function ODBC_CHANGE_PIN
  7.  
  8. -= Info about function 'ODBC_CHANGE_PIN' =-
  9.  
  10. [Synopsis]
  11. Runs the referenced query with the specified arguments
  12.  
  13. [Description]
  14. Runs the following query, as defined in func_odbc.conf, performing
  15. substitution of the arguments into the query as specified by ${ARG1},
  16. ${ARG2}, ... ${ARGn}. The values are provided either in whole as
  17. ${VALUE} or parsed as ${VAL1}, ${VAL2}, ... ${VALn}.
  18. This function may only be set.
  19. SQL:
  20. UPDATE user_accounts SET pin=${ARG2} WHERE id=${ARG1}
  21.  
  22.  
  23. [Syntax]
  24. ODBC_CHANGE_PIN(<arg1>[...[,<argN>]])
  25.  
  26. [Arguments]
  27. Not available
  28.  
  29. [See Also]
  30. Not available
  31.  
  32. //func_odbc.conf
  33.  
  34. [CHANGE_PIN]
  35. ;enable user to change their pin code
  36. dsn=asterisk
  37. writesql=UPDATE user_accounts SET pin=${ARG2} WHERE id=${ARG1}
  38.  
  39. //extension.conf
  40.  
  41. same=>n,Set(status=${ODBC_CHANGE_PIN(${ID},${new_pin})})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement