Browse code

core: event parsing enahced for dialog;ma

- event defined by draft-anil-sipping-bla for Multiple Line Appearances,
folloing to Shared/Bridged Line Appearances (SLA, BLA)
- draft is defunct but still some implementations out there
(cherry picked from commit 1e99795d2ddebe8a6794c3b407f96d30378b872f)

Daniel-Constantin Mierla authored on 06/01/2010 17:47:36 • Andrei Pelinescu-Onciul committed on 15/01/2010 13:30:17
Showing 2 changed files
... ...
@@ -99,6 +99,15 @@ static inline void parse_event_dialog_class(param_hooks_t* h, param_t* p)
99 99
 			h->event_dialog.sla = p;
100 100
 		}
101 101
 		break;
102
+
103
+	case 'm':
104
+	case 'M':
105
+		if ((p->name.len == 2) &&
106
+		    (!strncasecmp(p->name.s + 1, "a", 1))) {
107
+			p->type = P_MA;
108
+			h->event_dialog.ma = p;
109
+		}
110
+		break;
102 111
 	}
103 112
 }
104 113
 
... ...
@@ -61,7 +61,8 @@ typedef enum ptype {
61 61
 	P_FROM_TAG,  /* Dialog event package: from-tag */
62 62
 	P_TO_TAG,    /* Dialog event package: to-tag */
63 63
 	P_ISD,       /* Dialog event package: include-session-description */
64
-	P_SLA        /* Dialog event package: sla */
64
+	P_SLA,       /* Dialog event package: sla */
65
+	P_MA         /* Dialog event package: ma */
65 66
 } ptype_t;
66 67
 
67 68
 
... ...
@@ -121,6 +122,7 @@ struct event_dialog_hooks {
121 122
 	struct param* to_tag;
122 123
 	struct param* include_session_description;
123 124
 	struct param* sla;
125
+	struct param* ma;
124 126
 };
125 127
 
126 128
 /*