[Asterisk-code-review] tests/channels/pjsip/dialplan functions: Add support for tes... (testsuite[master])

Matt Jordan asteriskteam at digium.com
Sat Sep 5 15:24:37 CDT 2015


Matt Jordan has uploaded a new change for review.

  https://gerrit.asterisk.org/1205

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


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/05/1205/1

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: newchange
Gerrit-Change-Id: If8ed77cb16db11dc31880080e1c0c1d0c35bbd35
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>



More information about the asterisk-code-review mailing list