Skip to content

Commit e7d5bab

Browse files
committed
func_query: Fix wrong function name in example.
The example usage uses "QUERY", the original W.I.P. name for the "TEXT_QUERY" function, but the wrong name nonetheless. Change this to the actual function name.
1 parent 9d61a14 commit e7d5bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

funcs/func_query.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<para>The other end should use SendText to send the data transfer.</para>
6161
<example title="Query device state of endpoints at the main branch office">
6262
[rx-node] ; Node A
63-
exten => rx,1,Set(remotestate=${QUERY(IAX2/mainbranch/2368@device-state-context)})
63+
exten => rx,1,Set(remotestate=${TEXT_QUERY(IAX2/mainbranch/2368@device-state-context)})
6464
same => n,ExecIf($[ "${remotestate}" = "NOT_INUSE" ]?Dial(IAX2/mainbranch/2368@extensions))
6565
same => n,Hangup()
6666
[extensions] ; Node B: allow other Asterisk systems to query local device states.

0 commit comments

Comments
 (0)