cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7683
Views
10
Helpful
13
Replies

unable to register with sip provider

sampath9614
Level 1
Level 1

hello experts,

i am running out with this issue for the day. Please find the attached config.

i have tried debug ccsip messages but not getting any logs there.

debug ccsip events

debug ccsip errors showing me this error.

Queued event from SIP SPI : SIPSPI_EV_OUTBOUND_REGISTER

under show sip-ua regsiter status its showing reg = NO

Please help

13 Replies 13

Dennis Mink
VIP Alumni
VIP Alumni

Sam,

post your config, typically if you configure your cube as a SIP UA, you would see SIP Register requests leavening your CUBE and a response coming from your provider, debug ccsip messages / term mon , would show you this.   are you getting any debug information at all?

Please rate if helpful.

Please remember to rate useful posts, by clicking on the stars below.

bro.. at the beginning i saw some messages from ccsip messages output, later on no logs are generating.. in those previous logs it shown as 502/internal error.

i don't know why the debug ccsip messages is not showing any logs now.. do you have any idea??

do a "term mon" after you enter the debug ccsip messages. These debug messages are crucial to solving this.  make a call and do for instance debug voip dial peer and see if you get any output then, if not you need to check things like your debug buffer size on your gateway.

Please rate if useful

Please remember to rate useful posts, by clicking on the stars below.

term mon enabled already, i can see other logs popping out..

i have cleard logs and checking.. how can i set the debug buffer size ?

any ideas on the config posted?

now i am not able to see any logs, i have cleared all the logs.

Any ideas bro?

Slavik Bialik
Level 7
Level 7

Not sure, but I think I see the issue.

ip domain name bangalore.relianceims.in
ip name-server 10.237.250.225

Why are you doing this? The 'ip domain name' is the domain name of the router, and I'm guessing that 'bangalore.relianceims.in' is the FQDN of the ITSP of which you're trying to register to.

I'm guessing that you tried to add a local DNS record on the router, so that bangalore.relianceims.in will be resolved, but that's not how you do it.

Here's an example of how you really need to do it:

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dns/configuration/15-mt/dns-15-mt-book/dns-config-dns.html#GUID-28B5F881-354D-4B8D-A659-C5DEB05AB070

So I think currently if you'll try to ping or trace route the 'bangalore.relianceims.in' address, you won't get any response.

BUT, you can just change your sip-ua and dial-peer configuration that instead of pointing to "bangalore.relianceims.in" it'll point to an IP address, which I'm guessing this is the IP of the ITSP: 

10.237.250.225.

So you don't see any SIP REGISTER message probably because it is a networking issue, as the address cannot be resolved and it won't open TCP connections to it.

please find the attached new logs, am able to reach the sip server but geting the following error

unauthorized

and forbidden

debugs attached please have a look.

The unauthorized is OK, because that is part of SIP registration. The Forbidden message isn't.

Please try to remove this line in the sip-ua section:

authentication username +914038123789 password 7 03550958525A77

In my opinion, it's not a relevant one, and maybe it's interfering with the registration. As you can see, the password hash in this line, is different from the 'credentials' command.

And in my configurations, I never used the 'authentication' command and it is working fine.

done as you said... following is the output

No Inactive Message Discriminator.


    Console logging: disabled
    Monitor logging: disabled
    Buffer logging:  level debugging, 167 messages logged, xml disabled,
                    filtering disabled
    Exception Logging: size (4096 bytes)
    Count and timestamp logging messages: disabled
    Persistent logging: disabled

No active filter modules.

    Trap logging: disabled

Log Buffer (100000 bytes):

*Jul  1 17:04:35.471: //-1/xxxxxxxxxxxx/SIP/Info/verbose/4096/sipSPIAddContextToTable: Added context(0x435E4E08) with key=[6] to table
*Jul  1 17:04:35.471: //-1/000000000000/SIP/Info/info/4096/ccsip_ipip_media_service_init:
*Jul  1 17:04:35.471: //-1/000000000000/SIP/Info/info/4096/ccsip_tdmip_media_service_init:
*Jul  1 17:04:35.471: //-1/000000000000/SIP/Info/verbose/36864/ccsip_ipip_media_forking_init: MF: Queue is initialised..
*Jul  1 17:04:35.471: //-1/000000000000/SIP/Info/notify/262144/ccsipRegisterSetTargetInfo: p2p mode with Registrar Server = dns:bangalore.relianceims.in
*Jul  1 17:04:35.471: //-1/000000000000/SIP/Info/verbose/262144/ccsipRegisterSetTargetInfo: Parsing The Registrar Address
*Jul  1 17:04:35.471: //-1/xxxxxxxxxxxx/SIP/Info/verbose/5120/sipSPIGetOutboundHostAndDestHostPrivate: CCSIP: target_host : bangalore.relianceims.in target_port : 5060

*Jul  1 17:04:35.471: //-1/xxxxxxxxxxxx/SIP/Info/verbose/5120/sipSPIGetOutboundHostAndDestHostPrivate: CCSIP: outbound_host : 10.237.250.225 outbound_port : 5060

*Jul  1 17:04:35.471: //-1/000000000000/SIP/Info/critical/8192/sipSPIOutboundProxyReuse: Do not reuse Outbound Proxy IP adress and Port
*Jul  1 17:04:35.471: //-1/000000000000/SIP/State/sipSPIChangeState: 0x435E4E08 : State change from (STATE_NONE, SUBSTATE_NONE)  to (STATE_IDLE, SUBSTATE_NONE)
*Jul  1 17:04:35.471: //-1/000000000000/SIP/Info/verbose/6144/ccsip_spi_registrar_add_expires_header: Inside ccsip_spi_registrar_add_expires_header for Expires
*Jul  1 17:04:35.471: //-1/xxxxxxxxxxxx/SIP/Event/sipSPIEventInfo: Queued event from SIP SPI : SIPSPI_EV_OUTBOUND_REGISTER
*Jul  1 17:04:35.471: //-1/xxxxxxxxxxxx/SIP/Info/info/262144/sipSPIIncrementOverloadCount: Local 1 Global 1
*Jul  1 17:04:35.499: //-1/xxxxxxxxxxxx/SIP/Info/info/4096/ccsip_process_sipspi_queue_event: ccsip_spi_get_msg_type returned: 3 for event 40
*Jul  1 17:04:35.499: //-1/000000000000/SIP/Info/verbose/262144/act_idle_outgoing_register: In act_idle_outgoing_register

*Jul  1 17:04:35.499: //5/000000000000/SIP/Info/info/262144/act_idle_outgoing_register:  Send REGISTER to 10.237.250.225:5060

*Jul  1 17:04:35.499: //5/000000000000/SIP/Info/verbose/4096/sipSPIUaddCcbToUACTable: ****Adding to UAC table.0x435E4E08 E9DBA670-5DB511E7-8003D924-8C24073B
*Jul  1 17:04:35.499: //5/000000000000/SIP/Info/verbose/4096/sipSPIUaddCcbToTable: Added to table. ccb=0x435E4E08 key=E9DBA670-5DB511E7-8003D924-8C24073B balance 1
*Jul  1 17:04:35.499: //-1/xxxxxxxxxxxx/SIP/Info/verbose/512/ccsip_get_vrf_from_sip_bind: vrfid 0 for tag 0, sip_vrfid 0, voice_vrfid 0
*Jul  1 17:04:35.499: //5/000000000000/SIP/Info/info/8192/resolve_sig_ip_address_to_bind: VRF id = 0
*Jul  1 17:04:35.499: //5/000000000000/SIP/Info/info/8192/resolve_sig_ip_address_to_bind: VRF id = 0
*Jul  1 17:04:35.499: //-1/xxxxxxxxxxxx/SIP/Info/info/8192/ccsip_get_ifaddress: ip_address IPv4 10.17.127.113 for SIP
*Jul  1 17:04:35.499: //-1/xxxxxxxxxxxx/SIP/Info/info/8192/resolve_ip_address_to_bind: ip_get_ifaddress IPv4 10.17.127.113 for SIP
*Jul  1 17:04:35.499: //5/000000000000/SIP/Info/info/8192/resolve_sig_ip_address_to_bind: signaling bind address : 10.17.127.113
*Jul  1 17:04:35.499: //-1/xxxxxxxxxxxx/SIP/Info/info/8192/resolve_sig_ip_address_to_bind: return addr 10.17.127.113
*Jul  1 17:04:35.499: //-1/xxxxxxxxxxxx/SIP/Info/info/1024/httpish_msg_create: created msg=0xC3C8F568 with refCount = 1
*Jul  1 17:04:35.499: //5/000000000000/SIP/Info/verbose/8192/sipSPIPresendProcessing: Presend Processing called for 8 event
*Jul  1 17:04:35.499: //-1/xxxxxxxxxxxx/SIP/Info/verbose/8192/sipSPIRetrieveOutgoingPassThruData: Retrieving Data from RCB
*Jul  1 17:04:35.499: //-1/xxxxxxxxxxxx/SIP/Info/verbose/8192/sipSPIRetrieveOutgoingPassThruData: Retrieving Data from RCB
*Jul  1 17:04:35.499: //-1/xxxxxxxxxxxx/SIP/Info/verbose/8192/sipSPISetDateHeader: Clock Time Zone is UTC, same as GMT: Using GMT
*Jul  1 17:04:35.503: //5/000000000000/SIP/Info/info/2048/sipSPIGetExtensionCfg: SIP extension config:1, check sys cfg:1
*Jul  1 17:04:35.503: //5/000000000000/SIP/Info/info/4096/sipSPISendRegister: Associated container=0x43DA3A0C to Register
*Jul  1 17:04:35.503: //-1/xxxxxxxxxxxx/SIP/Info/verbose/8192/sipSPIAppHandleContainerBody: sipSPIAppHandleContainerBody len 0
*Jul  1 17:04:35.503: //5/000000000000/SIP/Transport/sipSPISendRegister: Sending REGISTER to the transport layer
*Jul  1 17:04:35.503: //5/000000000000/SIP/Transport/sipSPIGetSwitchTransportFlag: Return the Global configuration, Switch Transport is FALSE
*Jul  1 17:04:35.503: //5/000000000000/SIP/Transport/sipSPITransportSendMessage: msg=0xC3C8F568, addr=10.237.250.225, port=5060, sentBy_port=0, local_addr=10.17.127.113, is_req=1, transport=1, switch=0, callBack=0x359A3A28
*Jul  1 17:04:35.503: //5/000000000000/SIP/Info/info/2048/sipSPIGetExtensionCfg: SIP extension config:1, check sys cfg:1
*Jul  1 17:04:35.503: //5/000000000000/SIP/Info/info/2048/sipSPIGetExtensionCfg: SIP extension config:1, check sys cfg:1
*Jul  1 17:04:35.503: //5/000000000000/SIP/Transport/sipSPITransportSendMessage: Proceedable for sending msg immediately
*Jul  1 17:04:35.503: //-1/xxxxxxxxxxxx/SIP/Transport/sipTransportLogicSendMsg: connection-reuse configured, listen conn-id : 2
*Jul  1 17:04:35.503: //-1/xxxxxxxxxxxx/SIP/Transport/sipTransportPostSendMessage: Posting send for msg=0xC3C8F568, addr=10.237.250.225, port=5060, local_addr=10.17.127.113, connId=2 vrfid=0 for UDP
*Jul  1 17:04:35.503: //5/000000000000/SIP/State/sipSPIChangeState: 0x435E4E08 : State change from (STATE_IDLE, SUBSTATE_NONE)  to (SIP_STATE_OUTGOING_REGISTER, SUBSTATE_NONE)
*Jul  1 17:04:35.503: //5/000000000000/SIP/State/sipSPIChangeState: 0x435E4E08 : State change from (SIP_STATE_OUTGOING_REGISTER, SUBSTATE_NONE)  to (SIP_STATE_OUTGOING_REGISTER, SUBSTATE_NONE)
*Jul  1 17:04:35.503: //5/000000000000/SIP/Msg/ccsipDisplayMsg:
Sent:
REGISTER sip:bangalore.relianceims.in:5060 SIP/2.0
Via: SIP/2.0/UDP 10.17.127.113:5060;branch=z9hG4bK619D1
From: <sip:+914038123789@bangalore.relianceims.in>;tag=90A04-74A
To: <sip:+914038123789@bangalore.relianceims.in>
Date: Sat, 01 Jul 2017 17:04:35 GMT
Call-ID: E9DBA670-5DB511E7-8003D924-8C24073B
User-Agent: Cisco-SIPGateway/IOS-15.6.3.M2
Max-Forwards: 70
Timestamp: 1498928675
CSeq: 4 REGISTER
Contact: <sip:+914038123789@10.17.127.113:5060>
Expires:  1800
Supported: path
Content-Length: 0


*Jul  1 17:04:35.503: //-1/xxxxxxxxxxxx/SIP/Info/info/1024/httpish_msg_free: Freed msg=0xC3C8F568
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/info/1024/httpish_msg_create: created msg=0xC3C8F568 with refCount = 1
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/info/1024/httpish_msg_create: created msg=0x221F0A7C with refCount = 1
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/verbose/4096/HandleUdpIPv4SocketReads: Msg enqueued for SPI with IP addr: [10.237.250.225]:5060, local_address:[10.17.127.113]
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/info/1024/httpish_msg_free: Freed msg=0xC3C8F568
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/info/4096/ccsip_process_sipspi_queue_event: ccsip_spi_get_msg_type returned: 2 for event 1
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Transport/sipTransportProcessNWNewConnMsg: context=0x0
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/verbose/4096/ccsip_new_msg_preprocessor: Checking Invite Dialog
*Jul  1 17:04:35.555: //5/000000000000/SIP/Info/info/1024/sipSPIMatchRespToReqTran: removing unneeded z9hG4bK619D1 from via branch list
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/info/1024/httpish_msg_lock: Increment msg (0x221F0A7C) counter, current msg->refCount = 2
*Jul  1 17:04:35.555: //5/000000000000/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.17.127.113:5060;branch=z9hG4bK619D1
To: <sip:+914038123789@bangalore.relianceims.in>;tag=ztesipKGIRAEo_*1-1-16648*hacg.1
From: <sip:+914038123789@bangalore.relianceims.in>;tag=90A04-74A
Call-ID: E9DBA670-5DB511E7-8003D924-8C24073B
CSeq: 4 REGISTER
X-ZTE-Cause: "CSCF-1.1.BC00400B-BC004295-BC0040E4-BC00400B.scscf1.bangalore.relianceims.in"
Content-Length: 0


*Jul  1 17:04:35.555: //5/000000000000/SIP/Info/verbose/1024/sipSPICheckResponseExt: non-INVITE response with no RSEQ - do not disable IS_REL1XX
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/info/262144/sipSPIDecrementOverloadCount: Count:Local 0 Global 0
*Jul  1 17:04:35.555: //5/000000000000/SIP/Error/ccsip_api_register_result_ind:
 Message Code Class 4xx Method Code 100 received for REGISTER
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/notify/262144/ccsip_register_reset_dns_cache: CCSIP_REGISTER:: registrar 0 DNS resolved addr reset
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/info/1024/httpish_msg_free: Decrement msg (0x221F0A7C) counter, current msg->refCount = 1
*Jul  1 17:04:35.555: //5/000000000000/SIP/Info/notify/262144/sipSPIRegPthruProcessResponse: Processing response w/ resp code == 403
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/verbose/262144/sipSPIGetRPCBFromRCB: Retreiving RCB [0xC375E66C] from RPCB [0x0]
*Jul  1 17:04:35.555: //5/000000000000/SIP/Info/critical/262144/sipSPIRegPthruProcessResponse: Error NO RPCB

*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/info/2048/ccsipRegisterStartRCBTimer: Starting timer for pattern +914038123789 for 120 seconds
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/verbose/4096/sipSPIDeleteContextFromTable: Context for key=[6] removed.
*Jul  1 17:04:35.555: //5/000000000000/SIP/Info/verbose/4096/sipSPIUdeleteCcbFromTable: Deleting from table. ccb=0x435E4E08 key=E9DBA670-5DB511E7-8003D924-8C24073B
*Jul  1 17:04:35.555: //5/000000000000/SIP/Info/verbose/4096/sipSPIFlushEventBufferQueue: There are 0 events on the internal queue that are going to be free'd
*Jul  1 17:04:35.555: //5/000000000000/SIP/Error/sipSPIFlushDeferredQueue:
 Invalid deferredQueue
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Transport/sipConnectionManagerUnregisterCtxtInConnection: gConnTab=0x422E966C, addr=10.237.250.225, port=5060, local_addr=10.17.127.113, unregistering context=0x435E4E08
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/critical/512/sipConnectionManagerUnregisterCtxtInConnection: Could not find conn holder for addr=10.237.250.225
*Jul  1 17:04:35.555: //5/000000000000/SIP/Transport/sipSPITransportContextCleanup: Could not purge context gcb=0x435E4E08 from the connection; gcb might be locked
*Jul  1 17:04:35.555: //5/000000000000/SIP/Info/verbose/1/sipSPI_ipip_free_codec_profile: Codec Profiles Freed
*Jul  1 17:04:35.555: //5/000000000000/SIP/Info/info/8192/sipSPIStopOverlapInfoTimer: Stopping Overlap Info Timer
*Jul  1 17:04:35.555: //5/000000000000/SIP/Info/verbose/4096/sipSPIUfreeOneCCB: Freeing ccb 0x435E4E08
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/verbose/4096/sipSPIGetContextFromTable: NO context for key[6]
*Jul  1 17:04:35.555: //-1/xxxxxxxxxxxx/SIP/Info/info/1024/httpish_msg_free: Freed msg=0x221F0A7C

I think you might need to contact the service provider to ask them why they're rejecting you, maybe they have more detailed logs on their side.

Basically, you're sending your REGISTER correctly, and you get 401 Unauthorized with their nonce, so in your second REGISTER message you reply on the nonce they sent. This is the authentication is SIP registration.

So maybe the username / password aren't correct, either on your side or their. Or maybe something else wrong in their configuration.

BTW, can you post again the updated configuration of your GW?

i have just modified the credential usrename command, here is the file

and now the output is this:

AUROPRO-RTR# sh sip-ua register status
Line                             peer       expires(sec) reg survival P-Associ-URI
================================ ========== ============ === ======== ============
+914038123789                    -1         1336         yes normal  914038123789
                                                                                              +91403812378

Oh, that's just great! So there was some issue with the password configured I guess.

Try to make calls on this SIP trunk. If you'll encounter another 403 Forbidden SIP message after the INVITE, try adding this command under the sip-ua section:

connection-reuse

There are providers that after they authenticate you, they store on their SBC's (for example) the source port you did the REGISTER with. If you do not put this command, it'll try to open a new connection towards the ITSP with a different source port, so when the SIP request will arrive to the ITSP, they won't be able to authenticate the request because they know the an SIP agent with your IP address came from source port 5060, and suddenly they see another source port, so they reject you for that.

So just keep it in mind.

with the same credentials i can able to connect through X-lite softphone but not from CME

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: