projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01f39a3
)
Handle fromdomain properly when there is no @ sign
author
Mark Spencer
<markster@digium.com>
Thu, 29 Apr 2004 05:01:32 +0000
(
05:01
+0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 29 Apr 2004 05:01:32 +0000
(
05:01
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2817
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
220f213
..
ace15f8
100755
(executable)
--- 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);