[sr-dev] git:master: core: sip parser - added internal flags to mark replacement of To/From

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 12 18:41:35 CET 2012


Module: sip-router
Branch: master
Commit: b347fd4ff4d1be946dba6e89d21a18bebe3c04da
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b347fd4ff4d1be946dba6e89d21a18bebe3c04da

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Mar 12 18:08:53 2012 +0100

core: sip parser - added internal flags to mark replacement of To/From

- used by uac module when updating From/To headers
- part of patch by Jasmin Schnatterbeck

---

 parser/msg_parser.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/parser/msg_parser.h b/parser/msg_parser.h
index 97974e1..ce71a44 100644
--- a/parser/msg_parser.h
+++ b/parser/msg_parser.h
@@ -119,6 +119,8 @@ enum request_method {
 #define FL_MTU_SCTP_FB  (1 << 10)
 #define FL_ADD_LOCAL_RPORT  (1 << 11) /*!< add 'rport' to local via hdr */
 #define FL_SDP_BODY     (1 << 12)  /*!< msg has SDP in body */
+#define FL_USE_UAC_FROM      (1<<13)  /* take FROM hdr from UAC instead of UAS*/
+#define FL_USE_UAC_TO        (1<<14)  /* take TO hdr from UAC instead of UAS */
 
 /* WARNING: Value (1 << 28) is temporarily reserved for use in kamailio call_control
  * module (flag  FL_USE_CALL_CONTROL )! */




More information about the sr-dev mailing list