Re: blocking international calls on CME using SIP trunk

From: Asim Zafar <asim.mz_at_gmail.com>
Date: Fri, 6 Jul 2012 03:29:44 +0300

Here is all the configurations:

voice service voip
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 no supplementary-service sip moved-temporarily
 no supplementary-service sip refer
 redirect ip2ip
 fax protocol pass-through g711ulaw
 modem passthrough nse codec g711ulaw
 sip
  bind control source-interface GigabitEthernet0/0
  bind media source-interface GigabitEthernet0/0
  registrar server
  transport switch udp tcp
!!
voice register global
 mode cme
 source-address 10.0.10.10 port 5060
 max-dn 144
 max-pool 42
 create profile sync 0035347837585754
!
voice register dn 1
 session-server 1
 number 1234
 name cisco
 label 1234
!
voice register pool 1
 id mac 0000.0000.0000
 number 1 dn 1
 username cisco password cisco
 codec g711alaw
!
!
!
voice translation-rule 1
 rule 1 /^283\(....\)/ /\1/
!
voice translation-rule 2
 rule 1 /^4/ /2834/
!
!
voice translation-profile inbound-tr
 translate called 1
!
voice translation-profile outbound-tr
 translate calling 2
!
!
crypto pki token default removal timeout 0

dial-peer cor custom
 name int-call
 name mob-call
 name 00
!
!
dial-peer cor list user
 member int-call
 member mob-call
 member 00
!
!
dial-peer voice 100 voip
 description ** Outgoing Calls over SIP Trunk >> **
 translation-profile outgoing outbound-tr
 destination-pattern [2-7]......
 session protocol sipv2
 session target ipv4:10.200.7.157
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 codec g711alaw
 no vad
!
!dial-peer voice 49 voip
 translation-profile incoming inbound-tr
 incoming called-number 283....
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 codec g711alaw
 no vad
!
dial-peer voice 101 voip
 description ** Outgoing Calls over SIP Trunk >> **
 translation-profile outgoing outbound-tr
 destination-pattern 05........
 session protocol sipv2
 session target ipv4:10.200.7.157
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 codec g711alaw
 no vad
dial-peer voice 102 voip
 description ** Outgoing Calls over SIP Trunk >> **
 translation-profile outgoing outbound-tr
 destination-pattern [8].........
 session protocol sipv2
 session target ipv4:10.200.7.157
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 codec g711alaw
 no vad
!
dial-peer voice 103 voip
 description ** Outgoing Calls over SIP Trunk >> **
 translation-profile outgoing outbound-tr
 destination-pattern 92.......
 session protocol sipv2
 session target ipv4:10.200.7.157
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 codec g711alaw
 no vad
!
!
sip-ua
!
!
!
telephony-service
 no auto-reg-ephone
 max-ephones 250
 max-dn 250
 ip source-address 10.0.10.10 port 2000
 time-zone 31
 date-format dd-mm-yy
 max-conferences 12 gain -6
 web admin system name administrator secret 5 $1$MvXM$utt6HRSE7bXhDVCqu38561
 dn-webedit
 time-webedit
 transfer-system full-consult
 create cnf-files version-stamp 7960 Jul 04 2012 13:00:39
!
!

!
!
ephone-dn 2 octo-line
 number 4960
 description asim
 name asim
 corlist incoming user
 corlist outgoing user
 hold-alert 30 originator

On Fri, Jul 6, 2012 at 3:21 AM, Carlos G Mendioroz <tron_at_huapi.ba.ar> wrote:

> There is only one dial-peer there, so either all can dial it or all can
> not.
> There is only one cor list, so only one kind of users and/or destinations.
>
> I can not find your dial-plan description.
>
> If you want some help, please be nice and do your homework :)
>
> -Carlos
>
> Asim Zafar @ 05/07/2012 21:14 -0300 dixit:
>
> Dear Carlos,
>
>
> Here are the configurations related to COR.
>
>
>
> dial-peer cor custom
> name int-call
> name mob-call
>
> !
> !
> dial-peer cor list user
> member int-call
> member mob-call
>
>
> dial-peer voice 101 voip
> corlist outgoing user
> description ** Outgoing Calls over SIP Trunk >> **
> translation-profile outgoing outbound-tr
> destination-pattern 05........
> session protocol sipv2
> session target ipv4:10.200.7.157
> voice-class sip dtmf-relay force rtp-nte
> dtmf-relay rtp-nte
> codec g711alaw
> no vad
> !
>
> ephone-dn 2 octo-line
> number 4960
> description Asim
> name Asim
> corlist incoming user
> corlist outgoing user
> hold-alert 30 originator
>
>
>
> On Thu, Jul 5, 2012 at 12:59 PM, Carlos G Mendioroz <tron_at_huapi.ba.ar>wrote:
>
>> Then, it seems, you did not do it right :)
>>
>> Would you post your config and dialplan specifics so anyone willing can
>> give you some help ?
>>
>> -Carlos
>>
>> Asim Zafar @ 04/07/2012 21:15 -0300 dixit:
>>
>> Dear Experts,
>>>
>>> Any one can help how can i block international dialing for some
>>> extensions
>>> in Cisco CME ver 8.6, I configured COR but it is not working.
>>>
>>>
>> --
>> Carlos G Mendioroz <tron_at_huapi.ba.ar> LW7 EQI Argentina
>>
>>
>>
>
>
> --
> Thanks & Regards,
>
> Asim Zafar
>
>
> --
> Carlos G Mendioroz <tron_at_huapi.ba.ar> <tron_at_huapi.ba.ar> LW7 EQI Argentina
>
>
>
>

-- 
Thanks & Regards,
Asim Zafar
Blogs and organic groups at http://www.ccie.net
Received on Fri Jul 06 2012 - 03:29:44 ART

This archive was generated by hypermail 2.2.0 : Wed Aug 01 2012 - 15:55:23 ART