[asterisk-dev] invalid sip dst port

ast guy astguy at gmail.com
Thu Feb 23 05:51:59 MST 2006


Hi!


A. 10.1.2.14 is the soft switch IP
B. 10.1.2.109 is machine running asterisk
 and  A is sending sip packet with Option field to B

Internet Protocol, Src Addr: 10.1.2.14 (10.1.2.14), Dst Addr: 10.1.2.109
(10.1.2.109)
User Datagram Protocol, Src Port: 5062 (5062), Dst Port: 5060 (5060)
Session Initiation Protocol
    Request-Line: OPTIONS sip:10.1.2.109 SIP/2.0
    Message Header
        Call-ID:AAMvHQAAA8AAABesCgACEA00000 at 10.1.2.14
        CSeq:1 OPTIONS
        From:<sip:10.1.2.14:5060>;tag=AAMvN_6KA8AAABesCgACEAxx
        Max-Forwards:0
        To:<sip:10.1.2.109:5060>
        Via:SIP/2.0/UDP
10.1.2.14:5060;branch=z9hG4bKhsig0000000000AAMwDgAAA8AAABesCgACEAi0930

Internet Protocol, Src Addr: 10.1.2.109 (10.1.2.109), Dst Addr:
10.1.2.14 (10.1.2.14)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5062 (5062)
Session Initiation Protocol
    Status-Line: SIP/2.0 404 Not Found
    Message Header
        Via: SIP/2.0/UDP
10.1.2.14:5060;branch=z9hG4bKhsig0000000000AAMwDgAAA8AAABesCgACEAi0930;received=10.0.2.14
        From: <sip:10.1.2.14:5060>;tag=AAMvN_6KA8AAABesCgACEAxx
        To: <sip:10.1.2.109:5060>;tag=as042f3adb
        Call-ID: AAMvHQAAA8AAABesCgACEA00000 at 10.1.2.14
        CSeq: 1 OPTIONS
        User-Agent: Burraq PBX
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
        Contact: <sip:10.1.2.109>
        Accept: application/sdp
        Content-Length: 0


Now problem is that asterisk is sending back SIP packets to port 5062
besides it is mentioned in Via header         Via:SIP/2.0/UDP
10.1.2.14:5060 <<--- to use port 5060 port . it's sending back packets
to 10.1.2.14:5062

Please suggest changes to do in SIP module code.

ag-



More information about the asterisk-dev mailing list