cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1889
Views
0
Helpful
4
Replies

Number to Name TCL Script

kiranoddiraju
Level 1
Level 1

Hi guys,

We have two sites with a 2951 GW with ISDN PRI and a 2921 GW (CUBE) with a SIP Trunk. We have a requirement where we have been asked to show a calling name for known numbers like the employees mobile numbers. I used the Number-to-Name TCL script with an excel file that contains the numbers and corresponding names. This is working perfectly on the ISDN gateway but on the CUBE the application seems to fail and calls are not completing successfully. Is this script supported for SIP? 

 

application
  service num2name flash:/number2name.tcl
  param list-file flash:/num2name.csv
!
global
  service alternate default
!
session
  start session num2name
  start service num2name
!
dial-peer voice 4401 voip
  description ++ Incoming Dial-peer ++
  service num2name

 

Thanks,

Kiran

4 Replies 4

alig.norbert
Level 4
Level 4

Hi,

Here a working setup with SIP-TRUNK -> CUBE -> SIP -> CUCM.

!

application
service num2name flash:/number2name-http.tcl
param server http://192.168.xx.13/num2name/nummer3.php

!

dial-peer voice 2003 voip
description **  PSTN SIP-TRUNK(IN) service num2name **
translation-profile incoming TP_IN_XX
translation-profile outgoing TP_OUT_XX
service num2name
destination-pattern .
modem passthrough nse codec g711alaw
session protocol sipv2
session target dns:SIP-TRUNK-DNS
session transport udp
codec g711alaw
dtmf-relay rtp-nte
fax protocol none
no vad

!

dial-peer voice 200 voip
description ** ROUTE 2-9xx FROM CUBE TO CUCM **
destination-pattern [2-9]..
progress_ind setup enable 3
modem passthrough nse codec g711alaw
session protocol sipv2
session target ipv4:192.168.xx.10
dtmf-relay sip-kpml rtp-nte
codec g711alaw
fax rate disable
fax protocol none
no vad

 

For CME setup, you need a "dual dial-peer" to get it works.

But there are some issues with SIP IP-Phones. E.g. SNR, shared line, transfer, pickup is not working properly.

Don't know why, guess number2name change some SIP stuff.

 

SIP-TRUNK -> CME DP3000-> CME DP3001 -> IP-PHONE.

IP CME: 192.168.1.1

!

application
service num2name flash:/number2name-http.tcl
param server http://192.168.xx.15/num2name/nummer3.php
param no-autoconf true

!

dial-peer voice 3000 voip
description ** ALL PSTN IN NUM2NAME TO PHONE**
translation-profile outgoing TP_OUT
destination-pattern 7...
session protocol sipv2
session target ipv4:192.168.1.1
session transport udp
incoming called-number [23]..
voice-class codec 20
voice-class sip asserted-id ppi
no vad

!

dial-peer voice 3001 voip
description  PSTN IN, num2name fist match called-number->DP3000
translation-profile incoming TP_IN_SIP_XX
service num2name
modem passthrough nse codec g711alaw
session protocol sipv2
session target ipv4:192.168.1.1
session transport udp
incoming called-number +1234567
voice-class sip asserted-id ppi
dtmf-relay rtp-nte
codec g711alaw
no vad

 

Hi,

Where can I find  these files? Can you please send?

number2name.tcl

number2name-http.tcl

nummer3.php

 

mathanmogan
Level 1
Level 1

Work Perfect