diff options
author | Olle Johansson <oej@edvina.net> | 2008-10-23 15:30:16 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2008-10-23 15:30:16 +0000 |
commit | 5aa23add8c25c1a3f9d777c3dd554276e275057d (patch) | |
tree | e8eebcc7730fa4edfeeebd8392bb201ca0aa055b /channels | |
parent | a45c3a8729e05cd001fff106e892cd138b7281f4 (diff) |
Adding a small new feature.
Setting _SIPFROMDOMAIN in a channel will set the domain we use for the URI in the outbound call leg.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@151739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4e3c14db2..b5aede884 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4652,6 +4652,8 @@ static int sip_call(struct ast_channel *ast, char *dest, int timeout) } else if (!p->options->addsipheaders && !strncasecmp(ast_var_name(current), "SIPADDHEADER", strlen("SIPADDHEADER"))) { /* Check whether there is a variable with a name starting with SIPADDHEADER */ p->options->addsipheaders = 1; + } else if (!strcasecmp(ast_var_name(current), "SIPFROMDOMAIN")) { + ast_string_field_set(p, fromdomain, ast_var_value(current)); } else if (!strcasecmp(ast_var_name(current), "SIPTRANSFER")) { /* This is a transfered call */ p->options->transfer = 1; |