cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1117
Views
0
Helpful
7
Replies

IVR on SIP trunk to ISP

doanhuuhiep
Level 1
Level 1

Now, I'm running TCL IVR on router through E1 interface. But, I have a plan to change E1 to SIP trunk.

Please show me how to config TCL IVR on SIP trunk.

Thanks.

7 Replies 7

moyo oyegunle
Level 1
Level 1

Not too sure I understood correctly what you want but if it's an incoming dial-peer for a voip trunk to an IVR it something like this:

dial-peer voice 1004 voip
 service ivr
 destination-pattern xxxxxxx(Pilot number for the service)
 session target ipv4:192.168.1.1 (A loopback address on your router)
 incoming called-number XXXXXX(Incoming number from trunk, you can use a translation rule)
 dtmf-relay sip...whichever you use
 no vad
 codec g711ulaw

 

You can review http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucme/bacd/configuration/guide/cme40tcl/40bacd.html for more examples.

 

 

 

I configed as your guide but the call is disconnected as soon as media play.

*Jul 23 07:39:03.890: //1084//TCL :/tcl_LegObjCmd:  leg setupack leg_incoming
*Jul 23 07:39:03.890: //1084//TCL :/tcl_LegSetupAckObjCmd: setupack leg_incoming
*Jul 23 07:39:03.890: //1084//AFW_:/vtd_lg_incoming: argc 2
*Jul 23 07:39:03.890: //1084//AFW_:/vtd_lg_incoming: Legs [1084 ]
*Jul 23 07:39:03.890: //1084//Tcl :/tcl_parseCallID_vartagObj: VARTAG Translation Leg Count=1
*Jul 23 07:39:03.890: //1084//TCL :/tcl_LegObjCmd:  leg proceeding leg_incoming
*Jul 23 07:39:03.890: //1084//TCL :/tcl_LegProceedObjCmd: proceeding leg_incoming
*Jul 23 07:39:03.890: //1084//AFW_:/vtd_lg_incoming: argc 2
*Jul 23 07:39:03.890: //1084//AFW_:/vtd_lg_incoming: Legs [1084 ]
*Jul 23 07:39:03.890: //1084//Tcl :/tcl_parseCallID_vartagObj: VARTAG Translation Leg Count=1
*Jul 23 07:39:03.890: //1084//TCL :/tcl_LegObjCmd:  leg connect leg_incoming
*Jul 23 07:39:03.890: //1084//TCL :/tcl_LegConnectObjCmd: connect leg_incoming
*Jul 23 07:39:03.890: //1084//AFW_:/vtd_lg_incoming: argc 2
*Jul 23 07:39:03.890: //1084//AFW_:/vtd_lg_incoming: Legs [1084 ]
*Jul 23 07:39:03.890: //1084//Tcl :/tcl_parseCallID_vartagObj: VARTAG Translation Leg Count=1
*Jul 23 07:39:03.890: //1084//TCL :/tcl_LegObjCmd:  leg collectdigits leg_incoming params pattern
*Jul 23 07:39:03.891: //1084//AFW_:/vtd_lg_incoming: argc 4
*Jul 23 07:39:03.891: //1084//AFW_:/vtd_lg_incoming: Legs [1084 ]
*Jul 23 07:39:03.891: //1084//Tcl :/tcl_parseCallID_vartagObj: VARTAG Translation Leg Count=1
*Jul 23 07:39:03.891: //1084//PACK:/tcl_MediaObjCmd:  media play leg_incoming flash:track2v.au
*Jul 23 07:39:03.891: //1084//PACK:/tcl_MediaPlayObjCmd:  play leg_incoming flash:track2v.au
*Jul 23 07:39:03.891: //1084//AFW_:/vtd_lg_incoming: argc 3
*Jul 23 07:39:03.891: //1084//AFW_:/vtd_lg_incoming: Legs [1084 ]
*Jul 23 07:39:03.891: //1084//Tcl :/tcl_parseCallID_vartagObj: VARTAG Translation Leg Count=1
*Jul 23 07:39:03.892: //1084//PACK:/Media_Play_Start:  
*Jul 23 07:39:04.273: //1084//TCL :/tcl_InfotagObjCmd:  infotag get evt_status
*Jul 23 07:39:04.273: //1084//TCL :/tcl_InfotagGetObjCmd: infotag get evt_status
*Jul 23 07:39:04.273: //1084//AFW_:/vtr_ev_status: argc 2 argindex 2
*Jul 23 07:39:04.273: //1084//TCL :/tcl_CallObjCmd:  call close
*Jul 23 07:39:04.273: //1084//TCL :/tcl_CallCloseObjCmd:  close mc_load_bg_cb_streaming, 0x7F538F634BF8

Kindly provide your router config please and output for debug ccsip

In addition please share debug voice application

This is config:

service timestamps debug datetime msec
service timestamps log datetime msec
no platform punt-keepalive disable-kernel-core
!

!
boot-start-marker
boot-end-marker
!
!
vrf definition Mgmt-intf
 !
 address-family ipv4
 exit-address-family
 !
 address-family ipv6
 exit-address-family
!
! card type command needed for slot/bay 0/1

!
no aaa new-model

!
!
!
!
!
!
!
!
!


ip name-server 8.8.8.8

!
!
!
!         
!
!
!
!
!
!
subscriber templating
!
multilink bundle-name authenticated
vpdn enable
!
!
!
!
!
!
!
!
!
voice rtp send-recv
!
voice service pots
!
voice service voip
 ip address trusted list
  ipv4 x.x.x.x 255.255.255.255
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 redirect ip2ip
 fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
 h323
 sip
  bind control source-interface GigabitEthernet0/0/0
  bind media source-interface GigabitEthernet0/0/0
  registrar server
!
!
!
!
!
voice register pool-type  8811
 xml-config maxNumCalls 200
 xml-config busyTrigger 200
 num-lines 24
 description Cisco IP Phone 8811
 reference-pooltype 9971
!
voice register global
 mode  cme
 source-address 10.123.40.2 port 5060
 max-dn 400
 max-pool 100
 tftp-path flash:
 create profile sync 000220314038337A
!
voice register dn  1
 number 5778
!
voice register dn  2
 number 6230
!
voice register dn  3
 number 6231
!
voice register dn  4
 number 6232
!
voice register dn  5
 number 6233
!
voice register dn  50
 number 6240
!
voice register dn  51
 number 6241
!
voice register dn  52
 number 6242
!
voice register dn  53
 number 6243
!
voice register dn  54
 number 6244
!
voice register dn  55
 number 6245
!         
voice register dn  56
 number 6246
!
voice register dn  57
 number 6247
!
voice register dn  58
 number 6248
!
voice register dn  59
 number 6249
!
voice register dn  60
 number 6250
!
voice register dn  61
 number 6251
!
voice register dn  62
 number 6252
!
voice register dn  63
 number 6253
!
voice register dn  64
 number 6254
!
voice register dn  65
 number 6255
!
voice register dn  66
 number 6256
!
voice register pool  1
 id mac B07D.47C0.1D89
 type 3905
 number 1 dn 1
 codec g711ulaw
!
voice register pool  2
 id mac F078.16A3.7791
 session-transport tcp
 type 3905
 number 1 dn 2
 dtmf-relay rtp-nte
 codec g711ulaw
!
voice register pool  3
 id mac B07D.47C0.1EAF
 session-transport tcp
 type 3905
 number 1 dn 3
 dtmf-relay rtp-nte
 codec g711ulaw
!
voice register pool  4
 id mac B07D.47C0.17A7
 session-transport tcp
 type 3905
 number 1 dn 4
 dtmf-relay rtp-nte
 codec g711ulaw
!
voice register pool  5
 id mac B07D.47C0.2BAA
 type 3905
 number 1 dn 5
 codec g711ulaw
!
voice register pool  6
 id mac B07D.47C0.289D
 type 3905
 codec g711ulaw
!
voice register pool  7
 id mac B07D.47C0.30E7
 type 3905
 codec g711ulaw
!
voice register pool  50
 id mac B07D.47C1.1A0C
 type 3905
 number 1 dn 50
 codec g711ulaw
!
voice register pool  51
 id mac B07D.47C0.2CE4
 type 3905
 number 1 dn 51
 codec g711ulaw
!
voice register pool  52
 id mac B07D.47C0.2BB2
 type 3905
 number 1 dn 52
 codec g711ulaw
!
voice register pool  53
 id mac B07D.47C1.1C4C
 type 3905
 number 1 dn 53
 codec g711ulaw
!
voice register pool  54
 id mac B07D.47C1.1C02
 type 3905
 number 1 dn 54
 codec g711ulaw
!
voice register pool  55
 id mac B07D.47C1.1C32
 type 3905
 number 1 dn 55
 codec g711ulaw
!
voice register pool  56
 id mac B07D.47C0.2B3E
 type 3905
 number 1 dn 56
 codec g711ulaw
!
voice register pool  57
 id mac B07D.47C0.1742
 type 3905
 number 1 dn 57
 codec g711ulaw
!
voice register pool  58
 id mac B07D.47C0.2B64
 type 3905
 number 1 dn 58
 codec g711ulaw
!
voice register pool  59
 id mac B07D.47C1.1D3F
 type 3905
 number 1 dn 59
 codec g711ulaw
!
voice register pool  60
 id mac B07D.47C0.2872
 type 3905
 number 1 dn 60
 codec g711ulaw
!
voice register pool  61
 id mac B07D.47C1.1A46
 type 3905
 number 1 dn 61
 codec g711ulaw
!
voice register pool  62
 id mac B07D.47C1.1C38
 type 3905
 number 1 dn 62
 codec g711ulaw
!
voice register pool  63
 id mac B07D.47C1.1CB3
 type 3905
 number 1 dn 63
 codec g711ulaw
!
voice register pool  64
 id mac B07D.47C1.1D40
 type 3905
 number 1 dn 64
 codec g711ulaw
!
voice register pool  65
 id mac B07D.47C1.5BA9
 type 8811
 number 1 dn 65
 codec g711ulaw
!
voice register pool  66
 id mac B07D.47C1.5356
 type 8811
 number 1 dn 66
 codec g711ulaw
!
!
voice translation-rule 1
 rule 1 /624./ /xxxxxx/
 rule 2 /623./ /xxxxxx/
 rule 3 /625./ /xxxxxx/
!
voice translation-rule 2
 rule 1 /xxxxxx/ /6230/
 rule 2 /xxxxxx/ /6256/
!
voice translation-rule 3
 rule 1 /^9/ //
!
!
voice translation-profile IN
 translate called 2
!
voice translation-profile OUT
 translate calling 1
 translate called 3
!
!
!
ivr prompt streamed flash
!
application
 service aa flash:welcome.tcl
 !
!
!
voice-card 0/4
 no watchdog
!
license udi pid ISR4331/K9 sn FDO19210K7A
license accept end user agreement
spanning-tree extend system-id
!
!
redundancy
 mode none
!
!         
!
!
!
!
track 1 interface Dialer1 ip routing
!
ip tftp source-interface GigabitEthernet0/0/2
!
!
!
!
!
!
!
crypto isakmp policy 9
 hash md5
 authentication pre-share
 group 2
crypto isakmp key xxxxx address x.x.x.x  
!
crypto ipsec security-association lifetime seconds 86400
!
crypto ipsec transform-set xxxx esp-3des esp-md5-hmac
 mode tunnel
!
crypto ipsec profile P1
 set transform-set xxxxx
!
!
!
!
!
!
!
!
!
interface Tunnel2
 ip address 10.10.10.5 255.255.255.252
 cdp enable
 tunnel source x.x.x.x
 tunnel destination x.x.x.x
 tunnel protection ipsec profile P1
!
interface GigabitEthernet0/0/0
 
 no ip address
 negotiation auto
 pppoe enable group global
 pppoe-client dial-pool-number 1
!
interface GigabitEthernet0/0/1
 no ip address
 shutdown
 negotiation auto
!
interface GigabitEthernet0/0/2
 ip address 10.123.40.2 255.255.255.0
 ip nat inside
 standby 1 ip 10.123.40.254
 standby 1 priority 120
 standby 1 preempt
 negotiation auto
!
interface Service-Engine0/4/0
!
interface GigabitEthernet0
 vrf forwarding Mgmt-intf
 no ip address
 shutdown
 negotiation auto
!
interface Dialer1
 mtu 1492
 ip address negotiated
 ip nat outside
 encapsulation ppp
 ip tcp adjust-mss 1452
 dialer pool 1
 dialer-group 1
 ppp authentication
 ppp chap
 ppp chap
 ppp pap
 no cdp tlv app
!
ip nat inside source list 103 interface Dialer1 overload
ip forward-protocol nd
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 Dialer1 track 1
ip route 0.0.0.0 0.0.0.0 10.123.40.1 15
ip route 10.123.0.0 255.255.0.0 10.123.40.7
ip route 10.225.0.0 255.255.0.0 Tunnel2
!

!
control-plane
!
 !
 !
 !
 !
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
!
!
!
telephony-service
 max-ephones 42
 max-dn 144
 ip source-address 10.123.40.2 port 2000
 max-conferences 8 gain -6
 transfer-system full-consult
 create cnf-files version-stamp 7960 Jul 20 2015 10:00:29
!
!
dial-peer voice 200 voip
 description Outgoing
 translation-profile incoming IN
 translation-profile outgoing OUT
 destination-pattern .T
 session protocol sipv2
 session target ipv4:x.x.x.x
 incoming called-number xxxxxxxx
 codec g711ulaw
!
dial-peer voice 300 voip
 description Incoming
 service aa
 session protocol sipv2
 session target ipv4:x.x.x.x
 incoming called-number xxxxxxxx
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!
!
sip-ua
!
!
line con 0
 logging synchronous
 login
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
 password
 login
 transport input telnet
line vty 5 15
 password
 login
 transport input telnet
!
!
end

 

HI,

Did you manage to fix it. I am using  its-CISCO.2.0.2.0.tcl and as per cisco TAC this is not supported by SIP.

 

Nothing much will change. You need to configure SIP incoming dialpeer and assign the TCL app.

 

The changes will be more on the call routing side (IP-IP communication, translation, etc)