[Asterisk-code-review] func_channel: test reading 4 more fields (testsuite[17])
Sébastien Duthil
asteriskteam at digium.com
Fri Apr 3 16:44:17 CDT 2020
Sébastien Duthil has uploaded this change for review. ( https://gerrit.asterisk.org/c/testsuite/+/14085 )
Change subject: func_channel: test reading 4 more fields
......................................................................
func_channel: test reading 4 more fields
The fields are:
- exten
- context
- userfield
- channame
ASTERISK-28796
Change-Id: Ic229f561663495a75faae67caef59dbbf2909485
---
M tests/funcs/func_channel/configs/ast1/extensions.conf
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/85/14085/1
diff --git a/tests/funcs/func_channel/configs/ast1/extensions.conf b/tests/funcs/func_channel/configs/ast1/extensions.conf
index e5504e7..b9ea177 100644
--- a/tests/funcs/func_channel/configs/ast1/extensions.conf
+++ b/tests/funcs/func_channel/configs/ast1/extensions.conf
@@ -30,11 +30,18 @@
same = n,Gosub(check_match,1(channeltype,"Local"))
same = n,Gosub(check_regex,1(name,"Local/test at default-........\;2"))
+same = n,Gosub(check_regex,1(channame,"Local/test at default-........\;2"))
same = n,Gosub(check_match,1(accountcode,""))
same = n,Gosub(check_match,1(checkhangup,"0"))
+same = n,Gosub(check_match,1(exten,"check_match"))
+same = n,Gosub(check_match,1(context,"default"))
+
+same = n,Set(CHANNEL(userfield)="some-userfield")
+same = n,Gosub(check_match,1(userfield,"some-userfield"))
+
same = n,Gosub(check_regex,1(uniqueid,"[0-9][0-9]*\.[0-9]"))
same = n,Gosub(check_regex,1(linkedid,"[0-9][0-9]*\.[0-9]"))
--
To view, visit https://gerrit.asterisk.org/c/testsuite/+/14085
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: testsuite
Gerrit-Branch: 17
Gerrit-Change-Id: Ic229f561663495a75faae67caef59dbbf2909485
Gerrit-Change-Number: 14085
Gerrit-PatchSet: 1
Gerrit-Owner: Sébastien Duthil <sduthil at wazo.community>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200403/918fe37e/attachment.html>
More information about the asterisk-code-review
mailing list