<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi.<BR> <BR>I am using firmware 8.5(4) SIP. I see the register message on the FreeSwitch machine using ngrep.<BR> <BR>Everything seems ok, but I get unauthorized. Then I thought to myseld that this might be NAT issue. So I tried setting up a Asterisk on the same subnet as the telephone is sitting on. Same result.<BR> <BR>I have taken some info out of security reasons. Theese are marked in red text. The ngrep log below is from the FreeSwitch machine.<BR> <BR>I have also read from zero to hero here.<BR><A href="http://www.freeswitch.org/node/401" target=_blank>http://www.freeswitch.org/node/401</A><BR> <BR>The two first link give description of how to setup a TFTP server and soforth. I already have this. Important to mention that the Cisco 7942 is a newer phone than in theese first two links so to get the relevant config look at the third link. Below is the third link from this page.<BR> <BR>Have used lots of info from this page.<BR><A href="http://www.voip-info.org/wiki/view/Asterisk+phone+cisco+79x1+xml+configuration+files+for+SIP" target=_blank>http://www.voip-info.org/wiki/view/Asterisk+phone+cisco+79x1+xml+configuration+files+for+SIP</A><BR>
<BR>
A little snippet from the console log on the phone.<BR>
977: ERR 09:43:30.785766 JVM: dns_gethostbysrv 3 h_errno<BR> 978: ERR 09:43:30.786378 JVM: sipTransportGetServerIPAddr: Error: sipTransportGetServerAddrPort returned error.<BR> 979: ERR 09:43:30.803646 JVM: dns_gethostbysrv 3 h_errno<BR> 980: ERR 09:43:30.804270 JVM: sipTransportGetServerIPAddr: Error: sipTransportGetServerAddrPort returned error.<BR> 981: ERR 09:43:30.821237 JVM: dns_gethostbysrv 3 h_errno<BR> 982: ERR 09:43:30.821830 JVM: sipTransportGetServerIPAddr: Error: sipTransportGetServerAddrPort returned error.<BR> 983: ERR 09:43:30.838442 JVM: dns_gethostbysrv 3 h_errno<BR> 984: ERR 09:43:30.839066 JVM: sipTransportGetServerIPAddr: Error: sipTransportGetServerAddrPort returned error.<BR> 985: ERR 09:43:30.856124 JVM: dns_gethostbysrv 3 h_errno<BR> 986: ERR 09:43:30.856715 JVM: sipTransportGetServerIPAddr: Error: sipTransportGetServerAddrPort returned error.<BR> 987: ERR 09:43:30.874024 JVM: dns_gethostbysrv 3 h_errno<BR> 988: ERR 09:43:30.874615 JVM: sipTransportGetServerIPAddr: Error: sipTransportGetServerAddrPort returned error.<BR> 989: ERR 09:43:30.891639 JVM: dns_gethostbysrv 3 h_errno<BR> 990: ERR 09:43:30.892265 JVM: sipTransportGetServerIPAddr: Error: sipTransportGetServerAddrPort returned error.<BR> 991: ERR 09:43:30.908952 JVM: dns_gethostbysrv 3 h_errno<BR> 992: ERR 09:43:30.909538 JVM: sipTransportGetServerIPAddr: Error: sipTransportGetServerAddrPort returned error.<BR> 993: NOT 09:43:30.985443 JVM: Startup Module Loader|cip.midp.midletsuite.InstallerModule:? - propertyChanged - device.callagent.messages.0 value=0<BR> 994: NOT 09:43:30.988054 JVM: Startup Module Loader|cip.midp.midletsuite.InstallerModule:? - propertyChanged - device.callagent.messages.0 value=0<BR> 995: ERR 09:43:31.002746 JVM: dns_gethostbysrv 3 h_errno<BR><BR>Best regards<BR> <BR>Andre<BR> <BR>U <FONT color=#c00000>public_ip_office_network</FONT>:3197 -> <FONT color=#c00000>ip_of_the_pbx_public_ip</FONT>:5060<BR>REGISTER sip:<FONT color=#c00000>dns_name_of_pbx</FONT> SIP/2.0.<BR>Via: SIP/2.0/UDP 192.168.1.240:5060;branch=z9hG4bK3fcf18ed.<BR>From: <sip:3000@dns_name_of_pbx>;tag=58bfea206ae00003efc5fd41-f09664b5.<BR>To: <sip:3000@<FONT color=#c00000>dns_name_of_pbx</FONT>>.<BR>Call-ID: <A href="mailto:58bfea20-6ae00002-2dbab34e-95e84e4d@192.168.1.240"><FONT color=#0068cf>58bfea20-6ae00002-2dbab34e-95e84e4d@192.168.1.240</FONT></A>.<BR>Max-Forwards: 70.<BR>Date: Wed, 16 Dec 2009 08:44:00 GMT.<BR>CSeq: 102 REGISTER.<BR>User-Agent: Cisco-CP7942G/8.5.3.<BR>Contact: <sip:3000@192.168.1.240:5060;transport=udp>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-58bfea206ae0>";+u.sip!model.ccm.cisco.com="434".<BR>Supported: (null),X-cisco-xsi-7.0.1.<BR>Content-Length: 0.<BR>Reason: SIP;cause=200;text="cisco-alarm:12 Name=SEP[<FONT color=#ff0000>mac address of phone</FONT>] Load=term42.default Last=cm-reset-tcp".<BR>Expires: 3600.<BR>.<BR><BR>U ip_of_the_public_ip:5060 -> public_ip_office_network:38398<BR>SIP/2.0 401 Unauthorized.<BR>Via: SIP/2.0/UDP 192.168.1.240:5060;branch=z9hG4bK3fcf18ed;received=public_ip_of_office_network;rport=38398.<BR>From: <sip:3000@<FONT color=#c00000>dns_name_of_pbx</FONT>>;tag=58bfea206ae00003efc5fd41-f09664b5.<BR>To: <sip:3000@<FONT color=#c00000>dns_name_of_pbx</FONT>>;tag=02KZmrmjpDyHD.<BR>Call-ID: <A href="mailto:58bfea20-6ae00002-2dbab34e-95e84e4d@192.168.1.240"><FONT color=#0068cf>58bfea20-6ae00002-2dbab34e-95e84e4d@192.168.1.240</FONT></A>.<BR>CSeq: 102 REGISTER.<BR>User-Agent: XXXX internal.<BR>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.<BR>Supported: timer, precondition, path, replaces.<BR>WWW-Authenticate: Digest realm="centrex.iplink.no", nonce="b91fe311-c1d7-e111-bd36-001e0bc2ead2", algorithm=MD5, qop="auth".<BR>Content-Length: 0.<BR><BR>Then it repeats itself.<BR> <BR>Config file phone SEP[macaddress].cnf.xml this is downloaded to phone via TFTP.<BR> <BR><device><BR><deviceProtocol>SIP</deviceProtocol><BR><sshUserId>username</secret><BR><sshPassword>password</secret><BR><devicePool><BR><dateTimeSetting><BR><dateTemplate>D-M-Y</dateTemplate><BR><timeZone>Central Europe Standard/Daylight Time</timeZone><BR><ntps><BR><ntp><BR><ntpMode>Unicast</ntpMode><BR></ntp><BR></ntps><BR></dateTimeSetting><BR><callManagerGroup><BR><members><BR><member priority="0"><BR><callManager><BR><ports><BR><ethernetPhonePort>2000</ethernetPhonePort><BR><sipPort>5060</sipPort><BR><securedSipPort>5061</securedSipPort><BR></ports><BR><processNodeName>dns_name_of_pbx</processNodeName><BR></callManager><BR></member><BR></members><BR></callManagerGroup><BR></devicePool><BR><sipProfile><BR><sipProxies><BR><backupProxy></backupProxy><BR><backupProxyPort></backupProxyPort><BR><emergencyProxy></emergencyProxy><BR><emergencyProxyPort></emergencyProxyPort><BR><outboundProxy></outboundProxy><BR><outboundProxyPort></outboundProxyPort><BR><registerWithProxy>true</registerWithProxy><BR></sipProxies><BR><sipCallFeatures><BR><cnfJoinEnabled>true</cnfJoinEnabled><BR><callForwardURI>x--serviceuri-cfwdall</callForwardURI><BR><callPickupURI>x-cisco-serviceuri-pickup</callPickupURI><BR><callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI><BR><callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI><BR><meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI><BR><abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI><BR><rfc2543Hold>false</rfc2543Hold><BR><callHoldRingback>2</callHoldRingback><BR><localCfwdEnable>true</localCfwdEnable><BR><semiAttendedTransfer>true</semiAttendedTransfer><BR><anonymousCallBlock>2</anonymousCallBlock><BR><callerIdBlocking>2</callerIdBlocking><BR><dndControl>0</dndControl><BR><remoteCcEnable>true</remoteCcEnable><BR></sipCallFeatures><BR><sipStack><BR><sipInviteRetx>6</sipInviteRetx><BR><sipRetx>10</sipRetx><BR><timerInviteExpires>180</timerInviteExpires><BR><timerRegisterExpires>3600</timerRegisterExpires><BR><timerRegisterDelta>5</timerRegisterDelta><BR><timerKeepAliveExpires>120</timerKeepAliveExpires><BR><timerSubscribeExpires>120</timerSubscribeExpires><BR><timerSubscribeDelta>5</timerSubscribeDelta><BR><timerT1>500</timerT1><BR><timerT2>4000</timerT2><BR><maxRedirects>70</maxRedirects><BR><remotePartyID>false</remotePartyID><BR><userInfo>None</userInfo><BR></sipStack><BR><autoAnswerTimer>1</autoAnswerTimer><BR><autoAnswerAltBehavior>false</autoAnswerAltBehavior><BR><autoAnswerOverride>true</autoAnswerOverride><BR><transferOnhookEnabled>false</transferOnhookEnabled><BR><enableVad>false</enableVad><BR>g711a<BR><dtmfAvtPayload>101</dtmfAvtPayload><BR><dtmfDbLevel>3</dtmfDbLevel><BR><dtmfOutofBand>avt</dtmfOutofBand><BR><alwaysUsePrimeLine>false</alwaysUsePrimeLine><BR><alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail><BR><kpml>3</kpml><BR><natEnabled>false</natEnabled><BR><natAddress>external IP address</natAddress><BR><phoneLabel>Bilutleie</phoneLabel><BR><stutterMsgWaiting>0</stutterMsgWaiting><BR><callStats>false</callStats><BR><silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts><BR><disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig><BR><startMediaPort>16384</startMediaPort><BR><stopMediaPort>32766</stopMediaPort><BR><sipLines><BR> <line button="1"><BR> <featureID>9</featureID><BR> <featureLabel>3000</featureLabel><BR> <name>3000</name> <BR> <displayName>3000</displayName><BR> <contact>3000</contact><BR> <proxy>dns_name_pbx</proxy><BR> <port>5060</port><BR> <autoAnswer><BR> <autoAnswerEnabled>2</autoAnswerEnabled><BR> </autoAnswer><BR> <callWaiting>3</callWaiting><BR> <authName>3000</authName><BR> <authPassword>secret</authPassword><BR> <sharedLine>false</sharedLine><BR> <messageWaitingLampPolicy>1</messageWaitingLampPolicy><BR> <messagesNumber>*97</messagesNumber><BR> <ringSettingIdle>4</ringSettingIdle><BR> <ringSettingActive>5</ringSettingActive><BR> <forwardCallInfoDisplay><BR> <callerName>true</callerName><BR> <callerNumber>false</callerNumber><BR> <redirectedNumber>false</redirectedNumber><BR> <dialedNumber>true</dialedNumber><BR> </forwardCallInfoDisplay><BR> </line><BR> </sipLines><BR><voipControlPort>5060</voipControlPort><BR><dscpForAudio>184</dscpForAudio><BR><ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy><BR><dialTemplate>dialplan.xml</dialTemplate><BR></sipProfile><BR><commonProfile><BR><phonePassword></phonePassword><BR><backgroundImageAccess>true</backgroundImageAccess><BR><callLogBlfEnabled>2</callLogBlfEnabled><BR></commonProfile><BR><loadInformation>SIP42.8-5-4S</loadInformation><BR><vendorConfig><BR><disableSpeaker>false</disableSpeaker><BR><disableSpeakerAndHeadset>false</disableSpeakerAndHeadset><BR><pcPort>0</pcPort><BR><settingsAccess>1</settingsAccess><BR><garp>0</garp><BR><voiceVlanAccess>0</voiceVlanAccess><BR><videoCapability>0</videoCapability><BR><autoSelectLineEnable>0</autoSelectLineEnable><BR><webAccess>0</webAccess><BR><daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive><BR><displayOnTime>00:00</displayOnTime><BR><displayOnDuration>00:00</displayOnDuration><BR><displayIdleTimeout>00:00</displayIdleTimeout><BR><spanToPCPort>1</spanToPCPort><BR><loggingDisplay>1</loggingDisplay><BR><loadServer></loadServer><BR></vendorConfig><BR><dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig><BR><dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices><BR><dscpForCm2Dvce>96</dscpForCm2Dvce><BR></device><BR><BR><BR>                                            </div></body>
</html>