<div dir="ltr"><div><font color="#000000" style="background-color:rgb(255,255,255)">Running opensips 2.2.3 with CP 6.2</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)"><br></font></div><font color="#000000" style="background-color:rgb(255,255,255)">When attempting to enable a GATEWAY in CP under the system/drouting section using the toggle button under "Memory State", the screen produces an "<span style="font-family:arial,helvetica,sans-serif;font-size:12px;text-align:-webkit-center">Error code 500 (Internal server error)".  The process does appear to execute properly though.</span></font><div><div style="text-align:-webkit-center"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12px"><br></span></font></div><div style="text-align:left"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12px">The httpd logs produce the following warnings only:</span></font></div><div style="text-align:left"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12px"><br></span></font></div><div style="text-align:left"><p style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">PHP Notice:  Undefined index: gateways_search_address in /var/www/opensips-cp/web/tools/system/drouting/template/gateways.main.php on line 42, referer: <a href="http://xx.xx.xx.xx/cp/tools/system/drouting/gateways.php?action=disablegw&gwid=2">http://xx.xx.xx.xx/cp/tools/system/drouting/gateways.php?action=disablegw&gwid=2</a></font></span></p><p style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif"><br></font></span></p><p style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif">Opensips logs look like this on enable and disable:</font></span></p><p style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures"><font face="arial, helvetica, sans-serif"><br></font></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: START *** cls=(nil), connection=0x1c83380, url=/json/dr_gw_status, method=GET, versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:getConnectionHeader: Accept=*/*</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: accept_type=[-1]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: normalised_url=[/dr_gw_status]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_answer_to_connection: START *** cls=(nil), connection=0x1c83380, url=/dr_gw_status, method=GET, versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got command=dr_gw_status</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: command=dr_gw_status accepts parameters</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got string param [2]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got string param [0]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><b>Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: ERROR:mi_json:mi_json_run_mi_cmd: failed to process the command</b></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><b>Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: ERROR:mi_json:mi_json_answer_to_connection: no reply</b></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: MHD_create_response_from_data [0x7f0a7ddcc600:60]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: START *** cls=(nil), connection=0x1c83380, url=/json/dr_gw_status, method=GET, versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:getConnectionHeader: Accept=*/*</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: accept_type=[-1]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: normalised_url=[/dr_gw_status]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_answer_to_connection: START *** cls=(nil), connection=0x1c83380, url=/dr_gw_status, method=GET, versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got command=dr_gw_status</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: command=dr_gw_status accepts parameters</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: but no parameters were found</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got mi_rpl=[0x7f0a885c4c60]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_answer_to_connection: building on page [0x7f0a86dc3318:0]</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_build_page: start</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_build_content: start</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_recur_write_tree: Treat as an array</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_recur_write_tree: done</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_build_content: done</span></p><p style="margin:0px;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">


























</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:41 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: MHD_create_response_from_data [0x7f0a86dc3318:445]</span></p><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: START *** cls=(nil), connection=0x1c83380, url=/json/dr_gw_status, method=GET, versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:getConnectionHeader: Accept=*/*</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: accept_type=[-1]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: normalised_url=[/dr_gw_status]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_answer_to_connection: START *** cls=(nil), connection=0x1c83380, url=/dr_gw_status, method=GET, versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got command=dr_gw_status</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: command=dr_gw_status accepts parameters</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got string param [2]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got string param [1]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><b>Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: ERROR:mi_json:mi_json_run_mi_cmd: failed to process the command</b></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><b>Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: ERROR:mi_json:mi_json_answer_to_connection: no reply</b></span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: MHD_create_response_from_data [0x7f0a7ddcc600:60]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: START *** cls=(nil), connection=0x1c83380, url=/json/dr_gw_status, method=GET, versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:getConnectionHeader: Accept=*/*</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: accept_type=[-1]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: normalised_url=[/dr_gw_status]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_answer_to_connection: START *** cls=(nil), connection=0x1c83380, url=/dr_gw_status, method=GET, versio=HTTP/1.1, upload_data[0]=(nil), *con_cls=(nil)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got command=dr_gw_status</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: command=dr_gw_status accepts parameters</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: but no parameters were found</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_run_mi_cmd: got mi_rpl=[0x7f0a885c34a0]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_answer_to_connection: building on page [0x7f0a86dc3318:0]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_build_page: start</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_build_content: start</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_recur_write_tree: Treat as an array</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_recur_write_tree: done</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:mi_json:mi_json_build_content: done</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Feb 24 15:50:47 opensips4 /sbin/opensips[31078]: DBG:httpd:answer_to_connection: MHD_create_response_from_data [0x7f0a86dc3318:440]</span></p></span></div></div><div><div style="text-align:-webkit-center"><font color="#000000" face="arial, helvetica, sans-serif" style="font-size:12px"><br></font></div><div style="text-align:-webkit-center"><font color="#000000" face="arial, helvetica, sans-serif" style="font-size:12px"><br></font></div><div><div class="gmail_signature"><div dir="ltr"><div><div>Jeff Wilkie<br></div>Chief Technology Officer<br></div>US IP Communications<br>919.297.1057<br><br><br><i>"This e-mail communication and any attachments may contain confidential 
and privileged information and is for use by the designated addressee(s)
 named above only. Any files transmitted with it are confidential and 
intended solely for the use of the individual to whom it is addressed. 
Any views or opinions presented are solely those of the author and do 
not necessarily represent those of USIPCOM, LLC. If you are not the 
intended addressee, you are hereby notified that you have received this 
communication in error and that any use or reproduction of this email or
 its contents is strictly prohibited and may be unlawful. If you have 
received this communication in error, please notify us immediately by 
replying to this message and deleting it from your computer. Thank you". 
</i><br></div></div></div>
</div></div></div>