Hello,
I wish to play an announcement to the caller before the call is connected. How would I do this in TCL?
From what I understand from early media the media path should be established before the call is connected, so before the 200 OK SIP message is sent by our gateway.
I was thinking of something like the following in my tcl script:
leg setupack leg_incoming #Receives the SIP INVITTE
leg progress leg_incoming -p 8 # Sends 183 Session Progress with SDP
media play leg_incoming flash:announcement.wav #Announcement
Catch ev_media_done event and invoke a proc which does:
leg connect leg_incoming #Sends the 200 OK
Does this count as early media?
Thanks,
Grant