Asterisk is not a SIP proxy.

Wei Su wrote:

We encouter a situation where we need to use SIP info to convey infomation
for one end point to another endpoint. I use asterisk to do the test and
find asterisk does not forward the SIP info to another endpoint, but act as
UAS and returns a 4xx error message. I think asterisk is not right to handle
this SIP info message. In RFC 3261 Page 70 "This protocol is designed to be extended. Future
extensions may define new methods and header fields at any time. An element
MUST NOT refuse to proxy a request becasue it contains a method or header
field it does not know about". In this case, asterisk does not understand
this INFO message, so it acts as a UAS instead of proxy.
How to let asterisk just forward this request to the other endpoint and
instead processing it as a UAS?
Thank you,
Wei
Here is the log from the asterisk server:
Mar 17 12:01:31 WARNING[2804]: chan_sip.c:6134 receive_info: Unable to parse
INFO message Here is the trace:
Frame 96 (808 bytes on wire, 808 bytes captured)
Session Initiation Protocol
Request-Line: INFO sip:[EMAIL PROTECTED] SIP/2.0
Method: INFO
Resent Packet: False
Message Header
Call-ID: [EMAIL PROTECTED]
From: Demo2<sip:[EMAIL PROTECTED];user=phone>;tag=221a0-a1cf
SIP Display info: Demo2
SIP from address: sip:[EMAIL PROTECTED]
SIP tag: 221a0-a1cf
To: <sip:[EMAIL PROTECTED];user=phone>;tag=as6b294484
SIP to address: sip:[EMAIL PROTECTED]
SIP tag: as6b294484
CSeq: 102 INFO
Via: SIP/2.0/UDP 192.168.10.164:5060
Contact: Demo2<sip:[EMAIL PROTECTED]:5060;user=phone>
Max-Forwards: 70
Supported: timer
Proxy-Authorization: Digest
username="6003",realm="asterisk",uri="sip:[EMAIL PROTECTED]",response="034d
6b15ec1b2fa91f59c55d51c0a8e7",nonce="70c7fe86"
Content-Type: application/media_control+xml
Content-Length: 195
Message body
<?xml version="1.0" encoding="utf-8" ?>\n
<media_control>\n
<vc_primitive>\n
<to_encoder>\n
<picture_fast_update>\n
</picture_fast_update>\n
</to_encoder>\n
</vc_primitive>\n
</media_control>


Frame 97 (430 bytes on wire, 430 bytes captured)
Session Initiation Protocol
    Status-Line: SIP/2.0 415 Unsupported media type
        Status-Code: 415
        Resent Packet: False
    Message Header
        Via: SIP/2.0/UDP 192.168.10.164:5060
        From: Demo2<sip:[EMAIL PROTECTED];user=phone>;tag=221a0-a1cf
            SIP Display info: Demo2
            SIP from address: sip:[EMAIL PROTECTED]
            SIP tag: 221a0-a1cf
        To: <sip:[EMAIL PROTECTED];user=phone>;tag=as6b294484
            SIP to address: sip:[EMAIL PROTECTED]
            SIP tag: as6b294484
        Call-ID: [EMAIL PROTECTED]
        CSeq: 102 INFO
        User-Agent: Asterisk PBX
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
        Contact: <sip:[EMAIL PROTECTED]>
        Content-Length: 0




------------------------------------------------------------------------

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


------------------------------------------------------------------------

This message has been 'sanitized'.  This means that potentially
dangerous content has been rewritten or removed.  The following
log describes which actions were taken.

Sanitizer (start="1111171580"):
  Part (pos="2669"):
    Part (pos="182"):
      SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
        Match (names="unnamed.txt", rule="1"):
          Enforced policy: accept

    Part (pos="3417"):
      SanitizeFile (filename="unnamed.html", mimetype="text/html"):
        Match (names="unnamed.html", rule="3"):
          ScanFile (file="/tmp/att-423b21fc-N8P-unnamed.html"):
            Scan succeeded, file is clean.

          Enforced policy: unknown

        Match (names="unnamed.html", rule="4"):
          Enforced policy: accept

      Note: Styles and layers give attackers many tools to fool the
      user and common browsers interpret Javascript code found
      within style definitions.  References:
       - http://www.securityfocus.com/bid/630
       - 
http://archives.indenial.com/hypermail/bugtraq/2001/January2001/0512.html
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307;_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;"_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_SPAN class=359343218-18032005_<<
                    as: >>_DEFANGED_SPAN class=359343218-18032005_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/SPAN_<<
                    as: >>_/DEFANGED_SPAN_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_DIV_<<
                    as: >>_p__DEFANGED_DIV_<<
      Rewrote HTML tag: >>_FONT face=&#23435;&#20307; size=2_<<
                    as: >>_FONT DEFANGED_face="&#23435;&#20307;" size="2"_<<
      Rewrote HTML tag: >>_/DIV_<<
                    as: >>_/p__DEFANGED_DIV_<<

  Part (pos="13954"):
    SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
      Match (names="unnamed.txt", rule="1"):
        Enforced policy: accept

  Total modifications so far: 91


Anomy 0.0.0 : Sanitizer.pm $Id: Sanitizer.pm,v 1.89 2004/09/02 10:14:15 bre Exp $


--
Always do right. This will gratify some people and astonish the rest.
Mark Twain
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to