[quote author=fonesaaa link=topic=5169.msg22874#msg22874 date=1266526196]
[quote author=cavagnaro link=topic=5169.msg22873#msg22873 date=1266516531]
You should check the DNIS or the GSW_PHONE keys in the attached data of the call and use those.
[/quote]
Thanx for the info, I see from posts that the GSW_PHONE keys is a Genesys function.  My thinking is/was that if they are using x number of TFNs then I should be able to get DNIS passed from Genesys in order to ID/label the AVAYA components, VDN's, etc. for each of the TFN's.  Does Genesys work like that?
[/quote]
If your Avaya is integrated with Genesys and you use the Genesys Outbound Contact solution, the T-Server component will send a message on the CTI link which is MakeCall; that message looks like:
[size=8pt]
[font=TimesNewRoman]
Received from 704 (OCServer): message RequestMakePredictiveCall
   AttributeThisDN   '9999'
   AttributeOtherDN   '1234567890'
   AttributeTimeout   120
   AttributeUserData   [202] 00 08 00 00..
      'GSW_PHONE'   '1234567890'
      'GSW_TZ_OFFSET'   '3600'
      'GSW_CALLING_LIST'   'Telemarketing'
      'GSW_CAMPAIGN_NAME'   'CAMPAIGN1'
      'GSW_APPLICATION_ID'   17
      'GSW_RECORD_HANDLE'   '18'
      'GSW_CHAIN_ID'   '1'
      'GSW_CALL_RESULT'   'x'
   AttributeExtensions   [2] 00 00..
   AttributeReferenceID   2330
[/font]
[/size]
and is translated on the ASAI link into:
[size=8pt]
[font=TimesNewRoman]
=== parsed message ===
prot_discr = 8
CRV = 224
MsgType = 100 (REGISTER)
Facility:  serv_discr = 17(q932_suppl)  fac_ie = component_tag = A1(INVOKE)
invoke_id tag: 02, value = 109
operation tag: 02, value = 131(TP_MakeCall)
params = q931_tag = 40
list =
Calling_Party_Number:  type_plan = 0(unknown)  address = 9999
Called_Party_Number:  type_plan = 0(unknown)  address = 1234567890
User_User_Info:  prot_discr = 4(IA5_chars)  user_info = [14] 47 43 54 49 2F 52 65 66 3A 20 32 33 33 30 'GCTI/Ref: 2330'
Call_Options: # elems = 4
  option = 1(num_rings)  value = 15
  option = 2(alert_order _0_calling_1st__1_called_1st)  value = 1
  option = 12(return_ACK)  value = 1
  option = 14(ans_mach_treat _0_admin__1_drop__64_answer)  value = 1
Service_Circuit:  type = 1(call_classif tone_detect)
[/font]
[/size]
As you can see, there is no label called 'DNIS' or 'ANI', but T-Server is smart enough to talk the Avaya protocol and pass the number to be dialled to the switch. You may want to configure Genesys to select directly a specific trunk by adding a specific TAC in front of the number to be called.
If instead you are interested in passing a specific attached data (label) from Genesys to Avaya and fiddle with it, you can do it, there are at least a couple of threads in this forum about it.
Fra
p.s. : Cav, TFN = Toll Free Number