Blogs

Showing 13 results.
Items per Page 20
of 1

Forums

« Back to TCL-API

How to access Call-ID after doing a leg_setup

Combination View Flat View Tree View
Threads [ Previous | Next ]
I need to find the "Call-ID" of an outgoing leg.
If I call the following code, which is correct according to the manual:    
   # at some point in my code I place an outoing call    
   leg setup $my_destination callInfo leg_incoming     
   # later in the code, I need to retrieve call-id to match cdrs with a vendor    
   set call_id [infotag get leg_proto_headers "Call-ID" leg_outgoing]
error:  
   expected integer but got "leg_outgoing"CallID leg_outgoing was not an Incoming Leg  
 
what am I doing wrong?   thank you

Unless you do 'set callinfo(newguid) "true"  ', call-id will be the same so I will try   1. set callid [infotag get leg_incoming_guid] please refer to programming guide. 2. If you want to get it from header try infotag get evt_proto_headers Call-ID    
Get this when you get "ev_setup_indication" event

Yaw-Ming,
 
 thanks for your help. A couple of questions:
1.- Isn't the ev_setup_indication event only called for incoming calls? If so, I won't be able to get the outgoing call-id.
 
2.- I don't see any references to "set callid" in the programming guide.
 
thanks again

Adolfo Arizpe:
Yaw-Ming,
 
 thanks for your help. A couple of questions:
1.- Isn't the ev_setup_indication event only called for incoming calls? If so, I won't be able to get the outgoing call-id.
 Usually call-id is unique for one call.
2.- I don't see any references to "set callid" in the programming guide.
command is [infotag get leg_incoming_guid], 'callid' is the varibale you can set it to anything else
 
thanks again

Yaw-Ming,
 
 using 
  'set callinfo(newguid) "true"'
solved our problems! Thanks for your help!

Just curious, did you get the following error on IOS ?
%CALL_CONTROL-6-CALL_LOOP: The incoming call has a global identifier already present in the list of currently handled calls. It is being refused.
 
or 500 Internal error on SIP ?
 
 

Collateral


No files available