[Asterisk-code-review] tests/channels/pjsip/dialplan functions: Update tests for dy... (testsuite[master])

Matt Jordan asteriskteam at digium.com
Mon Sep 28 08:08:30 CDT 2015


Matt Jordan has uploaded a new change for review.

  https://gerrit.asterisk.org/1335

Change subject: tests/channels/pjsip/dialplan_functions: Update tests for dynamic contacts
......................................................................

tests/channels/pjsip/dialplan_functions: Update tests for dynamic contacts

Recently, a change went into the PJSIP stack in Asterisk that modified storage
of dynamic contacts in PJSIP to use a SHA1 hash. This was done so that
relatively arbitrarily long contact URIs could be stored and retrieved. This
patch updates two tests that used the old formatting for dynamic contacts,
pjsip_aor and pjsip_contact, to expect the new SHA1 hash.

Change-Id: Ib62fe519136e552020542d34cd1440e915ceaf49
---
M tests/channels/pjsip/dialplan_functions/pjsip_aor/configs/ast1/extensions.conf
M tests/channels/pjsip/dialplan_functions/pjsip_contact/configs/ast1/extensions.conf
2 files changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/35/1335/1

diff --git a/tests/channels/pjsip/dialplan_functions/pjsip_aor/configs/ast1/extensions.conf b/tests/channels/pjsip/dialplan_functions/pjsip_aor/configs/ast1/extensions.conf
index 8b7480e..0086c48 100644
--- a/tests/channels/pjsip/dialplan_functions/pjsip_aor/configs/ast1/extensions.conf
+++ b/tests/channels/pjsip/dialplan_functions/pjsip_aor/configs/ast1/extensions.conf
@@ -15,7 +15,7 @@
 same => n,Answer()
 
 ; Test Alice's (dynamic registration) properties
-same => n,GoSub(default,test_variable,1(alice,contact,alice\;@sip:alice at 127.0.0.1:5061))
+same => n,GoSub(default,test_variable,1(alice,contact,alice\;@81363c8ccd1bbe394538018e5bee371f))
 same => n,GoSub(default,test_variable,1(alice,authenticate_qualify,false))
 same => n,GoSub(default,test_variable,1(alice,default_expiration,30))
 same => n,GoSub(default,test_variable,1(alice,mailboxes,))
diff --git a/tests/channels/pjsip/dialplan_functions/pjsip_contact/configs/ast1/extensions.conf b/tests/channels/pjsip/dialplan_functions/pjsip_contact/configs/ast1/extensions.conf
index 41036cb..61d47c1 100644
--- a/tests/channels/pjsip/dialplan_functions/pjsip_contact/configs/ast1/extensions.conf
+++ b/tests/channels/pjsip/dialplan_functions/pjsip_contact/configs/ast1/extensions.conf
@@ -15,10 +15,10 @@
 same => n,Answer()
 
 ; Test Alice's (dynamic registration) properties
-same => n,GoSub(default,test_variable,1(alice\;@sip:alice at 127.0.0.1:5061,uri,sip:alice at 127.0.0.1:5061))
-same => n,GoSub(default,test_variable,1(alice\;@sip:alice at 127.0.0.1:5061,status,Unknown))
-same => n,GoSub(default,test_variable,1(alice\;@sip:alice at 127.0.0.1:5061,rtt,N/A))
-same => n,GoSub(default,test_variable,1(alice\;@sip:alice at 127.0.0.1:5061,user_agent,Test))
+same => n,GoSub(default,test_variable,1(alice\;@81363c8ccd1bbe394538018e5bee371f,uri,sip:alice at 127.0.0.1:5061))
+same => n,GoSub(default,test_variable,1(alice\;@81363c8ccd1bbe394538018e5bee371f,status,Unknown))
+same => n,GoSub(default,test_variable,1(alice\;@81363c8ccd1bbe394538018e5bee371f,rtt,N/A))
+same => n,GoSub(default,test_variable,1(alice\;@81363c8ccd1bbe394538018e5bee371f,user_agent,Test))
 
 ; Test Bob's (static contact) properties
 same => n,GoSub(default,test_variable,1(bob@@sip:1000 at 127.0.0.1,uri,sip:1000 at 127.0.0.1))

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib62fe519136e552020542d34cd1440e915ceaf49
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