Added passing of Talker Alias
This commit is contained in:
parent
ebc4aa16bc
commit
1c8eaa89e7
6 changed files with 47 additions and 1 deletions
|
@ -94,7 +94,7 @@ void BrandMeisterBridge::setTalker(const char* call, const char* name)
|
|||
{
|
||||
// Remove characters after call-sign
|
||||
size_t length = delimiter - call;
|
||||
char* buffer = (char*)alloca(length + 1);
|
||||
char* buffer = (char*)alloca(length + sizeof(uint32_t));
|
||||
strncpy(buffer, call, length);
|
||||
call = buffer;
|
||||
}
|
||||
|
@ -105,6 +105,7 @@ void BrandMeisterBridge::setTalker(const char* call, const char* name)
|
|||
|
||||
syslog(LOG_INFO, "Set talker ID to %d for call-sign %s", number, call);
|
||||
proxy->setTalkerID(number);
|
||||
proxy->setTalkerAlias(call);
|
||||
}
|
||||
|
||||
void BrandMeisterBridge::handleChatMessage(const char* text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue