[asterisk-commits] tests/channels/pjsip/dialplan functions: Add support for tes... (testsuite[master])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Sep 5 18:43:59 CDT 2015


Matt Jordan has submitted this change and it was merged.

Change subject: tests/channels/pjsip/dialplan_functions: Add support for testing PJSIP Call-ID
......................................................................


tests/channels/pjsip/dialplan_functions: Add support for testing PJSIP Call-ID

Under ASTERISK-25352, the SIP Call-ID of the INVITE request that created the
PJSIP channel can now be extracted using the CHANNEL function. This patch
updates the test to look for the presence of a Call-ID using that function.
Given that the Call-ID is randomly generated, we simply test that we can
get any string back when looking for that item.

ASTERISK-25352

Change-Id: If8ed77cb16db11dc31880080e1c0c1d0c35bbd35
---
M tests/channels/pjsip/dialplan_functions/pjsip_channel/configs/ast1/extensions.conf
M tests/channels/pjsip/dialplan_functions/pjsip_channel/test-config.yaml
2 files changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Matt Jordan: Looks good to me, approved; Verified
  Joshua Colp: Looks good to me, but someone else must approve



diff --git a/tests/channels/pjsip/dialplan_functions/pjsip_channel/configs/ast1/extensions.conf b/tests/channels/pjsip/dialplan_functions/pjsip_channel/configs/ast1/extensions.conf
index 195da10..98a10ac 100644
--- a/tests/channels/pjsip/dialplan_functions/pjsip_channel/configs/ast1/extensions.conf
+++ b/tests/channels/pjsip/dialplan_functions/pjsip_channel/configs/ast1/extensions.conf
@@ -94,6 +94,7 @@
 same => n,GoSub(default,test_variable,1(pjsip,t38state,,=,"DISABLED"))
 same => n,GoSub(default,test_variable,1(pjsip,local_addr,,=,"127.0.0.1:5061"))
 same => n,GoSub(default,test_variable,1(pjsip,remote_addr,,=,"127.0.0.1:5062"))
+same => n,GoSub(default,test_variable,1(pjsip,call-id,,!=,""))
 
 same => n,UserEvent(Result, Status: passed)
 same => n,Hangup()
diff --git a/tests/channels/pjsip/dialplan_functions/pjsip_channel/test-config.yaml b/tests/channels/pjsip/dialplan_functions/pjsip_channel/test-config.yaml
index 31f16fc..10f26a4 100644
--- a/tests/channels/pjsip/dialplan_functions/pjsip_channel/test-config.yaml
+++ b/tests/channels/pjsip/dialplan_functions/pjsip_channel/test-config.yaml
@@ -43,7 +43,7 @@
                 Status: 'failed'
 
 properties:
-    minversion: '12.0.0'
+    minversion: '13.6.0'
     dependencies:
         - python : 'twisted'
         - python : 'starpy'

-- 
To view, visit https://gerrit.asterisk.org/1205
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If8ed77cb16db11dc31880080e1c0c1d0c35bbd35
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>



More information about the asterisk-commits mailing list