Trying to configure/understand early media

Unanswered Question
Feb 1st, 2012

Hello,

I'm trying to understand/configure early media for 15.0(1)M4. From what I understand so far it is media which is played to the caller before a (SIP) session is established. In our situation we need to play a certain audio file when someone calls a particular phone number.

What I do not understand is how and where I need to configure this audio file which needs to be played? Is it something I have to configure in our Cisco 3925 or do I need to tell our SIP provider to do the early media for us?

Any help would be useful.

Thanks

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 4.8 (4 ratings)
Paolo Bevilacqua Thu, 02/02/2012 - 00:09

How you play an audio file to a caller depends on the specifics of the system you got, and that you haven't mentioned (saying have a router is not enough). There are different ways to do that.

Note it has nothing to do with early media, and is normally not done by your ITSP.

GrantBagdasarian Thu, 02/02/2012 - 00:14

We are currently focused on developing VoiceXML applications which reside on our router. One of the VoiceXML applications plays an audio file and then transfers the caller to another destination. This audio file plays "This call costs x cents per minute". From what I understood this should be played before the connection is established between the caller and the VoiceXML application, so that the caller is not billed during the playing of the file.

Paolo Bevilacqua Thu, 02/02/2012 - 00:23

Your script is responsible to do that using the events and the commands available in TCL/IVR.

It is also responsible to complete the connection at a certain , thereby billing to the caller.

GrantBagdasarian Thu, 02/02/2012 - 00:33

Alright, thank you.

Is there an alternative way to accomplish this? I'm just trying to find the options we have, before I decide to go the TCL way.

Paolo Bevilacqua Thu, 02/02/2012 - 00:41

There can be more ways but one would have to know many more details  about the specifics requirements and budget of your project.

GrantBagdasarian Thu, 02/02/2012 - 01:14

What is early media actually used for, since I'm hearing different things from different sources? Some say it's used to establish a media path prior to the connection between the caller and called being established. When I read this I thought of this is exactly what we need, but I hear from you early media has nothing to do with this.

Paolo Bevilacqua Thu, 02/02/2012 - 02:15

It may have to do with it. In you first posts you did not specified that the announcement has to be played before connect, from that my answer.

GrantBagdasarian Thu, 02/02/2012 - 02:32

Ah my bad. Yes, an announcement must be played before connect.

Below a part of my tcl script. Is this the correct way to achieve the early media? I've attached the debug ccsip all to the original post.

proc act_Setup { } {

     puts "Received an incoming call"

    leg setupack leg_incoming

    leg proceeding leg_incoming

    leg progress leg_incoming

    puts "Playing media"

     media play leg_incoming flash:cost.wav

     leg connect leg_incoming

}

maharris Thu, 02/02/2012 - 09:12

Early offer/early media are very confusing, and may or may not apply to this situation, but here is some explanation from the SRND - follow the link to read the whole chapter, it has some good discussion you don't find many other places:

Early Media

In certain circumstances, a SIP session might require that a media path  be set up prior to the finalization of the media capabilities exchange  between the two SIP endpoints. To this end, the SIP protocol allows the  establishment of Early Media after the initial Offer has been received  by an endpoint. Some reasons for using Early Media include:

The  called device might want to establish an Early Media RTP path to reduce  the effects of audio cut-through delay (clipping) for calls  experiencing long signaling delays or to provide a network-based voice  message to the caller.

The  calling device might want to establish an Early Media RTP path to  access a DTMF or voice-driven interactive voice response (IVR) system.

Unified CM supports Early Media for both Early Offer and Delayed Offer calls.

For a SIP trunk to support Early Media cut-through, you must enable PRACK through the SIP Rel1XX Options feature in the SIP Profile associate with the trunk.

Note The terms Early Offer and Early Media are often confused, but they are not the same.

http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/srnd/8x/trunks.html

Mary Beth

GrantBagdasarian Thu, 02/23/2012 - 01:13

Hello,

Sorry for my late reply. I've been busy with some other things.

I've managed to build a tcl script which plays an announcement before the call is actually connected.

Could someone please inspect the debug ccsip messages file which I've added to the original post to confirm this is really early media?

Thanks


Actions

Login or Register to take actions

This Discussion

Posted February 1, 2012 at 11:48 PM
Stats:
Replies:10 Avg. Rating:4.75
Views:1010 Votes:0
Shares:0
Tags: sip, early-media
+

Related Content

Discussions Leaderboard

Rank Username Points
1 21,026
2 15,047
3 10,314
4 7,999
5 4,856
Rank Username Points
120
90
67
55
51