summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-06-18 22:34:55 +0000
committerMark Spencer <markster@digium.com>2003-06-18 22:34:55 +0000
commit4c021fb72701b5040e287da2be4dd2fe1f809c78 (patch)
treefd516940885dad8778c22dc715a3192f17e8a2b0 /apps
parenta5cee9d9175053218859651fd4b75b0f258d81a3 (diff)
Merge (for the time being) the alert code...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_dial.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 7eb6a7872..ab82268a3 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -515,6 +515,25 @@ static int dial_exec(struct ast_channel *chan, void *data)
}
}
}
+ /* Check for ALERT_INFO in the SetVar list. This is for */
+ /* SIP distinctive ring as per the RFC. For Cisco 7960s, */
+ /* SetVar(ALERT_INFO=<x>) where x is an integer. However, */
+ /* the RFC says it should be a URL. -- km- */
+
+ if (strcasecmp(tech,"SIP")==0)
+ {
+ headp=&chan->varshead;
+ AST_LIST_TRAVERSE(headp,current,entries) {
+ /* Search for ALERT_INFO */
+ if (strcasecmp(ast_var_name(current),"ALERT_INFO")==0)
+ {
+ newvar=ast_var_assign(ast_var_name(current),ast_var_value(current));
+ newheadp=&tmp->chan->varshead;
+ AST_LIST_INSERT_HEAD(newheadp,newvar,entries);
+ break;
+ }
+ }
+ }
tmp->chan->appl = "AppDial";
tmp->chan->data = "(Outgoing Line)";