+ * convert GUID parameter.
+ *
+ */
+static void
+s_convert_guid_parameter_to_header(request_rec *r, const char *param, device_table *spec)
+{
+ if (strcasecmp(param, "guid") == 0) {
+ switch(spec->html_spec_type) {
+ case CHXJ_SPEC_XHtml_Mobile_1_0:
+ do {
+ char *x_up_subno = (char *)apr_table_get(r->headers_in, "x-up-subno");
+ if (x_up_subno) {
+ apr_table_setn(r->headers_in, "X-DCMGUID", x_up_subno);
+ }
+ } while(0);
+ break;
+ case CHXJ_SPEC_Jhtml:
+ case CHXJ_SPEC_Jxhtml:
+ do {
+ char *x_jphone_uid = (char *)apr_table_get(r->headers_in, "x-jphone-uid");
+ if (x_jphone_uid) {
+ apr_table_setn(r->headers_in, "X-DCMGUID", x_jphone_uid);
+ }
+ } while(0);
+ break;
+ default:
+ break;
+ }
+ }
+}
+
+/**