[asterisk-bugs] [JIRA] (ASTERISK-24373) Sub-second silence

Corey Farrell (JIRA) noreply at issues.asterisk.org
Sat Oct 17 09:59:32 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=227932#comment-227932 ] 

Corey Farrell commented on ASTERISK-24373:
------------------------------------------

I was just looking at this again, could my problem be solved by Playtones?
{{code}}
same => n,Playtones(0/20)
same => n,Wait(0.02)
same => n,StopPlayTones()
{{code}}

Again the goal being to force generation of a silent RTP frame.  Is 0.02 second wait long enough to guarantee that a frame will be generated?

> Sub-second silence
> ------------------
>
>                 Key: ASTERISK-24373
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24373
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Sounds
>    Affects Versions: SVN
>            Reporter: Corey Farrell
>            Severity: Minor
>         Attachments: 20ms.ulaw
>
>
> In some situations it is necessary to send at least 1 audio frame to a channel before audio can be received.  I believe it would be very helpful to add silence/20ms audio files to the standard audio distribution.  I'm unsure if other lengths would also be useful.  For my own use 20ms is enough to allow audio to start flowing in both directions.
> As another thought, maybe it would be useful to have an option for Wait to play silence of arbitrary length, for example: Wait(0.02,s).  I still think adding a minimum length silent audio to the sounds distribution would be useful since an option to generate silence from Wait() is unlikely to happen in released branches.
> [Edit by Rusty - Adding Corey's use case below]
> My use case for this audio is in an outbound dialer using SIP through a Cisco firewall. A call is originated and processed with the following dialplan:
> {noformat}
> exten => s,1,Answer()
> same => n,Playback(silence/20ms)
> same => n,AMD()
> same => n,NoOp(do stuff based on AMD results)
> {noformat}
> Initially I was using Wait(0.1) in place the Playback, however for reasons unknown to me this prevented the dialer from receiving any audio, and AMD() timed out with silence. I verified that the PBX which received the call was sending RTP to the correct IP immediately upon Answer, but the dialer didn't receive RTP until after it sent RTP. So I needed to add silence before running AMD, but silence/1 would be too large of a delay.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list