« Back to TCL-API

Trying to pass Facility CallingName into IE cisco-username?

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello,
 
I am trying to edit an existing .tcl script that is used for Fax detection on inbound calls. The problem is that when calls are recieved the script leaves behind the callingname information in the facility message. When the call is received on the callmanager side you dont have the caller name in the callerid information. What would I need to do to pass this along. Here is an example of the debug...
 
INBOUND FACILITY MESSAGE:
Oct 14 21:59:58.274: ISDN Se0/0/0:23 Q931: RX <- FACILITY pd = 8  callref = 0x03BB
        Facility i = 0x9F8B0100A117020101020100800F5452494F4E20574F524C44204E4554
                Protocol Profile =  Networking Extensions
                0xA117020101020100800F5452494F4E20574F524C44204E4554
                Component = Invoke component
                        Invoke Id = 1
                        Operation = CallingName
                                Name Presentation Allowed Extended
                                Name = JOE BLOW
Oct 14 21:59:58.274: //7473/BF0769B5821E/CCAPI/cc_api_call_facility:
   Interface=0xC0A9A54C, Call Id=7473
Oct 14 22:00:06.466: //7473/BF0769B5821E/CCAPI/ccDisassociateStream:
   Record Context=0x0, Stream Call Id=7474, Call Id=7473
Oct 14 22:00:06.466: //7473/BF0769B5821E/CCAPI/ccDisassociateStream:
   Call Entry(Stream Status=1, Digit Enable=TRUE)
Oct 14 22:00:06.466: //7473//TCL :/tcl_PutsObjCmd: [Call 7473] Prompt finished or CNG timer lapsed
Oct 14 22:00:06.466:
Oct 14 22:00:06.502: //7473//TCL :/tcl_PutsObjCmd: [Call 7473] Proceeding to default
Oct 14 22:00:06.502: //7473//TCL :/tcl_PutsObjCmd: (VOICE) call
Oct 14 22:00:06.502:
Oct 14 22:00:06.502: //7473//TCL :/tcl_PutsObjCmd: [Call 7473] Setting-up a VOICE call
Oct 14 22:00:06.502:
Oct 14 22:00:06.502: //7473//TCL :/tcl_PutsObjCmd: [Call 7473] Stop CNG detection
Oct 14 22:00:06.502:
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/ccCallModify:
   Nominator=0x800000, Params=0x74F203E0, Call Id=7473
Oct 14 22:00:06.502: //7473//TCL :/tcl_PutsObjCmd: [Call 7473] Calling VOICE number: 7939
Oct 14 22:00:06.502:
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/ccCallSetupRequest:
   Destination=, Calling IE Present=TRUE, Mode=0,
   Outgoing Dial-peer=6, Params=0xC3AA1990, Progress Indication=NULL(0)
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/ccCheckClipClir:
   In: Calling Number=5124708852(TON=National, NPI=ISDN, Screening=Network, Presentation=Allowed)
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/ccCheckClipClir:
   Out: Calling Number=XXXXXXXXXX(TON=National, NPI=ISDN, Screening=Network, Presentation=Allowed)
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/ccCallSetupRequest:
   Destination Pattern=7..., Called Number=7939, Digit Strip=FALSE
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/ccCallSetupRequest:
   Calling Number=512XXXXXXXXXX(TON=National, NPI=ISDN, Screening=Network, Presentation=Allowed),
   Called Number=7939(TON=Unknown, NPI=Unknown),
   Redirect Number=, Display Info=
   Account Number=, Final Destination Flag=TRUE,
   Guid=BF0769B5-B843-11DE-821E-002584E9ABC0, Outgoing Dial-peer=6
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/cc_api_display_ie_subfields:
   ccCallSetupRequest:
   cisco-username=
   ----- ccCallInfo IE subfields -----
   cisco-ani=XXXXXXXXXX
   cisco-anitype=2
   cisco-aniplan=1
   cisco-anipi=0
   cisco-anisi=3
   dest=7939
   cisco-desttype=0
   cisco-destplan=0
   cisco-rdie=FFFFFFFF
   cisco-rdn=
   cisco-lastrdn=
   cisco-rdntype=-1
   cisco-rdnplan=-1
   cisco-rdnpi=-1
   cisco-rdnsi=-1
   cisco-redirectreason=-1   fwd_final_type =0
   final_redirectNumber =
   hunt_group_timeout =0
 
I am guessing I need to use a evt_facility_report? Any help would be appreciated.

Are you refering to "Display Info" ?
 
 
   Calling Number=512XXXXXXXXXX(TON=National, NPI=ISDN, Screening=Network, Presentation=Allowed),
   Called Number=7939(TON=Unknown, NPI=Unknown),
   Redirect Number=, Display Info=
   Account Number=, Final Destination Flag=TRUE,
   Guid=BF0769B5-B843-11DE-821E-002584E9ABC0, Outgoing Dial-peer=6
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/cc_api_display_ie_subfields:
   ccCallSetupRequest:
   cisco-username=
   ----- ccCallInfo IE subfields -----

I am not totally sure.. Basically when the script runs it never passes the caller name to the callmanagers. So when a user gets a call on their phone it never has the Callers Name. From what I've been told I need to take the Facility CallingName field
 
        Facility i = 0x9F8B0100A117020101020100800F5452494F4E20574F524C44204E4554
                Protocol Profile =  Networking Extensions
                0xA117020101020100800F5452494F4E20574F524C44204E4554
                Component = Invoke component
                        Invoke Id = 1
                        Operation = CallingName
                                Name Presentation Allowed Extended
    ---------->             Name = JOE BLOW
 
 
and pass it into the cisco-username field in the IE? Maybe this is incorret. Do mean to say that Display Info is needing to be populated?
 
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/ccCallSetupRequest:
   Calling Number=XXXXXXXXXX(TON=National, NPI=ISDN, Screening=Network, Presentation=Allowed),
   Called Number=7939(TON=Unknown, NPI=Unknown),
   Redirect Number=, Display Info=
   Account Number=, Final Destination Flag=TRUE,
   Guid=BF0769B5-B843-11DE-821E-002584E9ABC0, Outgoing Dial-peer=6
Oct 14 22:00:06.502: //7473/BF0769B5821E/CCAPI/cc_api_display_ie_subfields:
   ccCallSetupRequest:
 ------------>>>  cisco-username=
   ----- ccCallInfo IE subfields -----
 
In either case I'm not sure how to accomplish this within the TCL script. Basically after it checks for fax tone it builds a leg to complete the voice call if its not a fax.
 

I've been looking at this further and basically you are correct. I am trying to populate displayInfo with the caller name. The caller name is passed along in the facility message from the ISDN.
 

Hi Kevin,
 
In the following FAC Message, you have to fetch the calling name.
 
Oct 15 16:32:27.231: gtd msg = "FAC,
PRN,isdn*,,NI***,
GEN,y,y,0,JOE BLOW ----------------Caller NAME
 
Here the GTD message is FAC : gtd_fac
The NSS parameter is :gen
And the sub parameter is :name
 
So you can get the calling name in this  order,
 
If you still have any issues you can open a case for this
If you do not have developer support contract here is the link for the information.
 
http://developer.cisco.com/web/devservices

Thanks
Vijay

Dear Vijay;
 
Currently I am running Cisco Call Manager ver. 6.1.4 integrated with Cisco Voice Gateways 2811 using H.323 Protocol The Call Manager Connect to old Nortel PBX through E1 back to back the problem that I am facing is whenever anybody is calling from Nortel PBX extensions the name is not display on Cisco IP Phone 7975 so what I need is to modify the below script that can be applied on E1 interface on Cisco Voice Gateways & it will convert numbers two names, The script should look up to text file Or CSV file instead of webserver Server to get the correct result & if the number is not exist it should display "Unknown" .
 
Kindly check the the attached debug output. "dubeg ISDN q931"  & TCL Script.

Note: The Calling Party number is 3614 & Called Party number is 3003.
EXT:3003 Display name is Mohanad Aljabi."This EXT on Cisco Call Manager".
EXT:3614 Display name is MOTLAQ MOHD "This EXT on Nortel".
The Integration between Nortel & CUCM using E1 back to back without Q.SIG protocol since Nortel PBX is not support such Function & require Extra Hardware.
 
Please Advcice !!
 
Thanks alot for your efforts in advance.
 
 
Best Regards,
Mohanad R.Aljabi
Attachments:

Hi Mohanad,
 
I understand that you are trying to  display the name based on ANI number on the IP phone.Is that correct?
 
I went through the script,AFAIK script looks fine.you can also have look at sample programs.You can add below configuration
 
ASG_3845(config)#voice service
voip
ASG_3845(conf-voi-serv)#h323
ASG_3845(conf-serv-h323)#h225 display-ie
ccm-compatible
 
if you have any issue,please enable the following debugs and send me the traces.
 
debug voip application tcl
debug voip application script
debug voip application state
debug ISDN q931
debug ISDN error
debug ISDN event
debug GTD events
 
Thanks
Vijay