aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-29 05:01:32 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-29 05:01:32 +0000
commite980ebfd97b4245e7170240f0a13006dd1604dc2 (patch)
tree49b7aeffe7bfcc6b0de2d8dc20b82eedf30e1f50 /channels
parentb046edc46894d692ac6ef09b878f741c6b9af6d7 (diff)
Handle fromdomain properly when there is no @ sign
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2817 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 220f213b4..ace15f80c 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4071,7 +4071,8 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
if ((a = strchr(fr, '@'))) {
*a = '\0';
strncpy(p->fromdomain, a + 1, sizeof(p->fromdomain) - 1);
- }
+ } else
+ strncpy(p->fromdomain, fr, sizeof(p->fromdomain) - 1);
}
if (sipdebug)
ast_verbose("Looking for %s in %s\n", c, p->context);