cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
79
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: JAMES DEPHILLIP II on 20-05-2012 05:17:31 PM
Does anyone know why HTTPS access is slow to my IP Phones? I am using PHP and CURL to perform a CGI/Execute and it is instant with http but with https it is slow (Takes just over 2 seconds to respond). Here is my code...
 
<?php

//Set the Variables used in the script
define('CUCM_PHONE_USER',    'pushuser');
define('CUCM_PHONE_PASSWORD',    'password!');

  $url = "https://192.168.1.8/CGI/Execute";
  $xml = "
  <startMedia>
    <mediaStream>
    <type>audio</type>
    <codec>G.722</codec>
    <mode>receive</mode>
    <address>239.0.0.1</address>
    <port>32000</port>
    </mediaStream>
  </startMedia>";

  $field = "XML=".urlencode($xml);

  $ch = curl_init();
  curl_setopt($ch,CURLOPT_URL,$url);
  curl_setopt($ch,CURLOPT_USERPWD, CUCM_PHONE_USER.":".CUCM_PHONE_PASSWORD);
  curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, false);
  curl_setopt($ch,CURLOPT_POST,1);
  curl_setopt($ch,CURLOPT_HEADER,FALSE);
  curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);
  curl_setopt($ch,CURLOPT_POSTFIELDS,$field);

  $result = curl_exec($ch);

  curl_close($ch);

  echo $result;

?>

Subject: RE: 7965 HTTPS Slow
Replied by: David Staudt on 19-07-2012 01:28:48 PM
A network packet capture from the phone may be helpful in determining if the delay is inside the phone or from some other component (application or perhaps the UCM authentication page).  Feel free to attach here.
 
 
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links