1819 |
dprintf("Memory status - location = %d, Capacity: %d \n", |
dprintf("Memory status - location = %d, Capacity: %d \n", |
1820 |
(message[4] << 8) + message[5], (message[18] << 8) + message[19]); |
(message[4] << 8) + message[5], (message[18] << 8) + message[19]); |
1821 |
} else { |
} else { |
1822 |
dprintf("Unknown error getting mem status\n"); |
return GN_ERR_INVALIDMEMORYTYPE; |
|
return GN_ERR_NOTIMPLEMENTED; |
|
1823 |
} |
} |
1824 |
} |
} |
1825 |
break; |
break; |
1863 |
return GN_ERR_EMPTYLOCATION; |
return GN_ERR_EMPTYLOCATION; |
1864 |
case 0x34: |
case 0x34: |
1865 |
return GN_ERR_INVALIDLOCATION; |
return GN_ERR_INVALIDLOCATION; |
1866 |
|
case 0x31: |
1867 |
|
return GN_ERR_INVALIDMEMORYTYPE; |
1868 |
default: |
default: |
1869 |
return GN_ERR_UNKNOWN; |
return GN_ERR_UNKNOWN; |
1870 |
} |
} |
1898 |
} |
} |
1899 |
break; |
break; |
1900 |
default: |
default: |
1901 |
dprintf("Unknown subtype of type 0x03 (%d)\n", message[3]); |
dprintf("Unknown subtype of type 0x03 (0x%02x)\n", message[3]); |
1902 |
return GN_ERR_UNHANDLEDFRAME; |
return GN_ERR_UNHANDLEDFRAME; |
1903 |
} |
} |
1904 |
return GN_ERR_NONE; |
return GN_ERR_NONE; |
3769 |
ca = data->call_active; |
ca = data->call_active; |
3770 |
memset(ca, 0x00, 2 * sizeof(gn_call_active)); |
memset(ca, 0x00, 2 * sizeof(gn_call_active)); |
3771 |
for (i = 0; i < message[4]; i++) { |
for (i = 0; i < message[4]; i++) { |
3772 |
if (pos[0] != 0x64) return GN_ERR_UNHANDLEDFRAME; |
if (pos[0] != 0x64) |
3773 |
|
return GN_ERR_UNHANDLEDFRAME; |
3774 |
ca[i].call_id = pos[2]; |
ca[i].call_id = pos[2]; |
3775 |
ca[i].channel = pos[3]; |
ca[i].channel = pos[3]; |
3776 |
switch (pos[4]) { |
switch (pos[4]) { |
3844 |
dprintf("Cause ID: %i\n", message[6]); |
dprintf("Cause ID: %i\n", message[6]); |
3845 |
return GN_ERR_UNKNOWN; |
return GN_ERR_UNKNOWN; |
3846 |
|
|
3847 |
|
case 0xf0: |
3848 |
|
return GN_ERR_UNHANDLEDFRAME; |
3849 |
|
|
3850 |
default: |
default: |
3851 |
dprintf("Unknown subtype of type 0x01 (%d)\n", message[3]); |
dprintf("Unknown subtype of type 0x01 (0x%02x)\n", message[3]); |
3852 |
return GN_ERR_UNHANDLEDFRAME; |
return GN_ERR_UNHANDLEDFRAME; |
3853 |
} |
} |
3854 |
return GN_ERR_NONE; |
return GN_ERR_NONE; |