Browse code

b/f:DSM: fix var names on vars passed to DSM with dlg.dialout

Stefan Sayer authored on 22/08/2011 14:12:04
Showing 3 changed files
... ...
@@ -271,7 +271,7 @@ EXEC_ACTION_START(DLGDialoutAction) {
271 271
     if (!has_auth) // sess_params is variable struct
272 272
       (*sess_params)[varname] = lb->second;
273 273
     else // variable struct is in sess_params array
274
-      var_struct[lb->first] = lb->second;
274
+      var_struct[varname] = lb->second;
275 275
 
276 276
     lb++;
277 277
     has_vars = true;
... ...
@@ -6,12 +6,12 @@ initial state START;
6 6
 -- post state to other leg
7 7
 transition "early in callee leg" START - early / {
8 8
   set($b_status=EARLY);
9
-  postEvent($b_leg_var.a_ltag, b_status);
9
+  postEvent($a_ltag, b_status);
10 10
 } -> START;
11 11
 
12 12
 transition "ringing in callee leg" START - ringing / {
13 13
   set($b_status=RINGING);
14
-  postEvent($b_leg_var.a_ltag, b_status);
14
+  postEvent($a_ltag, b_status);
15 15
 } -> START;
16 16
 
17 17
 transition "failed callee leg" START - failed / {
... ...
@@ -19,18 +19,18 @@ transition "failed callee leg" START - failed / {
19 19
   -- copy code and reason to other leg so it can be used as reply code
20 20
   set($code=#code);
21 21
   set($reason=#reason);
22
-  postEvent($b_leg_var.a_ltag, b_status;code;reason);
22
+  postEvent($a_ltag, b_status;code;reason);
23 23
 
24 24
   stop(false);
25 25
 } -> END;
26 26
 
27 27
 transition "session starts in callee leg" START - sessionStart / {
28 28
   set($b_status=CONNECTED);
29
-  postEvent($b_leg_var.a_ltag, b_status);
29
+  postEvent($a_ltag, b_status);
30 30
 
31 31
   -- join conference room with A leg ltag
32
-  log(1, $b_leg_var.a_ltag);
33
-  conference.join($b_leg_var.a_ltag);
32
+  log(1, $a_ltag);
33
+  conference.join($a_ltag);
34 34
 } -> CONNECTED;
35 35
 
36 36
 -- audio is connected
... ...
@@ -38,7 +38,7 @@ state CONNECTED;
38 38
 
39 39
 transition "disconnect" CONNECTED - hangup / {
40 40
   set($b_status=DISCONNECT);
41
-  postEvent($b_leg_var.a_ltag, b_status);
41
+  postEvent($a_ltag, b_status);
42 42
   -- stop the call
43 43
   stop(false);
44 44
 } -> END;
... ...
@@ -52,7 +52,7 @@ dlg.dialout(string arrayname)
52 52
    arrayname_hdrs      headers for new call
53 53
 
54 54
    arrayname_var.*     variables for new call, e.g.
55
-                       arrayname_var.somevar will be set as $arrayname_var.somevar
55
+                       arrayname_var.somevar will be set as $somevar
56 56
 
57 57
   returns $arrayname_ltag (if successful) and sets ERRNO.
58 58