unified socket application interface (for asterisk and maybe other apps)
[lcr.git] / ie.cpp
diff --git a/ie.cpp b/ie.cpp
index d0c3f49..75b86f4 100644 (file)
--- a/ie.cpp
+++ b/ie.cpp
@@ -526,7 +526,7 @@ void Pdss1::dec_ie_calling_pn(unsigned char *p, Q931_info_t *qi, int *type, int
        add_trace("calling_pn", "plan", "%d", *plan);
        add_trace("calling_pn", "present", "%d", *present);
        add_trace("calling_pn", "screen", "%d", *screen);
-       add_trace("calling_pn", "number", "%s", *number);
+       add_trace("calling_pn", "number", "%s", number);
 }
 
 
@@ -1096,7 +1096,7 @@ void Pdss1::enc_ie_progress(unsigned char **ntmode, msg_t *msg, int coding, int
 
        add_trace("progress", "codeing", "%d", coding);
        add_trace("progress", "location", "%d", location);
-       add_trace("progress", "indicator", "%d", indicator);
+       add_trace("progress", "indicator", "%d", progress);
 
        l = 2;
        p = msg_put(msg, l+2);
@@ -1136,7 +1136,7 @@ void Pdss1::dec_ie_progress(unsigned char *p, Q931_info_t *qi, int *coding, int
 
        add_trace("progress", "codeing", "%d", *coding);
        add_trace("progress", "location", "%d", *location);
-       add_trace("progress", "indicator", "%d", *indicator);
+       add_trace("progress", "indicator", "%d", *progress);
 }
 
 
@@ -1426,7 +1426,7 @@ void Pdss1::dec_ie_facility(unsigned char *p, Q931_info_t *qi, unsigned char *fa
        }
        debug[i*3] = '\0';
                
-       add_trace("facility", NULL, "%s", buffer[0]?buffer+1:"<none>");
+       add_trace("facility", NULL, "%s", debug[0]?debug+1:"<none>");
 }
 
 
@@ -1521,7 +1521,7 @@ void Pdss1::dec_facility_centrex(unsigned char *p, Q931_info_t *qi, unsigned cha
                                UPRINT(debug+(j*3), " %02x", centrex[i+1+j]);
                                i++;
                        }
-                       add_trace("facility", "CENTREX", "unknown=0x%2x len=%d%s\n", centrex[i], centrex[i+1], debug);
+                       add_trace("facility", "CENTREX", "unknown=0x%02x len=%d%s\n", centrex[i], centrex[i+1], debug);
                }
                i += 1+centrex[i+1];
        }