I am having an issue with registering SIP client w/ NAT. I have set this up before on other boxes... But for some reason this one is not acting the same... I have attached a sip debug from the registration... For what ever reason it does not appear to be setting up the nat session correctly....
Am I seeing something wrong or even doing something wrong.... -gcc ############ SIP CONFIG ###################### ; ; SIP Configuration for Asterisk ; [general] port = 5060 ; Port to bind to bindaddr = 0.0.0.0 ; Address to bind to externip = <nat ip> ; Address that we're going to put in SIP messages if we're behind a NAT localnet = 10.100.254.0 ; Internal NETWORK address localmask = 255.255.255.0 ; Internal netmask context=default ; Default for incoming calls ;srvlookup = yes ; Enable SRV lookups on outbound calls ;pedantic = yes ; Enable slow, pedantic checking for Pingtel ;tos=lowdelay ;tos=184 ;maxexpirey=3600 ; Max length of incoming registration we allow ;defaultexpirey=120 ; Default length of incoming/outoing registration ;notifymimetype=text/plain ; Allow overriding of mime type in NOTIFY ;videosupport=yes ; Turn on support for SIP video disallow=all ; Disallow all codecs allow=ulaw ; Allow codecs in order of preference allow=ilbc allow=alaw [4003] type=friend username=4003 secret=4003 host=dynamic qualify=500 context=local nat=yes mailbox=4003 ############## SIP DEBUG #################3 Sip read: REGISTER sip:10.100.254.21 SIP/2.0 Content-Length: 0 Contact: <sip:192.168.1.10> Call-ID: [EMAIL PROTECTED] From: <sip:[EMAIL PROTECTED]>;tag=10990022 CSeq: 87 REGISTER To: <sip:[EMAIL PROTECTED]> Via: SIP/2.0/UDP 192.168.1.10:5060 8 headers, 0 lines Using latest request as basis request Sending to 192.168.1.10 : 5060 (non-NAT) Transmitting (NAT): SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.1.10:5060;received=69.132.68.17 From: <sip:[EMAIL PROTECTED]>;tag=10990022 To: <sip:[EMAIL PROTECTED]>;tag=as138021c1 Call-ID: [EMAIL PROTECTED] CSeq: 87 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> Content-Length: 0 to 69.132.68.17:5060 Transmitting (NAT): SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP 192.168.1.10:5060;received=69.132.68.17 From: <sip:[EMAIL PROTECTED]>;tag=10990022 To: <sip:[EMAIL PROTECTED]>;tag=as138021c1 Call-ID: [EMAIL PROTECTED] CSeq: 87 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> Proxy-Authenticate: Digest realm="asterisk", nonce="267e89bd" Content-Length: 0 to 69.132.68.17:5060 ^Dtnevoip*CLI> Sip read: REGISTER sip:10.100.254.21 SIP/2.0 Content-Length: 0 Contact: <sip:192.168.1.10> Call-ID: [EMAIL PROTECTED] From: <sip:[EMAIL PROTECTED]>;tag=10990413 CSeq: 88 REGISTER To: <sip:[EMAIL PROTECTED]> Via: SIP/2.0/UDP 192.168.1.10:5060 Proxy-Authorization: Digest username="4003",realm="asterisk",nonce="267e89bd",uri="sip:10.100.254.21 ",response="fb30e53fffc30ea15fc97acf7d82322f" 9 headers, 0 lines Using latest request as basis request Sending to 192.168.1.10 : 5060 (NAT) Transmitting (NAT): SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.1.10:5060;received=69.132.68.17 From: <sip:[EMAIL PROTECTED]>;tag=10990413 To: <sip:[EMAIL PROTECTED]>;tag=as138021c1 Call-ID: [EMAIL PROTECTED] CSeq: 88 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> Content-Length: 0 to 69.132.68.17:5060 Transmitting (NAT): SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.1.10:5060;received=69.132.68.17 From: <sip:[EMAIL PROTECTED]>;tag=10990413 To: <sip:[EMAIL PROTECTED]>;tag=as138021c1 Call-ID: [EMAIL PROTECTED] CSeq: 88 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> Content-Length: 0 to 69.132.68.17:5060 Feb 22 19:33:23 [1;33;40mNOTICE[0;37;40m[-1147384912]: [1;37;40mchan_sip.c[0;37;40m:[1;37;40m5577[0;37;40m [1;37;40mhandle_request[0;37;40m: Registration from '<sip:[EMAIL PROTECTED]>' failed for '69.132.68.17' ^Dtnevoip*CLI> Sip read: REGISTER sip:10.100.254.21 SIP/2.0 Content-Length: 0 Contact: <sip:192.168.1.10> Call-ID: [EMAIL PROTECTED] From: <sip:[EMAIL PROTECTED]>;tag=10990613 CSeq: 89 REGISTER To: <sip:[EMAIL PROTECTED]> Via: SIP/2.0/UDP 192.168.1.10:5060 8 headers, 0 lines Using latest request as basis request Sending to 192.168.1.10 : 5060 (non-NAT) Transmitting (NAT): SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.1.10:5060;received=69.132.68.17 From: <sip:[EMAIL PROTECTED]>;tag=10990613 To: <sip:[EMAIL PROTECTED]>;tag=as42b62c4b Call-ID: [EMAIL PROTECTED] CSeq: 89 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> Content- _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
