James Stocks
2012-Feb-16 15:44 UTC
[asterisk-users] Park() ignores 'r' option which should disable music on hold in favour of ringing tone
When I receive a call, I want to automatically park it from the dialplan so that I can retrieve it later. However, I don't want callers to be aware that they are being parked, so I want to play a ringing tone to the caller. Park() is supposed to be able to do this: Park([timeout][,return_context[,return_exten[,return_priority[,options[,parking_lot_name]]]]]) options r: Send ringing instead of MOH to the parked call. s: Silence announcement of the parking space number. I've created an extension to test this with, here's what I have in extensions.conf: exten => *10,1,Answer exten => *10,n,Park(120000,special,*59,1,rs) exten => *10,n,Hangup() Here's the output on the Asterisk console: -- Executing [*10 at house-phones:1] Answer("SIP/200-0000000a", "") in new stack -- Executing [*10 at house-phones:2] Park("SIP/200-0000000a", "120000,special,*59,1,rs") in new stack == Parked SIP/200-0000000a on 701 (lot default). Will timeout back to extension [special] *59, 1 in 120 seconds -- Added extension '701' priority 1 to parkedcalls -- Started music on hold, class 'default', on SIP/200-0000000a -- Executing [h at house-phones:1] NoOp("Parked/SIP/200-0000000a<ZOMBIE>", "") in new stack I can see that the call is parked OK and the 's' option is being respected, but the caller just hears the default MOH rather than ringing. Does anyone have this working? I was using Asterisk version 1.8.3.3, I've upgraded to 1.8.9.2, but it hasn't helped. James.
Warren Selby
2012-Feb-20 17:12 UTC
[asterisk-users] Park() ignores 'r' option which should disable music on hold in favour of ringing tone
On Thu, Feb 16, 2012 at 9:44 AM, James Stocks <stocksy at stocksy.co.uk> wrote:> When I receive a call, I want to automatically park it from the dialplan > so that I can retrieve it later. However, I don't want callers to be aware > that they are being parked, so I want to play a ringing tone to the caller. > Park() is supposed to be able to do this: > > > Park([timeout][,return_context[,return_exten[,return_priority[,options[,parking_lot_name]]]]]) > options > r: Send ringing instead of MOH to the parked call. > s: Silence announcement of the parking space number. > > I've created an extension to test this with, here's what I have in > extensions.conf: > > exten => *10,1,Answer > exten => *10,n,Park(120000,special,*59,1,rs) > exten => *10,n,Hangup() > > Here's the output on the Asterisk console: ><snip> I'm seeing the same behavior in asterisk 1.8.8.0. I suggest you open a ticket on https://issues.asterisk.org/jira and report the issue. -- Thanks, --Warren Selby, dCAP http://www.SelbyTech.com <http://www.selbytech.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120220/77159f05/attachment.htm>