cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
824
Views
0
Helpful
2
Replies
Highlighted

Block incoming calls based on calling number.

Hello All,

I have Cisco UC500 as voice gateway for Cisco CUCM. I need to block a few incoming numbers based on calling number. I have FXO voice ports with connection plar to 588 and VOIP dial peer with destination patter 5.. (to CUCM extensions). When I apply rule for the dial peer translation rule does not work but calling number comes with correct format.

My config is:

voice translation-rule 10

rule 1 reject /6XXXXXX3/

...

rule 15 reject /9XXXXXX9/

!

!

voice translation-profile CALLBLOCK

translate calling 10

voice-port 0/1/0

disc_pi_off

cptone SG

timeouts interdigit 3

connection plar opx 588

caller-id enable

dial-peer voice 555 voip

call-block translation-profile incoming CALLBLOCK

call-block disconnect-cause incoming call-reject

preference 1

destination-pattern 5..

voice-class codec 1

session target ipv4:192.168.52.250

dtmf-relay h245-alphanumeric

no vad

On debug I see that this Dial Peer is in use and incoming number in correct format but translation rule just does not work.

Jan 28 01:06:58.359: //0/xxxxxxxxxxxx/CCAPI/cc_get_call_entry:

   Call Entry Is Not Found

Jan 28 01:06:58.359: //0/xxxxxxxxxxxx/CCAPI/cc_get_call_entry:

   Call Entry Is Not Found

Jan 28 01:07:00.312: //-1/533D512BB256/CCAPI/cc_api_display_ie_subfields:

   cc_api_call_setup_ind_common:

   cisco-username=

   ----- ccCallInfo IE subfields -----

   cisco-ani=9XXXXXX9

   cisco-anitype=0

   cisco-aniplan=0

   cisco-anipi=0

   cisco-anisi=0

   dest=588

   cisco-desttype=0

   cisco-destplan=0

   cisco-rdie=FFFFFFFF

   cisco-rdn=

   cisco-lastrdn=

   cisco-rdntype=0

   cisco-rdnplan=0

   cisco-rdnpi=0

   cisco-rdnsi=0

   cisco-redirectreason=0   fwd_final_type =0

   final_redirectNumber =

   hunt_group_timeout =0

Jan 28 01:07:00.312: //-1/533D512BB256/CCAPI/cc_api_call_setup_ind_common:

   Interface=0x86F16B50, Call Info(

   Calling Number=9XXXXXX9,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=588(TON=Unknown, NPI=Unknown),

   Calling Translated=FALSE, Subscriber Type Str=RegularLine, FinalDestinationFlag=TRUE,

   Incoming Dial-peer=10, Progress Indication=ORIGINATING SIDE IS NON ISDN(3), Calling IE Present=TRUE,

   Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=-1

Jan 28 01:07:00.312: //-1/533D512BB256/CCAPI/cc_api_call_setup_ind_common:

   Interface Type=2, Protocol=0

Jan 28 01:07:00.312: //-1/533D512BB256/CCAPI/ccCheckClipClir:

   In: Calling Number=9XXXXXX9(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)

Jan 28 01:07:00.312: //-1/533D512BB256/CCAPI/ccCheckClipClir:

   Calling Party Number Is User Provided

Jan 28 01:07:00.312: //-1/533D512BB256/CCAPI/ccCheckClipClir:

   Out: Calling Number=9XXXXXX9(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)

Jan 28 01:07:00.312: //170918/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry:

   Total Call Count=0, Call Entry(Call Count On=FALSE, Incoming Call=TRUE)

Jan 28 01:07:00.312: //170918/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry:

   Total Call Count=1

Jan 28 01:07:00.312: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Jan 28 01:07:00.312: :cc_get_feature_vsa malloc success

Jan 28 01:07:00.312: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Jan 28 01:07:00.312:  cc_get_feature_vsa count is 1

Jan 28 01:07:00.312: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Jan 28 01:07:00.312: :FEATURE_VSA attributes are: feature_name:0,feature_time:2290371160,feature_id:27144

Jan 28 01:07:00.312: //-1/xxxxxxxxxxxx/CCAPI/cc_init_call_entry:

Jan 28 01:07:00.312:  call_init_entry calle is 886F83E8,callid is 170918

Jan 28 01:07:00.312: //170918/533D512BB256/CCAPI/cc_insert_guid_pod_entry:

   Incoming=TRUE, Call Id=170918

Jan 28 01:07:00.312: //170918/533D512BB256/CCAPI/cc_api_call_setup_ind_common:

   Set Up Event Sent;

   Call Info(Calling Number=9XXXXXX9(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=588(TON=Unknown, NPI=Unknown))

Jan 28 01:07:00.316: //170918/533D512BB256/CCAPI/cc_process_call_setup_ind:

   Event=0x86EB8C28

Jan 28 01:07:00.316: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup:

   Matching Parameters; Called Number=588, Call Transfer Consult Id=

Jan 28 01:07:00.316: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search:

   Searching Node;

   Called Number=588, Call Transfer Consult Id=

Jan 28 01:07:00.316: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_compare:

Jan 28 01:07:00.316: Comparing SSOpCode; 0x50 and 0x0

Jan 28 01:07:00.316: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_compare:

Jan 28 01:07:00.316: Comparing SSOpCode; 0x12 and 0x0

Jan 28 01:07:00.316: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search:

   Try with the demoted called number 588

Jan 28 01:07:00.316: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_compare:

Jan 28 01:07:00.316: Comparing SSOpCode; 0x50 and 0x0

Jan 28 01:07:00.316: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_compare:

Jan 28 01:07:00.316: Comparing SSOpCode; 0x12 and 0x0

Jan 28 01:07:00.316: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_registration_lookup:

   No Matching Node

Jan 28 01:07:00.316: //-1/xxxxxxxxxxxx/CCAPI/ccAppInitializePID:

   Application Process Name=_ManagedAppProcess_Default, Application Process Id=93, Application Handle=0x88704BCC

Jan 28 01:07:00.316: //170918/533D512BB256/CCAPI/ccCallSetContext:

   Context=0x8871D458

Jan 28 01:07:00.320: //170918/533D512BB256/CCAPI/cc_process_call_setup_ind:

   >>>>CCAPI handed cid 170918 with tag 10 to app "_ManagedAppProcess_Default"

Jan 28 01:07:00.320: //-1/xxxxxxxxxxxx/CCAPI/ccAppInitialize:

   Application Name=_ManagedAppProcess_Default, Application Process Id=93, Application Handle=0x888B1030

Jan 28 01:07:00.320: //170918/533D512BB256/CCAPI/ccCallProceeding:

   Progress Indication=NULL(0)

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/ccCallSetupRequest:

   Destination=, Calling IE Present=TRUE, Mode=0,

   Outgoing Dial-peer=555, Params=0x887259E0, Progress Indication=ORIGINATING SIDE IS NON ISDN(3)

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/ccCheckClipClir:

   In: Calling Number=9XXXXXX9(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/ccCheckClipClir:

   Calling Party Number Is User Provided

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/ccCheckClipClir:

   Out: Calling Number=9XXXXXX9(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/ccCallSetupRequest:

   Destination Pattern=5.., Called Number=588, Digit Strip=FALSE

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/ccCallSetupRequest:

   Calling Number=9XXXXXX9(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=588(TON=Unknown, NPI=Unknown),

   Redirect Number=, Display Info=

   Account Number=, Final Destination Flag=TRUE,

   Guid=533D512B-86EF-11E3-B256-AB2264B56785, Outgoing Dial-peer=555

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/cc_api_display_ie_subfields:

   ccCallSetupRequest:

   cisco-username=

   ----- ccCallInfo IE subfields -----

   cisco-ani=9XXXXXX9

   cisco-anitype=0

   cisco-aniplan=0

   cisco-anipi=0

   cisco-anisi=0

   dest=588

   cisco-desttype=0

   cisco-destplan=0

   cisco-rdie=FFFFFFFF

   cisco-rdn=

   cisco-lastrdn=

   cisco-rdntype=0

   cisco-rdnplan=0

   cisco-rdnpi=0

   cisco-rdnsi=0

   cisco-redirectreason=0   fwd_final_type =0

   final_redirectNumber =

   hunt_group_timeout =0

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/ccIFCallSetupRequestPrivate:

   Interface=0x86194F68, Interface Type=1, Destination=, Mode=0x0,

   Call Params(Calling Number=9XXXXXX9,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),

   Called Number=588(TON=Unknown, NPI=Unknown), Calling Translated=FALSE,

   Subscriber Type Str=RegularLine, FinalDestinationFlag=TRUE, Outgoing Dial-peer=555, Call Count On=FALSE,

   Source Trkgrp Route Label=, Target Trkgrp Route Label=, tg_label_flag=0, Application Call Id=)

Jan 28 01:07:00.324: //170919/xxxxxxxxxxxx/CCAPI/cc_insert_call_entry:

   Total Call Count=1, Call Entry(Call Count On=FALSE, Incoming Call=FALSE)

Jan 28 01:07:00.324: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Jan 28 01:07:00.324: :cc_get_feature_vsa malloc success

Jan 28 01:07:00.324: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Jan 28 01:07:00.324:  cc_get_feature_vsa count is 2

Jan 28 01:07:00.324: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Jan 28 01:07:00.324: :FEATURE_VSA attributes are: feature_name:0,feature_time:2290370936,feature_id:27145

Jan 28 01:07:00.324: //-1/xxxxxxxxxxxx/CCAPI/cc_init_call_entry:

Jan 28 01:07:00.324:  call_init_entry calle is 886F48B0,callid is 170919

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/cc_peer_bind:

   Bind=TRUE, Binder Call Id=170918, Bindee Call Id=170919

Jan 28 01:07:00.324: //170919/533D512BB256/CCAPI/cc_insert_guid_pod_entry:

   Incoming=FALSE, Call Id=170919

Jan 28 01:07:00.324: //170919/533D512BB256/CCAPI/ccIFCallSetupRequestPrivate:

   SPI Call Setup Request Is Success; Interface Type=1, FlowMode=1

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/ccCallSetupRequest:exit@2521

Jan 28 01:07:00.324: //170919/533D512BB256/CCAPI/ccCallSetContext:

   Context=0x88725990

Jan 28 01:07:00.324: //170918/533D512BB256/CCAPI/ccSaveDialpeerTag:

   Outgoing Dial-peer=555

Jan 28 01:07:00.324: //-1/xxxxxxxxxxxx/CCAPI/cc_api_supported_data:

   data_mode=0x10082

Jan 28 01:07:00.328: //170919/533D512BB256/CCAPI/cc_incr_if_call_volume:

   Remote IP Address=192.168.52.250, Hwidb=Vlan2

Jan 28 01:07:00.328: //170919/533D512BB256/CCAPI/cc_incr_if_call_volume:

   Total Call Count=1, Voip Call Count=1, MMoip Call Count=0

Jan 28 01:07:00.340: //170919/533D512BB256/CCAPI/cc_api_set_called_ccm_detected:

   CallInfo(called ccm detected=TRUE ccmVersion 3)

Jan 28 01:07:00.340: //170919/533D512BB256/CCAPI/cc_api_call_proceeding:

   Interface=0x86194F68, Progress Indication=NULL(0)

Jan 28 01:07:00.340: //170919/533D512BB256/CCAPI/cc_api_call_proceeding:exit@7010

Jan 28 01:07:00.348: //170919/533D512BB256/CCAPI/cc_api_set_called_ccm_detected:

   CallInfo(called ccm detected=TRUE ccmVersion 3)

Jan 28 01:07:00.348: //170919/533D512BB256/CCAPI/cc_api_set_delay_xport:

   CallInfo(delay xport=TRUE)

Jan 28 01:07:00.348: //170919/533D512BB256/CCAPI/cc_api_call_alert:

   Interface=0x86194F68, Progress Indication=NULL(0), Signal Indication=SIGNAL RINGBACK(1)

Jan 28 01:07:00.348: //170919/533D512BB256/CCAPI/cc_api_call_alert:

   Call Entry(Retry Count=0, Responsed=TRUE)

Jan 28 01:07:00.352: //170918/533D512BB256/CCAPI/ccCallAlert:

   Progress Indication=NULL(0), Signal Indication=SIGNAL RINGBACK(1)

Jan 28 01:07:00.352: //170918/533D512BB256/CCAPI/ccCallAlert:

   Call Entry(Responsed=TRUE, Alert Sent=TRUE)

Jan 28 01:07:00.540: //170919/533D512BB256/CCAPI/cc_api_set_called_ccm_detected:

   CallInfo(called ccm detected=TRUE ccmVersion 3)

Jan 28 01:07:00.540: //170919/533D512BB256/CCAPI/cc_api_call_notify:

   Data Bitmask=0x5, Interface=0x86194F68, Call Id=170919

Jan 28 01:07:00.540: //170919/533D512BB256/CCAPI/cc_api_call_notify:exit@7951

Jan 28 01:07:00.540: //170919/533D512BB256/CCAPI/cc_api_get_ssCTreRoutingNotSupported:

   CallInfo(ssCTreRoutingNotSupported=FALSE)

Jan 28 01:07:00.540: //170919/533D512BB256/CCAPI/cc_api_get_ccm_detected:

   CallInfo(ccm detected=TRUE)

Jan 28 01:07:00.540: //170918/533D512BB256/CCAPI/ccCallNotify:

   Data Bitmask=0x5, Call Id=170918

Jan 28 01:07:10.956: //170918/533D512BB256/CCAPI/cc_api_call_disconnected:

   Cause Value=16, Interface=0x86F16B50, Call Id=170918

Jan 28 01:07:10.956: //170918/533D512BB256/CCAPI/cc_api_call_disconnected:

   Call Entry(Responsed=TRUE, Cause Value=16, Retry Count=0)

Jan 28 01:07:10.956: //170918/533D512BB256/CCAPI/ccGenerateToneInfo:

   Stop Tone On Digit=FALSE, Tone=Null,

   Tone Direction=Network, Params=0x0, Call Id=170918

Jan 28 01:07:10.956: //170919/533D512BB256/CCAPI/ccCallDisconnect:

   Cause Value=16, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=0)

Jan 28 01:07:10.956: //170919/533D512BB256/CCAPI/ccCallDisconnect:

   Start Calling Accounting;

   Call Entry(Incoming=FALSE)

Jan 28 01:07:10.956: //170919/533D512BB256/CCAPI/ccCallDisconnect:

   Cause Value=16, Call Entry(Disconnect Cause=0)

Jan 28 01:07:10.956: //170919/533D512BB256/CCAPI/ccCallDisconnect:

   Cause Value=16, Call Entry(Responsed=TRUE, Cause Value=16)

Jan 28 01:07:10.956: //170919/533D512BB256/CCAPI/cc_api_get_transfer_info:

   Transfer Number Is Null

Jan 28 01:07:10.956: //170918/533D512BB256/CCAPI/ccCallDisconnect:

   Cause Value=16, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=16)

Jan 28 01:07:10.956: //170918/533D512BB256/CCAPI/ccCallDisconnect:

   Start Calling Accounting;

   Call Entry(Incoming=TRUE)

Jan 28 01:07:10.956: //170918/533D512BB256/CCAPI/ccCallDisconnect:

   Cause Value=16, Call Entry(Disconnect Cause=16)

Jan 28 01:07:10.956: //170918/533D512BB256/CCAPI/ccCallDisconnect:

   Call Entry(Disconnect Cause=16)

Jan 28 01:07:10.956: //170918/533D512BB256/CCAPI/ccCallDisconnect:

   Cause Value=16, Call Entry(Responsed=TRUE, Cause Value=16)

Jan 28 01:07:10.956: //170918/533D512BB256/CCAPI/cc_api_get_transfer_info:

   Transfer Number Is Null

Jan 28 01:07:10.956: //-1/xxxxxxxxxxxx/CCAPI/cc_get_call_entry:

   CALL_ERROR_INFORMATIONAL; Call Id Is Invalid=-1

Jan 28 01:07:10.956: //-1/xxxxxxxxxxxx/CCAPI/cc_get_call_entry:

   CALL_ERROR_INFORMATIONAL; Call Id Is Invalid=-1

Jan 28 01:07:10.960: //170918/xxxxxxxxxxxx/CCAPI/cc_api_request_rt_packet_stats_done:

   CALL_ERROR_INFORMATIONAL; tag not properly returned from SPI

Jan 28 01:07:10.960: //-1/xxxxxxxxxxxx/CCAPI/cc_api_icpif:

   ExpectFactor=0xA

Jan 28 01:07:10.960: //170919/533D512BB256/CCAPI/cc_decr_if_call_volume:

   Remote IP Address=192.168.52.250, Hwidb=Vlan2

Jan 28 01:07:10.960: //170919/533D512BB256/CCAPI/cc_decr_if_call_volume:

   Total Call Count=0, Voip Call Count=0, MMoip Call Count=0

Jan 28 01:07:10.960: //170919/533D512BB256/CCAPI/cc_api_call_disconnect_done:

   Disposition=0, Interface=0x86194F68, Tag=0x0, Call Id=170919,

   Call Entry(Disconnect Cause=16, Voice Class Cause Code=0, Retry Count=0)

Jan 28 01:07:10.960: //170919/533D512BB256/CCAPI/cc_api_call_disconnect_done:

   Call Disconnect Event Sent

Jan 28 01:07:10.960: //170919/533D512BB256/CCAPI/cc_delete_guid_pod_entry:

   Incoming=FALSE

Jan 28 01:07:10.960: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Jan 28 01:07:10.960: :cc_free_feature_vsa freeing 88844970

Jan 28 01:07:10.960: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Jan 28 01:07:10.960:  vsacount in free is 1

Jan 28 01:07:10.960: //170919/533D512BB256/CCAPI/cc_delete_call_entry:

   Total Call Count=1, Call Entry(Call Count On=FALSE, Incoming Call=FALSE)

Jan 28 01:07:10.960: //170919/533D512BB256/CCAPI/cc_delete_call_entry:

   Deleting profileTable[0x88624DFC]

Jan 28 01:07:10.964: //170918/533D512BB256/CCAPI/cc_api_call_disconnect_done:

   Disposition=0, Interface=0x86F16B50, Tag=0x0, Call Id=170918,

   Call Entry(Disconnect Cause=16, Voice Class Cause Code=0, Retry Count=0)

Jan 28 01:07:10.964: //170918/533D512BB256/CCAPI/cc_api_call_disconnect_done:

   Call Disconnect Event Sent

Jan 28 01:07:10.964: //170918/533D512BB256/CCAPI/cc_delete_guid_pod_entry:

   Incoming=TRUE

Jan 28 01:07:10.964: //170918/533D512BB256/CCAPI/cc_delete_call_entry:

   ccFreeRawMsgInfo=0x86EBD310

Jan 28 01:07:10.964: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Jan 28 01:07:10.964: :cc_free_feature_vsa freeing 88844A50

Jan 28 01:07:10.964: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Jan 28 01:07:10.964:  vsacount in free is 0

Jan 28 01:07:10.964: //170918/533D512BB256/CCAPI/cc_delete_call_entry:

   Total Call Count=1, Call Entry(Call Count On=FALSE, Incoming Call=TRUE)

Jan 28 01:07:10.964: //170918/533D512BB256/CCAPI/cc_delete_call_entry:

   Total Call Count=0

Jan 28 01:07:10.964: //170918/533D512BB256/CCAPI/cc_delete_call_entry:

   Deleting profileTable[0x8862610C]

Jan 28 01:07:10.968: //0/xxxxxxxxxxxx/CCAPI/cc_get_call_entry:

   Call Entry Is Not Found

Jan 28 01:07:10.968: //0/xxxxxxxxxxxx/CCAPI/cc_api_call_preempt_done:

   CALL_ERROR_INFORMATIONAL; Call Entry Is Not Found

Jan 28 01:07:10.968: //0/xxxxxxxxxxxx/CCAPI/cc_get_call_entry:

   Call Entry Is Not Found

Jan 28 01:07:10.968: //0/xxxxxxxxxxxx/CCAPI/cc_api_call_preempt_done:

   CALL_ERROR_INFORMATIONAL; Call Entry Is Not Found

2 REPLIES 2
Highlighted
Participant

Mr. Andrey,

Here is a link to some information that may help you in achieve what you want in regards to your configuration: 

http://www.cisco.com/en/US/docs/ios/12_2/voice/configuration/guide/vvfpeers.html#wp1282026

The section that will be important to you is the Answer Addres for VOIP.

Hope this helps.

Regards,

Michael D.

Network Engineer | Cisco Technical Support

Highlighted

Hello Michael ,

Thanks for reply. As far as I understood this answer-address is used to match a dial-peer.


My problem is that incoming call matches a particular dial-peer but translation rule that I applied to this dial-peer does not reject a call for some reason.