New Msg elements.

FossilOrigin-Name: da49daaf31e87aedf07df5cbb40ec0ebdb7c2c4d4ea4370b84cfe2d5a86306b7
This commit is contained in:
7u83@mail.ru
2015-04-26 21:52:11 +00:00
parent fef05e5f37
commit d6aa56ded4
15 changed files with 287 additions and 26 deletions

View File

@ -21,15 +21,26 @@ int cw_out_cisco_ac_descriptor(struct conn *conn,struct cw_action_out * a,uint8_
d+=cw_put_ac_status(d ,(struct cw_ac_status*)(i->data));
i = mbag_get(conn->local,CW_ITEM_AC_SOFTWARE_VERSION);
// i = mbag_get(conn->local,CW_ITEM_AC_SOFTWARE_VERSION);
i = mbag_get(conn->incomming,CW_ITEM_WTP_SOFTWARE_VERSION);
if ( i ) {
d += cw_put_version(d,5,i->data);
d += cw_put_version(d,1,i->data);
}
else {
cw_log(LOG_ERR, "Can't set Software Version in AC descriptor, No value defined.");
cw_log(LOG_ERR, "Can't set Cisco Software Version in AC descriptor, No value defined.");
}
i = mbag_get(conn->local,CW_ITEM_AC_HARDWARE_VERSION);
if ( i ) {
d += cw_put_version(d,0,i->data);
}
else {
cw_log(LOG_ERR, "Can't set Cisco Hardware Version in AC descriptor, No value defined.");
}
int len = d-dst-4;
return len + cw_put_elem_hdr(dst,a->elem_id,len);