[asterisk-users] 407 Proxy Authentication Required

Carles Pina i Estany carles at pina.cat
Thu Dec 4 11:05:54 CST 2008


Hello,

I'm receiving some traffic from a Softwitch to Asterisk

When I'm hiding the CallerID in the softwitch, everything is all right.

When I allow to send the callerid from softwitch to Asterisk (actually,
I would like to have it) Asterisk rejects the call with a 407 Proxy
Authentication SIP packet.

I copy-paste the SIP Invitation:
------------------
Session Initiation Protocol
    Request-Line: INVITE sip:34000000000 at 212.121.243.36:5060;user=phone SIP/2.0
        Method: INVITE
        [Resent Packet: False]
    Message Header
        Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK-ffff2700ffff3710ff000015ff5fff41
            Transport: UDP
            Sent-by Address: 2.2.2.2
            Sent-by port: 5060
            Branch: z9hG4bK-ffff2700ffff3710ff000015ff5fff41
        From: <sip:10000 at 2.2.2.2;user=phone>;tag=ffff2700ffff3710ff000015ff5fff41
            SIP from address: sip:10000 at 2.2.2.2
            SIP tag: ffff2700ffff3710ff000015ff5fff41
        To: <sip:34000000000 at 212.121.243.36:5060;user=phone>
            SIP to address: sip:34000000000 at 212.121.243.36:5060
        Call-ID: 2ce3270098f5371080000015c55ff041 at xxxxxxxx.cat
        CSeq: 1 INVITE
            Sequence Number: 1
            Method: INVITE
        Contact: <sip:10000 at 2.2.2.2;user=phone>
            Contact Binding: <sip:10000 at 2.2.2.2;user=phone>
                URI: <sip:10000 at 2.2.2.2;user=phone>
                    SIP contact address: sip:10000 at 2.2.2.2
        Max-Forwards: 10
        User-Agent: xxxxx
        Cisco-Guid: 406000640-2566207248-2147483669-3311398977
        Content-Type: application/sdp
        Content-Length: 164
------------------

sip.conf section:
[2.2.2.2]
host=2.2.2.2
type=friend
insecure=yes
context=test
canreinvite=no

(and calls goes to test context)

Which header is forcing Asterisk to ask for authentication, and if I hide the
callerid it's not asking it?

Thanks,

-- 
Carles Pina i Estany		GPG id: 0x17756391
	http://pinux.info



More information about the asterisk-users mailing list