summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/chan_motif.c6
-rw-r--r--configs/motif.conf.sample5
2 files changed, 10 insertions, 1 deletions
diff --git a/channels/chan_motif.c b/channels/chan_motif.c
index fad388ea2..d56708149 100644
--- a/channels/chan_motif.c
+++ b/channels/chan_motif.c
@@ -686,7 +686,11 @@ static struct ast_channel *jingle_new(struct jingle_endpoint *endpoint, struct j
}
ast_channel_context_set(chan, endpoint->context);
- ast_channel_exten_set(chan, "s");
+ if (ast_exists_extension(NULL, endpoint->context, endpoint->name, 1, NULL)) {
+ ast_channel_exten_set(chan, endpoint->name);
+ } else {
+ ast_channel_exten_set(chan, "s");
+ }
ast_channel_priority_set(chan, 1);
ao2_unlock(endpoint);
diff --git a/configs/motif.conf.sample b/configs/motif.conf.sample
index c651e6930..ae3ab30d7 100644
--- a/configs/motif.conf.sample
+++ b/configs/motif.conf.sample
@@ -49,6 +49,11 @@
;
; The only supported method for DTMF is RFC2833. This is always enabled on audio streams and negotiated if possible.
+; Incoming Calls
+;
+; Incoming calls will first look for the extension matching the name of the endpoint in the configured context. If
+; no such extension exists the call will automatically fall back to the "s" extension.
+
; CallerID
;
; The incoming caller id number is populated with the username of the caller and the name is populated with the full