mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 02:43:06 +00:00
Fix name properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3961,8 +3961,11 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
|
||||
*a = '\0';
|
||||
}
|
||||
if (fr) {
|
||||
if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
|
||||
if ((a = strchr(fr, ';')))
|
||||
*a = '\0';
|
||||
if ((a = strchr(fr, '@'))) {
|
||||
*a = '\0';
|
||||
strncpy(p->fromdomain, a + 1, sizeof(p->fromdomain) - 1);
|
||||
}
|
||||
}
|
||||
if (sipdebug)
|
||||
|
Reference in New Issue
Block a user