|
@@ -156,6 +156,16 @@ if ( (*tmp==(firstchar) || *tmp==((firstchar) | 32)) && \
|
|
|
!strncasecmp((req)->first_line.u.request.version.s, \
|
|
|
SIP_VERSION, SIP_VERSION_LEN))
|
|
|
|
|
|
+#define IS_HTTP_REPLY(rpl) \
|
|
|
+ ((rpl)->first_line.u.reply.version.len >= HTTP_VERSION_LEN && \
|
|
|
+ !strncasecmp((rpl)->first_line.u.reply.version.s, \
|
|
|
+ HTTP_VERSION, HTTP_VERSION_LEN))
|
|
|
+
|
|
|
+#define IS_SIP_REPLY(rpl) \
|
|
|
+ ((rpl)->first_line.u.reply.version.len >= SIP_VERSION_LEN && \
|
|
|
+ !strncasecmp((rpl)->first_line.u.reply.version.s, \
|
|
|
+ SIP_VERSION, SIP_VERSION_LEN))
|
|
|
+
|
|
|
/*! \brief
|
|
|
* Return a URI to which the message should be really sent (not what should
|
|
|
* be in the Request URI. The following fields are tried in this order:
|