[Asterisk-code-review] func_channel: test reading 4 more fields (testsuite[13])

Friendly Automation asteriskteam at digium.com
Wed Apr 8 09:54:14 CDT 2020


Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/testsuite/+/14133 )

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(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit



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/+/14133
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: 13
Gerrit-Change-Id: Ic229f561663495a75faae67caef59dbbf2909485
Gerrit-Change-Number: 14133
Gerrit-PatchSet: 1
Gerrit-Owner: Sébastien Duthil <sduthil at wazo.community>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200408/1f049ff1/attachment.html>


More information about the asterisk-code-review mailing list