Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
Voice Gateway API (VGAPI) Developer Center
Overview
Documentation
Community
Testing
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to TCL-API
RE: How to get the Call-ID of an outgoing leg?
Threads [
Previous
|
Next
]
Adolfo Arizpe
Posts:
24
Join Date:
1/11/12
Recent Posts
How to get the Call-ID of an outgoing leg?
Answer
5/23/12 12:59 PM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
In my TCL script, I need to access the Call-ID that is sent as SIP sip header when I do a leg setup to start an outgoing leg.
The manual has examples on how to get this value for incoming SIP calls, but I haven't found the way to get this value when I'm initiating the outbound call.
I have tried:
set foo [infotag get leg_proto_headers "Call-ID"]
but it the returning value is empty.
I have also tried using leg_outgoing_guid but the vale it returns is the exact same one as the leg_incoming_guid.
Thanks in advance for any help!
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Yaw-Ming Chen
Posts:
466
Join Date:
4/9/08
Recent Posts
RE: How to get the Call-ID of an outgoing leg?
Answer
5/18/12 6:52 PM as a reply to Adolfo Arizpe.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Try "evt_proto_headers"
set fromEvt [infotag get evt_proto_headers From]
puts "\n>>>> From header from evt tag == $fromEvt <<<<\n"
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Adolfo Arizpe
Posts:
24
Join Date:
1/11/12
Recent Posts
RE: How to get the Call-ID of an outgoing leg?
Answer
5/18/12 7:30 PM as a reply to Yaw-Ming Chen.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Yaw-Ming, thank you for your help.
I've tried using evt_proto_headers, which according to the manual, can only be used in the ev_notify, ev_subscribe_done, ev_unsubscribe_indication events.
As soon as I add the ev_notify event to my fsm, i start getting errors:
May 18 18:23:01.084: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 500 Internal Server Error
...
Adding ev_subscribe_done it's never triggered.
Is there another way to retrieve the Call-Id sip header?
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top