goto next;
case ADMIN_CALL_NOTIFY:
- printf("NOTIFY\n notify=%d\n number=%s\n", msg.u.call.notify, msg.u.call.callerid); fflush(stdout);
+ printf("NOTIFY\n notify=%d\n number=%s\n", msg.u.call.notify_progress, msg.u.call.callerid); fflush(stdout);
+ goto next;
+
+ case ADMIN_CALL_PROGRESS:
+ printf("PROGRESS\n progress=%d\n location=%d\n", msg.u.call.notify_progress, msg.u.call.location); fflush(stdout);
goto next;
case ADMIN_CALL_DISCONNECT:
int sock, conn;
struct sockaddr_un sock_address;
const char *ret = "invalid mode";
-
+ char options_error[256];
/* show options */
if (argc <= 1) {
goto usage;
}
- if (read_options() == 0) {
+ if (read_options(options_error) == 0) {
exit(EXIT_FAILURE);
}