diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-04-15 00:02:07 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-04-15 00:02:07 +0000 |
commit | 1b752fd6f1ec904063712d0905db74b89463feb0 (patch) | |
tree | 915ac8efa43843743a3fc9c0484306ec2f78ab95 /channels | |
parent | 792e23454ac673a1252bca288bf165fc3a974d9d (diff) |
Fix name properly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2692 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b3fdec8c8..4621db465 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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) |