diff --git a/DigestPlay.c b/DigestPlay.c index 53bf446..44df47c 100644 --- a/DigestPlay.c +++ b/DigestPlay.c @@ -56,6 +56,7 @@ int main(int argc, char* argv[]) { "server-port", required_argument, NULL, 'p' }, { "source-id", required_argument, NULL, 'i' }, { "group-id", required_argument, NULL, 'g' }, + { "talker-alias", required_argument, NULL, 't' }, { NULL, 0, NULL, 0 } }; @@ -63,7 +64,7 @@ int main(int argc, char* argv[]) int control = 0; int selection = 0; - while ((selection = getopt_long(argc, argv, "w:c:s:p:i:g:", options, NULL)) != EOF) + while ((selection = getopt_long(argc, argv, "w:c:s:p:i:g:t:", options, NULL)) != EOF) switch (selection) { case 'w': @@ -102,6 +103,10 @@ int main(int argc, char* argv[]) control |= 0b10000; } break; + + case 't': + strncpy(header.sourceCall, optarg, REWIND_CALL_LENGTH); + break; } if (control != 0b11111) @@ -115,6 +120,7 @@ int main(int argc, char* argv[]) " --server-port \n" " --source-id \n" " --group-id \n" + " --talker-alias \n" "\n", argv[0]); return EXIT_FAILURE;