aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-18 22:34:55 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-18 22:34:55 +0000
commit18d77f05e21ca60efc5dad450e6a4acd98bb540b (patch)
treefd516940885dad8778c22dc715a3192f17e8a2b0 /apps
parentf69657f706c31a7ee94ed6b21ec626e149244755 (diff)
Merge (for the time being) the alert code...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1107 f38db490-d61c-443f-a65b-d21fe96a405b
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)";