cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1233
Views
0
Helpful
5
Replies

C2901 - CME - BACD

jespercentex
Level 1
Level 1

Having issues with the BACD script, albeit a wierd error.

When I call "751" from a local softphone on the CME, the menu/script works without issues.

However when I call from an external phone, I dont hear the menu, and the call disconnects after 15 seconds.

Relevant config:

application

service menu-Queue flash:bacdprompts/app-b-acd-3.0.0.2.tcl

  param aa-hunt1 753

  param aa-hunt2 754

  param number-of-hunt-grps 4

  param aa-hunt3 755

  param aa-hunt4 756

!

service night-Queue flash:bacdprompts/app-b-acd-3.0.0.2.tcl

  param aa-hunt1 750

!

service menu-dan flash:bacdprompts/app-b-acd-aa-3.0.0.2.tcl

  paramspace english language en

  param menu-timeout 0

  paramspace english index 1

  paramspace english location flash:/bacdprompts/

  param handoff-string menu-dan

  param voice-mail 761

  param welcome-prompt _bacd_welcome.au

  param aa-pilot 751

  param service-name menu-Queue

  param number-of-hunt-grps 4

!

service menu-night flash:bacdprompts/app-b-acd-aa-3.0.0.2.tcl

  paramspace english index 1

  paramspace english language en

  param voice-mail 762

  param handoff-string menu-night

  param aa-pilot 752

  param welcome-prompt _bacd_welcome.au

  param service-name night-Queue

  paramspace english location flash:/bacdnight/

  param number-of-hunt-grps 1

dial-peer voice 501 voip

description menu_dan

service menu-dan

destination-pattern 751

session target ipv4:192.168.13.10

incoming called-number 751

dtmf-relay h245-alphanumeric

codec g711ulaw

no vad

!

dial-peer voice 502 voip

description menu-night

service menu-night

destination-pattern 752

session target ipv4:192.168.13.10

incoming called-number 752

dtmf-relay h245-alphanumeric

codec g711ulaw

no vad

telephony-service

moh "flash:/bacdprompts/en_bacd_music_on_hold.au"

ephone-hunt 1 sequential

pilot 753

list 601

timeout 10

no-reg pilot

!

ephone-hunt 2 sequential

pilot 754

list 602

timeout 10

no-reg pilot

!

ephone-hunt 3 sequential

pilot 755

list 602

timeout 10

no-reg pilot

!

ephone-hunt 4 sequential

pilot 756

list 601

timeout 10

no-reg pilot

Debug output:
debug ccsip calls

debug voip application script

c2901#

Jun 20 21:19:36.683: //63//TCL :/tcl_PutsObjCmd: TCL B-ACD:  >>> B-ACD Service Running <<<

Jun 20 21:19:38.639: //106//TCL :/tcl_PutsObjCmd:

proc init_perCallvars

Jun 20 21:19:38.639:

Jun 20 21:19:38.639: //106//TCL :/tcl_PutsObjCmd: preced info : 0:-1:0 ,index : 2 ,return value: 0

Jun 20 21:19:38.639:

Jun 20 21:19:38.639: //106//TCL :/tcl_PutsObjCmd: is mlpp = 0

Jun 20 21:19:38.639:

Jun 20 21:19:38.639: //106//TCL :/tcl_PutsObjCmd:

>>>>>>>>>legstate = lg_001<<<<<<<<<<<

Jun 20 21:19:38.639:

Jun 20 21:19:38.639: //106//TCL :/tcl_PutsObjCmd: TCL AA: ++ Playing Welcome Prompt and options menu ++

Jun 20 21:19:38.671: //104/7A1899AD80A6/SIP/Call/sipSPICallInfo:

The Call Setup Information is:

Call Control Block (CCB) : 0x0x3257CCE0

State of The Call        : STATE_ACTIVE

TCP Sockets Used         : NO

Calling Number           : 12345678

Called Number            : 987654321

Source IP Address (Sig  ): 192.168.13.10

Destn SIP Req Addr:Port  : 12.34.56.78:5060

Destn SIP Resp Addr:Port : 12.34.56.78:5060

Destination Name         : 12.34.56.78

Jun 20 21:19:38.671: //104/7A1899AD80A6/SIP/Call/sipSPIMediaCallInfo:

Number of Media Streams: 1

Media Stream             : 1

Negotiated Codec         : g711ulaw

Negotiated Codec Bytes   : 160

Nego. Codec payload      : 0 (tx), 0 (rx)

Negotiated Dtmf-relay    : 0

Dtmf-relay Payload       : 0 (tx), 0 (rx)

Source IP Address (Media): 192.168.13.10

Source IP Port    (Media): 16442

Destn  IP Address (Media): 33.44.55.66

Destn  IP Port    (Media): 51036

Orig Destn IP Address:Port (Media): [ - ]:0

Jun 20 21:19:53.803: //104/7A1899AD80A6/SIP/Call/sipSPICallInfo:

The Call Setup Information is:

Call Control Block (CCB) : 0x0x3257CCE0

State of The Call        : STATE_DEAD

TCP Sockets Used         : NO

Calling Number           : 20774548

Called Number            : 840371080

Source IP Address (Sig  ): 192.168.13.10

Destn SIP Req Addr:Port  : 12.34.56.78:5060

Destn SIP Resp Addr:Port : 12.34.56.78:5060

Destination Name         : 12.34.56.78

Jun 20 21:19:53.803: //104/7A1899AD80A6/SIP/Call/sipSPIMediaCallInfo:

Number of Media Streams: 1

Media Stream             : 1

Negotiated Codec         : g711ulaw

Negotiated Codec Bytes   : 160

Nego. Codec payload      : 0 (tx), 0 (rx)

Negotiated Dtmf-relay    : 0

Dtmf-relay Payload       : 0 (tx), 0 (rx)

Source IP Address (Media): 192.168.13.10

Source IP Port    (Media): 16442

Destn  IP Address (Media): 33.44.55.66

Destn  IP Port    (Media): 51036

Orig Destn IP Address:Port (Media): [ - ]:0

Jun 20 21:19:53.803: //104/7A1899AD80A6/SIP/Call/sipSPICallInfo:

Disconnect Cause (CC)    : 41

Disconnect Cause (SIP)   : 200

5 Replies 5

Chris Deren
Hall of Fame
Hall of Fame

Add incoming called-number . To one of your VoIP dial peers defined with g711 codec.

Sent from Cisco Technical Support iPhone App

As chris said, you don't have dial-peer for incoming call. Therefore, you are matching default inbound dial-peer which doesn't support TCL.

You need to have inbound dial-peer with service assigned to it.

"If you find this post useful, please rate it"

These are my dial-peers:

Correct me if im wrong, but dialpeer 501 and 502 have the service assigned to them, and also the incomming called number?

ephone-dn  86  dual-line

number 750 no-reg both

call-forward all 751

call-forward night-service 752

night-service bell

voice translation-rule 1000

rule 1 /^/ /0/

!

voice translation-rule 1001

rule 1 /.+/ /750/

voice translation-profile incoming_sip

translate calling 1000

translate called 1001

!

dial-peer voice 1 voip

description *** Incoming call to  - -- Generic -- - SIP Trunk ***

translation-profile incoming incoming_sip

session protocol sipv2

session target sip-server

incoming called-number .

codec g711ulaw

!

dial-peer voice 2 voip

description **Outgoing Call to SIP Trunk**

translation-profile outgoing outgoing_sip

destination-pattern 0T

session protocol sipv2

session target sip-server

voice-class sip dtmf-relay force rtp-nte

dtmf-relay rtp-nte

no vad

codec g711ulaw

!

dial-peer voice 6001 voip

description **Outgoing Call to SIP Trunk**

translation-profile outgoing outgoing_sip

destination-pattern 0[1-9].......

session protocol sipv2

session target sip-server

voice-class sip dtmf-relay force rtp-nte

dtmf-relay rtp-nte

no vad

codec g711ulaw

!

dial-peer voice 6002 voip

description **Outgoing Call to SIP Trunk**

translation-profile outgoing outgoing_sip

destination-pattern 000T

session protocol sipv2

session target sip-server

voice-class sip dtmf-relay force rtp-nte

dtmf-relay rtp-nte

no vad

codec g711ulaw

!

dial-peer voice 7000 voip

destination-pattern 4..

video codec h263

session target ipv4:192.168.1.9

incoming called-number 6..

dtmf-relay h245-alphanumeric

codec g711ulaw

!

dial-peer voice 501 voip

description menu_dan

service menu-dan

destination-pattern 751

session target ipv4:192.168.13.10

incoming called-number 751

dtmf-relay h245-alphanumeric

codec g711ulaw

no vad

!

dial-peer voice 502 voip

description menu-night

service menu-night

destination-pattern 752

session target ipv4:192.168.13.10

incoming called-number 752

dtmf-relay h245-alphanumeric

codec g711ulaw

no vad

Do  debug voip ccapi inout . And confirm what dial-peer the call from outside is matching? If the number called from outside is not 751 and its translated to 751 by your xlation rule then the dial-peer that will be matched first is dial-peer 1. Now the issue with this is that dial-peer 1 is a sip dial-peer and the dial-peer to your BACD is h323 leg. So you need to enable CUBE for that to work.

So I suggest you do debug voip ccapi inout. Check the number you receive when you call 751 from outside and then configure a dial-peer with incoming called number to match that. And on that dial-peer configure g711 codec.

Please rate useful posts

"For the love of God is broader than the measure of man's mind And the heart of the Eternal is most wonderfully kind"

Please rate all useful posts

Hi,

Just one thing I would like to clarify which I can see it missed.

TCL applications should be applied on incoming dial-peers or ephones. It won't triggered if applied on outbound dial-peers or ephones.

when you are doing call forwarding to 751, TCL isn't triggered since the matched dial-peer is for 751 is outbound.

However, if you try to call 751 from your h323 trunk directly, you will see it working fine.

You need to work it out based on this concept. To apply TCL on dial-peer use "service " command while to apply it on ephone, use "application " command.

"If you find this post useful, please rate it"

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: