Re: [asterisk-users] Question on ring count on incoming circuits

2023-05-30 Thread asterisk

On 5/29/2023 4:12 PM, Steve Matzura wrote:

On 5/28/2023 2:27 PM, Naveen Albert wrote:
However, you can also pass audio without supervising (early media). 
You typically need to Progress() first to allow this, e.g. for SIP, 
or audio won't pass at all.


...



If you want it to ring once and do something else, you could simply do:

exten => s,1,Wait(6) ; 1 ring cycle is 6 seconds
    same => n,Answer(); answer, and do something else



Just as you said at the top of this reply, no audio of any kind gets 
passed, so all the Wait(6) did was provide six seconds of dead-air 
silence before the outgoing message played. Oh well. Customers can't 
have everything. ;-)
Well, yes, that's what you wanted, right? Or maybe I misunderstood. If 
you want people to hear *something* but not have it answer immediately, 
for those 6 seconds, amend that to:


exten => s,1,Progress()
   same => n,Playback(foobar,noanswer)
   same => n,Answer()
   same => n,DoSomething()

For example, this is common for playing an outgoing message or voicemail 
greeting, without supervising immediately, so if the caller hangs up 
before leaving a message, s/he is not charged for the call. Are you 
trying to do something like that?



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Question on ring count on incoming circuits

2023-05-30 Thread Steve Matzura


On 5/28/2023 2:27 PM, Naveen Albert wrote:
However, you can also pass audio without supervising (early media). 
You typically need to Progress() first to allow this, e.g. for SIP, or 
audio won't pass at all.


...



If you want it to ring once and do something else, you could simply do:

exten => s,1,Wait(6) ; 1 ring cycle is 6 seconds
    same => n,Answer(); answer, and do something else



Just as you said at the top of this reply, no audio of any kind gets 
passed, so all the Wait(6) did was provide six seconds of dead-air 
silence before the outgoing message played. Oh well. Customers can't 
have everything. ;-)



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Can't stop Mixmonitor

2023-05-30 Thread Jon Bonilla (Manwe)
Hi all

Using asterisk 16.25


I was trying to stop Mixmonitor using features. The code is executed but I
realized that I was executing StopMixmonitor from another channel so I opted to
use AMI.

When I call MixMonitor I store the channel name in a var and then I use
StopMixmonitor from AMI sending the stored channel name as parameter.

What I've seen is that the app returns failure and going a little bit deeper I
see that the failure comes from the function stop_mixmonitor_full in
app_mixmonitor.c


datastore = ast_channel_datastore_find(chan, &mixmonitor_ds_info,
   S_OR(args.mixmonid, NULL));
if (!datastore) {
...
return -1

I know the error comes from that !datastore but I do not know how to follow and
dig into the problem.

any help?


cheers,

Jon




-- 
PekePBX, the multitenant PBX solution
https://pekepbx.com

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users