return;
if (p[0] < 2)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("bearer", "error", "IE too short (len=%d)", p[0]);
return;
}
return;
if (p[0] < 2)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("hlc", "error", "IE too short (len=%d)", p[0]);
return;
}
return;
if (p[0] > 8)
{
- PERROR("IE too long (%d).\n", p[0]);
+ add_trace("callid", "error", "IE too long (len=%d)", p[0]);
return;
}
return;
if (p[0] < 2)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("called_pn", "error", "IE too short (len=%d)", p[0]);
return;
}
return;
if (p[0] < 1)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("calling_pn", "error", "IE too short (len=%d)", p[0]);
return;
}
{
if (p[0] < 2)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("calling_pn", "error", "IE too short (len=%d)", p[0]);
return;
}
*present = (p[2]&0x60) >> 5;
return;
if (p[0] < 1)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("connect_pn", "error", "IE too short (len=%d)", p[0]);
return;
}
{
if (p[0] < 2)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("connect_pn", "error", "IE too short (len=%d)", p[0]);
return;
}
*present = (p[2]&0x60) >> 5;
return;
if (p[0] < 2)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("cause", "error", "IE too short (len=%d)", p[0]);
return;
}
return;
if (p[0] < 1)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("channel_id", "error", "IE too short (len=%d)", p[0]);
return;
}
if (p[1] & 0x40)
{
- PERROR("refering to channels of other interfaces is not supported.\n");
+ add_trace("channel_id", "error", "refering to channels of other interfaces is not supported");
return;
}
if (p[1] & 0x04)
{
- PERROR("using d-channel is not supported.\n");
+ add_trace("channel_id", "error", "using d-channel is not supported");
return;
}
/* BRI */
if (p[1] & 0x20)
{
- PERROR("extended channel ID with non PRI interface.\n");
+ add_trace("channel_id", "error", "extended channel ID with non PRI interface");
return;
}
*channel = p[1] & 0x03;
/* PRI */
if (p[0] < 1)
{
- PERROR("IE too short for PRI (%d).\n", p[0]);
+
+ add_trace("channel_id", "error", "IE too short for PRI (len=%d)", p[0]);
return;
}
if (!(p[1] & 0x20))
{
- PERROR("basic channel ID with PRI interface.\n");
+ add_trace("channel_id", "error", "basic channel ID with PRI interface");
return;
}
if ((p[1]&0x03) == 0x00)
}
if (p[0] < 3)
{
- PERROR("%s: ERROR: IE too short for PRI with channel(%d).\n", __FUNCTION__, p[0]);
+ add_trace("channel_id", "error", "IE too short for PRI with channel (len=%d)", p[0]);
return;
}
if (p[2] & 0x10)
{
- PERROR("channel map not supported.\n");
+ add_trace("channel_id", "error", "channel map not supported");
return;
}
*channel = p[3] & 0x7f;
if (*channel<1 | *channel==16)
{
- PERROR("PRI interface channel out of range (%d).\n", *channel);
+ add_trace("channel_id", "error", "PRI interface channel out of range (%d)", *channel);
return;
}
}
return;
if (p[0] < 1)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("display", "error", "IE too short (len=%d)", p[0]);
return;
}
return;
if (p[0] < 1)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("keypad", "error", "IE too short (len=%d)", p[0]);
return;
}
return;
if (p[0] < 1)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("notify", "error", "IE too short (len=%d)", p[0]);
return;
}
return;
if (p[0] < 1)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("progress", "error", "IE too short (len=%d)", p[0]);
return;
}
return;
if (p[0] < 1)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("redir'ing", "error", "IE too short (len=%d)", p[0]);
return;
}
return;
if (p[0] < 1)
{
- PERROR("IE too short (%d).\n", p[0]);
+ add_trace("redir'tion", "error", "IE too short (len=%d)", p[0]);
return;
}