Fix name properly

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-04-15 00:02:07 +00:00
parent 02287658f7
commit 97dd838cda

View File

@@ -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)