summaryrefslogtreecommitdiffstats
path: root/ie.cpp
diff options
context:
space:
mode:
authorSuper User2007-08-11 10:12:10 +0200
committerSuper User2007-08-11 10:12:10 +0200
commit0a0643e3a561de5f34927ea80c2bd0ce6405fd3c (patch)
tree636f59202db625704b49a6148b2d0a2374714a44 /ie.cpp
parentsome minor fixes (diff)
downloadlcr-0a0643e3a561de5f34927ea80c2bd0ce6405fd3c.tar.gz
lcr-0a0643e3a561de5f34927ea80c2bd0ce6405fd3c.tar.xz
lcr-0a0643e3a561de5f34927ea80c2bd0ce6405fd3c.zip
fixes, debugging for usleep problems.
Diffstat (limited to 'ie.cpp')
-rw-r--r--ie.cpp24
1 files changed, 22 insertions, 2 deletions
diff --git a/ie.cpp b/ie.cpp
index 75b86f4..f866349 100644
--- a/ie.cpp
+++ b/ie.cpp
@@ -734,7 +734,17 @@ void Pdss1::enc_ie_channel_id(unsigned char **ntmode, msg_t *msg, int exclusive,
}
add_trace("channel_id", "exclusive", "%d", exclusive);
- add_trace("channel_id", "channel", "%d", channel);
+ switch(channel)
+ {
+ case CHANNEL_ANY:
+ add_trace("channel_id", "channel", "any channel");
+ break;
+ case CHANNEL_NO:
+ add_trace("channel_id", "channel", "no channel");
+ break;
+ default:
+ add_trace("channel_id", "channel", "%d", channel);
+ }
if (!pri)
{
@@ -874,7 +884,17 @@ void Pdss1::dec_ie_channel_id(unsigned char *p, Q931_info_t *qi, int *exclusive,
}
add_trace("channel_id", "exclusive", "%d", *exclusive);
- add_trace("channel_id", "channel", "%d", *channel);
+ switch(*channel)
+ {
+ case CHANNEL_ANY:
+ add_trace("channel_id", "channel", "any channel");
+ break;
+ case CHANNEL_NO:
+ add_trace("channel_id", "channel", "no channel");
+ break;
+ default:
+ add_trace("channel_id", "channel", "%d", *channel);
+ }
}