cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10729
Views
108
Helpful
59
Replies

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

59 Replies 59

Hi,

 

1. When I dial on analog phone #31# 0905 012 256, I don´t dial this number. This can be done at all on the analog phone #31# or only ISDN?


2. After the last configuration changes when I call from 200 to 201 than 201 rings, but I can not hear the phone ringing. When calling from 200 to 0905 012 256, so I hear ringing. I noticed that the SBC sends an INVITE message (From: "+421906200200" <tel:+421906200200>, tag = sbc0507sbcthLNQIIca-IIIIIxcA-approximation only, To: <tel:+421906200201>). How do I fix this?


Best Regards.

 

Hi.

About CLIR, I'm not sure, but you can try to configre a dial-peer like this:

dial-peer voice 21 voip
 tone ringback alert-no-PI
 description "Outgoing - calls out of VPN / to VPN mobile / to ABD number"
 translation-profile outgoing 112
 destination-pattern #31#[0,6,3]T
 session protocol sipv2
 session target ipv4:213.151.230.248
 incoming called-number .
 voice-class codec 1  
 voice-class sip asserted-id pai
 dtmf-relay rtp-nte
 fax protocol pass-through g711alaw

 

Let me know the result.

 

Regards.

Hi,

 

I configured the dial-peer voice 21 voip as you wrote to me, but it did not work. I made the final tests for CISCO2801 + VIC2-2FXS and all are correct except for the following. On Wednesday I starting test card VIC2-2BRI-NT/TE.


1. Call from 0906 200 201 to 0905 0 012 256 (busy line) - no busy tone.
2. Call from 0906 200 201 to 0 00 421 905 012 256 (unreachable) - ringing tone, mobile phone is off.
3. Call from 0906 200 201 to 0 0905 012 256 (CLIR) - could not dial number.
4. Call from 0906 200 200 to 0 0906 200 201 - I did not hear a ring tone.
5. Call from 0906 200 200 to 0 1181 - NOK.
6. Please, can you send me the configuration of the BRI interface (card VIC2-2BRI-NT/TE)?

 

Best Regards.

Hi.
In first and second cases you don't get a busy tone but a ringing tone.
In SIP, the busy state is described from a "486 busy here" message.
In the first case,
1. Call from 0906 200 201 to 0905 0 012 256 (busy line) - no busy tone.*
you get a: "Received: SIP/2.0 180 Ringing".

In the second case,
2. Call from 0906 200 201 to 0 00 421 905 012 256 (unreachable) - ringing tone, mobile phone is off.*
you get a: " Received: SIP/2.0 181 Call Is Being Forwarded" and "Received: SIP/2.0 180 Ringing".

Both messages have SDP and so there is an in band audio information. To get this information enable the early 180 media cut-through on your cisco using this command:

conf t
sip-ua
no  disable-early-media 180

 

ISDN interfaces can be configured in NT mode (provides clock to connected phones or PBXs) or TE mode (want recevice the clock from an ISDN provider).
So, interfaces can be configured in point-to-point mode (tipically a single device is connected with a static TEI 0) or poin-to-multipoint (many ISDN equipment connected to same ISDN bus with dynamic TEI).

This is an ISDN configuration for TE - PTP mode:

interface BRI0/0
 no ip address
 isdn switch-type basic-net3  <= depend of your country
 isdn overlap-receiving T302 4000
 isdn not-end-to-end 64
 isdn protocol-emulate network
 isdn static-tei 0
 isdn layer1-emulate network
 isdn incoming-voice voice
 isdn map address .* plan isdn type national
 isdn send-alerting
 isdn sending-complete
 isdn skipsend-idverify
 line-power

 

 

Regards.

Hi,

 

I configured "no disable-early-media 180" and 1. and 2. are fine. Do not know why I do not hear the ring tone in issue 4? I was unable to operationalize the ISDN phone.

4. Call from 0906 200 200 to 0 0906 200 201 - I did not hear a ring tone.

 

Best Regards.

Hi,

 

I connected into the router card VIC2-2BRI-NT/TE and to the card ISDN phone Ascom Eurit 22.

I have the following problems:
1. I called from mobile phone 0905 012 256 to 0906 200 200 and call on the phone rang, but I didn´t hear a ring tone and I didn´t not hear anything in the headphones.
2. I called from the PSTN number 02 5341 02 82 73 to 0906 200 200, but I didn´t hear a ring tone and I didn´t heared anything in the headphones.
3. I called from ISDN phone 0906 200 200 to the mobile phone 0905 012 256 and I didn´t called.


Best Regards.

Hi. Can you post a new debug using "debug ccsip message" and "debug isdn q931"?

 

Regards.

Hi,

I ended the test with FXS card and now I'm doing tests with BRI card. I have following connection: Cisco 2801 - VIC2-2BRI-NT/TE - ISDN phone Ascom Eurit 22. I configured "debug ccsip message", "debug isdn q921" and "debug isdn q931". I have problem with Layer 2: TEI = 0, Ces = 1, SAPI = 0, State = TEI_ASSIGNED.

I have the following problems:
1. When I called from mobile phone 0905 012 256 to 0906 200 200, call on the ISDN phone rang, but I didn´t hear a ring tone and I didn´t not hear anything in the headphones.
2. When I called from the PSTN number 00421 2 5341 02 82 73 to 0906 200 200, I didn´t hear a ring tone and I didn´t heared anything in the headphones.
3. When I called from ISDN phone 0906 200 200 to the mobile phone 0905 012 256, I didn´t called.

Best Regards.

From the debug you can see that the cisco router receives this ID request:

RX <- IDREQ ri=59733 ai=127

Probabli the isdn negotiation is not correct.

Try to remove "isdn static-tei 0". Reset the interface using clear interface bri number or shut/no shut on the interface.

 

Reards.

Hi,

 

I removed from configuration "isdn static-tei 0" and have it work except:

1. When I set up on ISDN phone "Supress" (CLIR) and call from an ISDN phone 0906 200 200 to mobile number 0 0905 012 256, I see 0906 200 200, what is wrong.
2. I called from 02 5341 82 73 (PSTN) to 0906 200 200 (ISDN phone) and 0906 200 200 was busy, I heared ringing tone instead busy. In the past, we address the removal of "no disable-early-media 180 ".
3. I would like to configured the dial-peer voice 200 pots another number like 0906 200 200, to which the registry. When I change 0906 200 200 to 0906 200 201, so sip-ua not register. Where the problem?

 

Best Regards.

 

Hi.

 

1. In your outgoing SIP INVITE the From header is anonymous but the PAI not:

From: "anonymous" <sip:anonymous@imspp.orange.sk>;tag=19CCC9B0-8D0
P-Asserted-Identity:<sip:+421906200200@imspp.orange.sk>

You must add the Privacy = id header in your SIP INVITE:

conf t

voice service voip

sip

privacy id

 

2. A single ISDN BRI access handles 2 calls. So you must have 2 active calls to get a busy.

 

3. Configure a new dial-peer with "no sip-register" option.

dial-peer voice 201 pots
 description "DNE lab phone ISDN"
 answer-address 0906200201
 destination-pattern +421906200201
 port 0/0/0
 no sip-register
 no register e164

 

 

 

 

Regards.

Hi,

 

1. CLIR: I changed the configuration as you wrote to me, I have added voice service voip - sip-privacy id and since I had all the numbers from ISDN phone confidential. Then I found one configuration, but it did not help either (new: voice class sip-profiles 2, dial-peer voice 21 voip).


2. I have ISDN phone, where I configured 3x numbers: 0906 200 200, 0906 200 201 and 0906 200 202. When I phoned from 0906 200 200 to 0905 012 256 and then I phoned from 02 5341 02 82 73  to 0906 200 200, so I hear a ring tone, which I think is not correct. Then I called from 02 5341 82 73 to 0905 012 256 and I heard a busy tone, which its clear.


3. I changed the configuration of the dial-peer voice 200 pots and it's clear.

 

Best Regards.

 

Hi,

please do the following. Colleague in Orange , which is in charge of SBC told me that I have to change the following. How do I do that ?

 

Best Regards.

Daniele,

 

Can you help me is an issue I am having, I am unable to call into my CME and have the call ring to my IP phones.

Attached are my configs and debug

EMERGENCY NUMBERS

These are your calls:

1) called number 0112 -> response from orange: Reason: Q.850;cause=1;text="Unallocated (unassigned) number",SIP;cause=404

2) called number 00112 -> response from orange: Reason: Q.850;cause=28;text="Invalid number format (address incomplete)",SIP;cause=484

3)  called number 00421112 -> response from orange: Reason: Q.850;cause=1;text="Unallocated (unassigned) number",SIP;cause=404

Do you have try to call the 112 directly. In Italy we have the same emergency number and it must be called using this 3 digits and nothing else.