mbed Phone Platform
Dependencies: ulaw mbed ConfigFile
Diff: main.cpp
- Revision:
- 3:1d5dc4107558
- Parent:
- 2:e37117117e79
- Child:
- 4:41a3534d085f
--- a/main.cpp Wed Jan 05 15:43:53 2011 +0000 +++ b/main.cpp Thu Jan 06 17:04:13 2011 +0000 @@ -37,9 +37,9 @@ {{1, 10, 1}, PhoneLine1, ""}, {{1, 10, 2}, PhoneLine2, ""}, {{1, 10, 3}, PhoneMicSp, ""}, - {{2, 10, 1}, PhoneLine1, "192.168.0.3"}, - {{2, 10, 2}, PhoneLine2, "192.168.0.3"}, - {{2, 10, 3}, PhoneMicSp, "192.168.0.3"} + {{2, 10, 1}, PhoneLine1, "192.168.0.2"}, + {{2, 10, 2}, PhoneLine2, "192.168.0.2"}, + {{2, 10, 3}, PhoneMicSp, "192.168.0.2"} /* {{2, 10, 1}, PhoneLine1, "192.168.10.100"}, {{2, 10, 2}, PhoneLine2, "192.168.10.100"}, @@ -65,7 +65,7 @@ j >= dialcount || phonebook[i].dial[j] != dial[j]) break; if (j == dialcount - 1) { *target = phonebook[i].target; - strncpy(hostname, phonebook[i].hostname, 30); + strncpy(hostname, phonebook[i].hostname, HOSTNAME_SIZE); return 1; } } @@ -157,12 +157,12 @@ // detect dial dial[dialcount] = i; dialcount ++; -pc.printf(" [ %d ] ", i); +pc.printf("Dial [%d]\r\n", i); if (scanline(num, ScanMode) == ModeDT) enterline(num, ModeDial); timeout = DIAL_TIMEOUT; } if ((! timeout && dialcount > 0) || dialcount >= DIAL_SIZE || i >= 12) { - char buf[30]; + char buf[HOSTNAME_SIZE]; enum PhoneType p; // call if (getpb(&p, buf)) {