<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>&nbsp;<BR>I am using firmware 8.5(4) SIP. I see the register message on the FreeSwitch machine using ngrep.<BR>&nbsp;<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>&nbsp;<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>
&nbsp;<BR>
I have also read from zero to hero here.<BR>
<A href="http://www.freeswitch.org/node/401">http://www.freeswitch.org/node/401</A><BR>
&nbsp;<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>
&nbsp;<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">http://www.voip-info.org/wiki/view/Asterisk+phone+cisco+79x1+xml+configuration+files+for+SIP</A><BR>&nbsp;<BR>Best regards<BR>&nbsp;<BR>Andre<BR>&nbsp;<BR>U <FONT color=#c00000>public_ip_office_network</FONT>:3197 -&gt; <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: &lt;sip:3000@dns_name_of_pbx&gt;;tag=58bfea206ae00003efc5fd41-f09664b5.<BR>To: &lt;sip:3000@<FONT color=#c00000>dns_name_of_pbx</FONT>&gt;.<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: &lt;sip:3000@192.168.1.240:5060;transport=udp&gt;;+sip.instance="&lt;urn:uuid:00000000-0000-0000-0000-58bfea206ae0&gt;";+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>]&nbsp;Load=term42.default Last=cm-reset-tcp".<BR>Expires: 3600.<BR>.<BR><BR>U ip_of_the_public_ip:5060 -&gt; 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: &lt;sip:3000@<FONT color=#c00000>dns_name_of_pbx</FONT>&gt;;tag=58bfea206ae00003efc5fd41-f09664b5.<BR>To: &lt;sip:3000@<FONT color=#c00000>dns_name_of_pbx</FONT>&gt;;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:&nbsp;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>&nbsp;<BR>Config file phone SEP[macaddress].cnf.xml this is downloaded to phone via TFTP.<BR>&nbsp;<BR>&lt;device&gt;<BR>&lt;deviceProtocol&gt;SIP&lt;/deviceProtocol&gt;<BR>&lt;sshUserId&gt;username&lt;/secret&gt;<BR>&lt;sshPassword&gt;password&lt;/secret&gt;<BR>&lt;devicePool&gt;<BR>&lt;dateTimeSetting&gt;<BR>&lt;dateTemplate&gt;D-M-Y&lt;/dateTemplate&gt;<BR>&lt;timeZone&gt;Central Europe Standard/Daylight Time&lt;/timeZone&gt;<BR>&lt;ntps&gt;<BR>&lt;ntp&gt;<BR>&lt;ntpMode&gt;Unicast&lt;/ntpMode&gt;<BR>&lt;/ntp&gt;<BR>&lt;/ntps&gt;<BR>&lt;/dateTimeSetting&gt;<BR>&lt;callManagerGroup&gt;<BR>&lt;members&gt;<BR>&lt;member priority="0"&gt;<BR>&lt;callManager&gt;<BR>&lt;ports&gt;<BR>&lt;ethernetPhonePort&gt;2000&lt;/ethernetPhonePort&gt;<BR>&lt;sipPort&gt;5060&lt;/sipPort&gt;<BR>&lt;securedSipPort&gt;5061&lt;/securedSipPort&gt;<BR>&lt;/ports&gt;<BR>&lt;processNodeName&gt;dns_name_of_pbx&lt;/processNodeName&gt;<BR>&lt;/callManager&gt;<BR>&lt;/member&gt;<BR>&lt;/members&gt;<BR>&lt;/callManagerGroup&gt;<BR>&lt;/devicePool&gt;<BR>&lt;sipProfile&gt;<BR>&lt;sipProxies&gt;<BR>&lt;backupProxy&gt;&lt;/backupProxy&gt;<BR>&lt;backupProxyPort&gt;&lt;/backupProxyPort&gt;<BR>&lt;emergencyProxy&gt;&lt;/emergencyProxy&gt;<BR>&lt;emergencyProxyPort&gt;&lt;/emergencyProxyPort&gt;<BR>&lt;outboundProxy&gt;&lt;/outboundProxy&gt;<BR>&lt;outboundProxyPort&gt;&lt;/outboundProxyPort&gt;<BR>&lt;registerWithProxy&gt;true&lt;/registerWithProxy&gt;<BR>&lt;/sipProxies&gt;<BR>&lt;sipCallFeatures&gt;<BR>&lt;cnfJoinEnabled&gt;true&lt;/cnfJoinEnabled&gt;<BR>&lt;callForwardURI&gt;x--serviceuri-cfwdall&lt;/callForwardURI&gt;<BR>&lt;callPickupURI&gt;x-cisco-serviceuri-pickup&lt;/callPickupURI&gt;<BR>&lt;callPickupListURI&gt;x-cisco-serviceuri-opickup&lt;/callPickupListURI&gt;<BR>&lt;callPickupGroupURI&gt;x-cisco-serviceuri-gpickup&lt;/callPickupGroupURI&gt;<BR>&lt;meetMeServiceURI&gt;x-cisco-serviceuri-meetme&lt;/meetMeServiceURI&gt;<BR>&lt;abbreviatedDialURI&gt;x-cisco-serviceuri-abbrdial&lt;/abbreviatedDialURI&gt;<BR>&lt;rfc2543Hold&gt;false&lt;/rfc2543Hold&gt;<BR>&lt;callHoldRingback&gt;2&lt;/callHoldRingback&gt;<BR>&lt;localCfwdEnable&gt;true&lt;/localCfwdEnable&gt;<BR>&lt;semiAttendedTransfer&gt;true&lt;/semiAttendedTransfer&gt;<BR>&lt;anonymousCallBlock&gt;2&lt;/anonymousCallBlock&gt;<BR>&lt;callerIdBlocking&gt;2&lt;/callerIdBlocking&gt;<BR>&lt;dndControl&gt;0&lt;/dndControl&gt;<BR>&lt;remoteCcEnable&gt;true&lt;/remoteCcEnable&gt;<BR>&lt;/sipCallFeatures&gt;<BR>&lt;sipStack&gt;<BR>&lt;sipInviteRetx&gt;6&lt;/sipInviteRetx&gt;<BR>&lt;sipRetx&gt;10&lt;/sipRetx&gt;<BR>&lt;timerInviteExpires&gt;180&lt;/timerInviteExpires&gt;<BR>&lt;timerRegisterExpires&gt;3600&lt;/timerRegisterExpires&gt;<BR>&lt;timerRegisterDelta&gt;5&lt;/timerRegisterDelta&gt;<BR>&lt;timerKeepAliveExpires&gt;120&lt;/timerKeepAliveExpires&gt;<BR>&lt;timerSubscribeExpires&gt;120&lt;/timerSubscribeExpires&gt;<BR>&lt;timerSubscribeDelta&gt;5&lt;/timerSubscribeDelta&gt;<BR>&lt;timerT1&gt;500&lt;/timerT1&gt;<BR>&lt;timerT2&gt;4000&lt;/timerT2&gt;<BR>&lt;maxRedirects&gt;70&lt;/maxRedirects&gt;<BR>&lt;remotePartyID&gt;false&lt;/remotePartyID&gt;<BR>&lt;userInfo&gt;None&lt;/userInfo&gt;<BR>&lt;/sipStack&gt;<BR>&lt;autoAnswerTimer&gt;1&lt;/autoAnswerTimer&gt;<BR>&lt;autoAnswerAltBehavior&gt;false&lt;/autoAnswerAltBehavior&gt;<BR>&lt;autoAnswerOverride&gt;true&lt;/autoAnswerOverride&gt;<BR>&lt;transferOnhookEnabled&gt;false&lt;/transferOnhookEnabled&gt;<BR>&lt;enableVad&gt;false&lt;/enableVad&gt;<BR>g711a<BR>&lt;dtmfAvtPayload&gt;101&lt;/dtmfAvtPayload&gt;<BR>&lt;dtmfDbLevel&gt;3&lt;/dtmfDbLevel&gt;<BR>&lt;dtmfOutofBand&gt;avt&lt;/dtmfOutofBand&gt;<BR>&lt;alwaysUsePrimeLine&gt;false&lt;/alwaysUsePrimeLine&gt;<BR>&lt;alwaysUsePrimeLineVoiceMail&gt;false&lt;/alwaysUsePrimeLineVoiceMail&gt;<BR>&lt;kpml&gt;3&lt;/kpml&gt;<BR>&lt;natEnabled&gt;false&lt;/natEnabled&gt;<BR>&lt;natAddress&gt;external IP address&lt;/natAddress&gt;<BR>&lt;phoneLabel&gt;Bilutleie&lt;/phoneLabel&gt;<BR>&lt;stutterMsgWaiting&gt;0&lt;/stutterMsgWaiting&gt;<BR>&lt;callStats&gt;false&lt;/callStats&gt;<BR>&lt;silentPeriodBetweenCallWaitingBursts&gt;10&lt;/silentPeriodBetweenCallWaitingBursts&gt;<BR>&lt;disableLocalSpeedDialConfig&gt;false&lt;/disableLocalSpeedDialConfig&gt;<BR>&lt;startMediaPort&gt;16384&lt;/startMediaPort&gt;<BR>&lt;stopMediaPort&gt;32766&lt;/stopMediaPort&gt;<BR>&lt;sipLines&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;line button="1"&gt;<BR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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;autoAnswerEnabled&gt;2&lt;/autoAnswerEnabled&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/autoAnswer&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;callWaiting&gt;3&lt;/callWaiting&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;authName&gt;3000&lt;/authName&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;authPassword&gt;secret&lt;/authPassword&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sharedLine&gt;false&lt;/sharedLine&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;messageWaitingLampPolicy&gt;1&lt;/messageWaitingLampPolicy&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;messagesNumber&gt;*97&lt;/messagesNumber&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ringSettingIdle&gt;4&lt;/ringSettingIdle&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ringSettingActive&gt;5&lt;/ringSettingActive&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;forwardCallInfoDisplay&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;callerName&gt;true&lt;/callerName&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;callerNumber&gt;false&lt;/callerNumber&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;redirectedNumber&gt;false&lt;/redirectedNumber&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dialedNumber&gt;true&lt;/dialedNumber&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/forwardCallInfoDisplay&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/line&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/sipLines&gt;<BR>&lt;voipControlPort&gt;5060&lt;/voipControlPort&gt;<BR>&lt;dscpForAudio&gt;184&lt;/dscpForAudio&gt;<BR>&lt;ringSettingBusyStationPolicy&gt;0&lt;/ringSettingBusyStationPolicy&gt;<BR>&lt;dialTemplate&gt;dialplan.xml&lt;/dialTemplate&gt;<BR>&lt;/sipProfile&gt;<BR>&lt;commonProfile&gt;<BR>&lt;phonePassword&gt;&lt;/phonePassword&gt;<BR>&lt;backgroundImageAccess&gt;true&lt;/backgroundImageAccess&gt;<BR>&lt;callLogBlfEnabled&gt;2&lt;/callLogBlfEnabled&gt;<BR>&lt;/commonProfile&gt;<BR>&lt;loadInformation&gt;SIP42.8-5-4S&lt;/loadInformation&gt;<BR>&lt;vendorConfig&gt;<BR>&lt;disableSpeaker&gt;false&lt;/disableSpeaker&gt;<BR>&lt;disableSpeakerAndHeadset&gt;false&lt;/disableSpeakerAndHeadset&gt;<BR>&lt;pcPort&gt;0&lt;/pcPort&gt;<BR>&lt;settingsAccess&gt;1&lt;/settingsAccess&gt;<BR>&lt;garp&gt;0&lt;/garp&gt;<BR>&lt;voiceVlanAccess&gt;0&lt;/voiceVlanAccess&gt;<BR>&lt;videoCapability&gt;0&lt;/videoCapability&gt;<BR>&lt;autoSelectLineEnable&gt;0&lt;/autoSelectLineEnable&gt;<BR>&lt;webAccess&gt;0&lt;/webAccess&gt;<BR>&lt;daysDisplayNotActive&gt;1,2,3,4,5,6,7&lt;/daysDisplayNotActive&gt;<BR>&lt;displayOnTime&gt;00:00&lt;/displayOnTime&gt;<BR>&lt;displayOnDuration&gt;00:00&lt;/displayOnDuration&gt;<BR>&lt;displayIdleTimeout&gt;00:00&lt;/displayIdleTimeout&gt;<BR>&lt;spanToPCPort&gt;1&lt;/spanToPCPort&gt;<BR>&lt;loggingDisplay&gt;1&lt;/loggingDisplay&gt;<BR>&lt;loadServer&gt;&lt;/loadServer&gt;<BR>&lt;/vendorConfig&gt;<BR>&lt;dscpForSCCPPhoneConfig&gt;96&lt;/dscpForSCCPPhoneConfig&gt;<BR>&lt;dscpForSCCPPhoneServices&gt;0&lt;/dscpForSCCPPhoneServices&gt;<BR>&lt;dscpForCm2Dvce&gt;96&lt;/dscpForCm2Dvce&gt;<BR>&lt;/device&gt;<BR>                                               </div></body>
</html>