diff --git a/oscam-ecm.c b/oscam-ecm.c
index 0605860..8a4a99e 100644
--- a/oscam-ecm.c
+++ b/oscam-ecm.c
@@ -2113,6 +2113,29 @@ void get_cw(struct s_client *client, ECM_REQUEST *er)
}
}
+if ((er->caid >> 8) == 0x09) { //videoguard new icam
+ char *debughex, icam_custom[5];
+ if ((debughex = (char *)malloc((er->ecmlen*2)+1))) {
+ cs_hexdump(0, er->ecm, er->ecmlen, debughex, (er->ecmlen*2)+1);
+
+ if (er->ecm[4]) { //indicates new ecm format
+ cs_log("New videoguard (caid %04X) ecm format: icam offset: 0x%X icam data: 0x%02X 0x%02X 0x%02X 0x%02X ecm_len: 0x%X ecm: %s",
+ er->caid,
+ er->ecm[4],
+ er->ecm[er->ecmlen-4],
+ er->ecm[er->ecmlen-3],
+ er->ecm[er->ecmlen-2],
+ er->ecm[er->ecmlen-1],
+ er->ecmlen,
+ debughex);
+
+ er->ecmlen -= 4; //decrease ecmlen with -4 bytes since icam data is at the end of the ecm (4 byte len)
+ memcpy(icam_custom, "\x48", 1); memcpy(icam_custom+1, er->ecm+er->ecmlen-4, 4); /* send icam_custom command from here and read reaply which reaply we need to analyse */
+ }
+ free(debughex);
+ }
+}
+
#ifdef MODULE_NEWCAMD
// Set providerid for newcamd clients if none is given
if(!er->prid && client->ncd_server)
Thats whats in the patch anyway...are they trying methods maybe tried on sly italia to see if it works?