cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

Problem with registration Cisco 2801 as SIP gateway with SIP server

m.hyza
Level 1
Level 1

Hello, please help me with the configuration of CPE router as the Cisco 2801 SIP UAC. CPE router can not register to the SIP server (FXS phone. - Cisco 2801 - SIP server). In Wireshark I see that I get the Message Router SIP 401 Unauthorized.

Here is applicable configuration:

SIP#
...
voice service voip
 no ip address trusted authenticate
 allow-connections sip to sip
 no supplementary-service sip handle-replaces
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
 sip
  bind control source-interface FastEthernet0/0.765
  bind media source-interface FastEthernet0/0.765
  early-offer forced
  sip-profiles 1
...
sip-ua
 credentials username +421906200200 password 7 ABC realm ABC.DEF.COM
 authentication username +421906200200 password 7 ABC realm ABC.DEF.COM
 no redirection
 registrar dns:ABC.DEF.COM expires 3600
 sip-server dns:ABC.DEF.COM
...

And here's the debug output from ccsip all:

SIP#show sip register stat
Line                             peer       expires(sec) registered P-Associ-URI
================================ ========== ============ ========== ============
+421906200200                    -1         102          no         

SIP#debug ccsip al

*Apr 16 08:10:24.512: //-1/xxxxxxxxxxxx/SIP/Info/sipSPIAddContextToTable: Added context(0x68CA80D8) with key=[736] to table
*Apr 16 08:10:24.512: //-1/000000000000/SIP/Info/ccsip_offer_ans_init:
*Apr 16 08:10:24.512: //-1/000000000000/SIP/Info/ccsip_iwf_init:  
*Apr 16 08:10:24.512: //-1/000000000000/SIP/Info/ccsip_ipip_media_service_init:
*Apr 16 08:10:24.512: //-1/000000000000/SIP/Info/sipSPI_ipip_vcc_Initialization:  Entry...
*Apr 16 08:10:24.512: //-1/xxxxxxxxxxxx/SIP/Info/sipSPISetSipProfilesTag: voice class SIP Profiles tag is set : 1
*Apr 16 08:10:24.512: //-1/000000000000/SIP/Info/ccsipRegisterSetTargetInfo: p2p mode with Registrar Server = dns:imspp.orange.sk
*Apr 16 08:10:24.512: //-1/000000000000/SIP/Info/ccsipRegisterSetTargetInfo: Parsing The Registrar Address
*Apr 16 08:10:24.512: //-1/xxxxxxxxxxxx/SIP/Info/sipSPIGetOutboundHostAndDestHostPrivate: CCSIP: target_host : imspp.orange.sk target_port : 5060

*Apr 16 08:10:24.512: //-1/000000000000/SIP/Info/sipSPIValidateAndCopyOutboundHost: CCSIP: copy target_host to outbound_host
*Apr 16 08:10:24.512: //-1/000000000000/SIP/Info/sipSPIOutboundProxyReuse: Do not reuse Outbound Proxy IP adress and Port
*Apr 16 08:10:24.512: //-1/000000000000/SIP/State/sipSPIChangeState: 0x68CA80D8 : State change from (STATE_NONE, SUBSTATE_NONE)  to (STATE_IDLE, SUBSTATE_NONE)
*Apr 16 08:10:24.512: //-1/000000000000/SIP/Info/ccsip_spi_registrar_add_expires_header: Inside ccsip_spi_registrar_add_expires_header for Expires
*Apr 16 08:10:24.512: //-1/xxxxxxxxxxxx/SIP/Event/sipSPIEventInfo: Queued event from SIP SPI : SIPSPI_EV_OUTBOUND_REGISTER
*Apr 16 08:10:24.512: //-1/xxxxxxxxxxxx/SIP/Info/sipSPIIncrementOverloadCount: Local 1 Global 1
*Apr 16 08:10:24.516: //-1/xxxxxxxxxxxx/SIP/Info/ccsip_process_sipspi_queue_event: ccsip_spi_get_msg_type returned: 3 for event 40
*Apr 16 08:10:24.516: //-1/000000000000/SIP/Info/act_idle_outgoing_register: In act_idle_outgoing_register

*Apr 16 08:10:24.516: //725/000000000000/SIP/Info/act_idle_outgoing_register:  Se
SIP#nd REGISTER to imspp.orange.sk:5060

*Apr 16 08:10:24.516: //725/000000000000/SIP/Info/sipSPIUaddCcbToUACTable: ****Adding to UAC table.
*Apr 16 08:10:24.516: //725/000000000000/SIP/Info/sipSPIUaddCcbToTable: Added to table. ccb=0x68CA80D8 key=45A45733-C3C611E3-800DB53B-FCD69C43
*Apr 16 08:10:24.516: //-1/xxxxxxxxxxxx/SIP/Event/sipSPIEventInfo: Queued event from SIP SPI : SIPSPI_EV_DNS_RESOLVE
*Apr 16 08:10:24.516: //725/000000000000/SIP/State/sipSPIChangeState: 0x68CA80D8 : State change from (STATE_IDLE, SUBSTATE_NONE)  to (STATE_IDLE, SUBSTATE_SENT_DNS)
*Apr 16 08:10:24.516: //725/000000000000/SIP/State/sipSPIChangeState: 0x68CA80D8 : State change from (STATE_IDLE, SUBSTATE_SENT_DNS)  to (SIP_STATE_OUTGOING_REGISTER, SUBSTATE_SENT_DNS)
*Apr 16 08:10:24.516: //-1/xxxxxxxxxxxx/SIP/Info/sip_dns_type_srv_query: TYPE SRV query for _sip._udp.imspp.orange.sk and type:1
SIP#
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/sip_dns_type_a_aaaa_query: DNS query for imspp.orange.sk and type:1
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/sip_dns_type_a_query: TYPE A query successful for imspp.orange.sk
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/sip_dns_type_a_query: ttl for A records = 0 seconds
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/sip_dns_type_a_aaaa_query: IP Address of imspp.orange.sk is:

*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/sip_dns_type_a_aaaa_query: 213.151.230.248

*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/ccsip_process_sipspi_queue_event: ccsip_spi_get_msg_type returned: 2 for event 43
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/sipSPICacheHostToCCB: sipSPICacheHostToCCB dnsResponse.num_hosts = 1
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/sipSPICacheHostToCCB: IP Address No. 1, IP address 213.151.230.248
*Apr 16 08:10:42.516: //725/000000000000/SIP/Info/resolve_sig_ip_address_to_bind: signaling bind address : 192.168.49.6
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/ccsip_api_register_target_dns_resolved: ttl = 0
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/ccsip_spi_register_get_rcb: Getting New RCB [0x691D01B0]
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/ccsip_register_set_dns_resolved_address: CCSIP_REGISTER:: registrar 0 DNS resolved addr set to 213.151.230.248:5060
*Apr 16 08:10:42.516: //-1/xxxxxxxxxxxx/SIP/Info/ccsipRegisterStartRCBTimer: Starting timer for pattern  for 3600 seconds
*Apr 16 08:10:42.516: //725/000000000000/SIP/State/sipSPIChangeState: 0x68CA80D8 : State change from (SIP_STATE_OUTGOING_REGISTER, SUBSTATE_SENT_DNS)  to (SIP_STATE_OUTGOING_REGISTER, SUBSTATE_NONE)
*Apr 16 08:10:42.516: //725/000000000000/SIP/Info/sipSPIPresendProcessing: Presend Processing called for 7 event
*Apr 16 08:10:42.520: //-1/xxxxxxxxxxxx/SIP/Info/sipSPIRetrieveOutgoingPassThruData: Retrieving Data from RCB
*Apr 16 08:10:42.520: //-1/xxxxxxxxxxxx/SIP/Info/sipSPIRetrieveOutgoingPassThruData: Retrievi
SIP#ng Data from RCB
*Apr 16 08:10:42.520: //-1/xxxxxxxxxxxx/SIP/Info/sipSPISetDateHeader: Converting TimeZone METDST to SIP default timezone = GMT
*Apr 16 08:10:42.520: //725/000000000000/SIP/Info/sipSPISendRegister: Associated container=0x68EEFC2C to Register
*Apr 16 08:10:42.520: //725/000000000000/SIP/Transport/sipSPISendRegister: Sending REGISTER to the transport layer
*Apr 16 08:10:42.520: //725/000000000000/SIP/Transport/sipSPIGetSwitchTransportFlag: Return the Global configuration, Switch Transport is FALSE
*Apr 16 08:10:42.520: //725/000000000000/SIP/Transport/sipSPITransportSendMessage: msg=0x680DA888, addr=213.151.230.248, port=5060, sentBy_port=0, local_addr=192.168.49.6, is_req=1, transport=1, switch=0, callBack=0x6181F574
*Apr 16 08:10:42.520: //725/000000000000/SIP/Transport/sipSPITransportSendMessage: Proceedable for sending msg immediately
*Apr 16 08:10:42.520: //725/000000000000/SIP/Transport/sipTransportLogicSendMsg: switch transport is 0
*Apr 16 08:10:42.520: //-1/xxxxxxxxxxxx/SIP/Transport/sipConnectionManagerGetConnection: connection required for raddr:213.151.230.248, rport:5060 with laddr:192.168.49.6

*Apr 16 08:10:42.520: //725/000000000000/SIP/Transport/sipTransportLogicSendMsg: Set to send the msg=0x680DA888
*Apr 16 08:10:42.520: //-1/xxxxxxxxxxxx/SIP/Transport/sipTransportPostSendMessage: Posting send for msg=0x680DA888, addr=213.151.230.248, port=5060, local_addr=192.168.49.6, connId=3 for UDP
*Apr 16 08:10:42.520: //725/000000000000/SIP/State/sipSPIChangeState: 0x68CA80D8 : State change from (SIP_STATE_OUTGOING_REGISTER, SUBSTATE_NONE)  to (SIP_STATE_OUTGOING_REGISTER, SUBSTATE_NONE)
*Apr 16 08:10:42.524: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:

Sent:
REGISTER sip:imspp.orange.sk:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.49.6:5060;branch=z9hG4bK2D496B
From: <sip:+421906200200@imspp.orange.sk>;tag=958E83C-1011
To: <sip:+421906200200@imspp.orange.sk>
Date: Wed, 16 Apr 2014 06:10:42 GMT
Call-ID: 45A45733-C3C611E3-800DB53B-FCD69C43
User-Agent: Cisco-SIPGateway/IOS
SIP#-12.x
Max-Forwards: 70
Timestamp: 1397628642
CSeq: 320 REGISTER
Contact: <sip:+421906200200@192.168.49.6:5060>
Expires:  3600
Supported: path
Content-Length: 0

Who Me Too'd this topic