Voice before Call getting Mature

Hi All,

Is there any way to implement premature Voice in asterisk Dialplan? As I want to implemet premature music before call billing has started.



Note that this is unlikely to work with anyone that bills you, as they won’t want people t use early media.

Hi David,

I am using below code for prematureadio, but its not working.

exten => 500,1,Progress()
exten => 500,n,Wait(1)
exten => 500,n,Playback(hello-world,noanswer)
exten => 500,n,Hangup()

What channel technology are you using and what is the upstream system?

As I said, if you try to do this with a network operator, it will either fail or they will bill you when the media starts, as it is not in their commercial interest to allow the use of early media from end users.

Another situation in which early media will fail is if a SIP UAC uses later offer SDP, as the UAS won’t know to where to end the media until it receives the ACK. Cisco CUCM does this when not able to use MTPs.

I am using Asterisk, with SS7 with telecom operator for calls. You mean I need to consult with operator for early media.

Yes. Normally, unless you are also a network operator, you will not be allowed early media, although I gather than Germany has rules about calls in queues that might make it necessary for them to allow early media.

Also, are you using libss7, as that is third party code, and not effectively supported here.

Most users of Asterisk will simply not have the option of using early media on the PSTN, so will not know whether any particular channel driver would support if it were allowed.