[Asterisk-code-review] pjsip/resolver: Add missing content-length headers (testsuite[master])

George Joseph asteriskteam at digium.com
Fri Nov 10 10:50:05 CST 2017


George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/7181


Change subject: pjsip/resolver:  Add missing content-length headers
......................................................................

pjsip/resolver:  Add missing content-length headers

Content-Length is a required header when TCP is the transport but
the 2 sipp scenarios were missing in their 503 responses causing
failures in pjproject.

Partial fix for ASTERISK_27408

Change-Id: I971bc130ec7adab187da19144421c05f722c5be4
---
M tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_tcp/sipp/uas-503.xml
M tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_unspecified/sipp/uas-503.xml
2 files changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/81/7181/1

diff --git a/tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_tcp/sipp/uas-503.xml b/tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_tcp/sipp/uas-503.xml
index c31ddce..33c42d8 100644
--- a/tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_tcp/sipp/uas-503.xml
+++ b/tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_tcp/sipp/uas-503.xml
@@ -15,6 +15,8 @@
       [last_Call-ID:]
       [last_CSeq:]
       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+      Content-Length: 0
+
     ]]>
   </send>
 </scenario>
diff --git a/tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_unspecified/sipp/uas-503.xml b/tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_unspecified/sipp/uas-503.xml
index c31ddce..33c42d8 100644
--- a/tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_unspecified/sipp/uas-503.xml
+++ b/tests/channels/pjsip/resolver/srv/failover/in_dialog/transport_unspecified/sipp/uas-503.xml
@@ -15,6 +15,8 @@
       [last_Call-ID:]
       [last_CSeq:]
       Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+      Content-Length: 0
+
     ]]>
   </send>
 </scenario>

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

Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I971bc130ec7adab187da19144421c05f722c5be4
Gerrit-Change-Number: 7181
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171110/3424b8e0/attachment.html>


More information about the asterisk-code-review mailing list