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:
37f33c4
)
Always save the extension
author
Mark Spencer
<markster@digium.com>
Thu, 27 Nov 2003 21:49:34 +0000
(21:49 +0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 27 Nov 2003 21:49:34 +0000
(21:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1801
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
5dd64d9
..
dd7ded6
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-3707,10
+3707,10
@@
static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
}
if (sipdebug)
ast_verbose("Looking for %s in %s\n", c, p->context);
+ if (!oreq || !strlen(p->exten))
+ strncpy(p->exten, c, sizeof(p->exten) - 1);
if (ast_exists_extension(NULL, p->context, c, 1, fr) ||
!strcmp(c, ast_pickup_ext())) {
- if (!oreq)
- strncpy(p->exten, c, sizeof(p->exten) - 1);
return 0;
}