Module: sip-router
Branch: kamailio_3.0
Commit: 1e99795d2ddebe8a6794c3b407f96d30378b872f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1e99795…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Jan 6 18:47:36 2010 +0100
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
---
parser/parse_param.c | 9 +++++++++
parser/parse_param.h | 4 +++-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/parser/parse_param.c b/parser/parse_param.c
index 5f204bb..20491f8 100644
--- a/parser/parse_param.c
+++ b/parser/parse_param.c
@@ -99,6 +99,15 @@ static inline void parse_event_dialog_class(param_hooks_t* h, param_t*
p)
h->event_dialog.sla = p;
}
break;
+
+ case 'm':
+ case 'M':
+ if ((p->name.len == 2) &&
+ (!strncasecmp(p->name.s + 1, "a", 1))) {
+ p->type = P_MA;
+ h->event_dialog.ma = p;
+ }
+ break;
}
}
diff --git a/parser/parse_param.h b/parser/parse_param.h
index 9d1060d..c50edd9 100644
--- a/parser/parse_param.h
+++ b/parser/parse_param.h
@@ -61,7 +61,8 @@ typedef enum ptype {
P_FROM_TAG, /* Dialog event package: from-tag */
P_TO_TAG, /* Dialog event package: to-tag */
P_ISD, /* Dialog event package: include-session-description */
- P_SLA /* Dialog event package: sla */
+ P_SLA, /* Dialog event package: sla */
+ P_MA /* Dialog event package: ma */
} ptype_t;
@@ -121,6 +122,7 @@ struct event_dialog_hooks {
struct param* to_tag;
struct param* include_session_description;
struct param* sla;
+ struct param* ma;
};
/*