mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 10:58:15 +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';
|
*a = '\0';
|
||||||
}
|
}
|
||||||
if (fr) {
|
if (fr) {
|
||||||
if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
|
if ((a = strchr(fr, ';')))
|
||||||
*a = '\0';
|
*a = '\0';
|
||||||
|
if ((a = strchr(fr, '@'))) {
|
||||||
|
*a = '\0';
|
||||||
|
strncpy(p->fromdomain, a + 1, sizeof(p->fromdomain) - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sipdebug)
|
if (sipdebug)
|
||||||
|
|||||||
Reference in New Issue
Block a user