Hello Mynum: 6001 , Othernum: 6002. I can record as follows. But I do not enter individual records for each internal required. I want to do it more smoothly with a Macro. Thanks. exten => _6001,1,NoOp() exten => _6001,n,MixMonitor(${UNIQUEID}.wav,ab) exten => _6001,n,Dial(SIP/6001,20) exten => _6001,n,StopMixMonitor() exten => _6001,n,Hangup() On Sat, Mar 9, 2019 at 6:50 PM Doug Lytle <support at drdos.info> wrote:> > On 3/9/19 9:56 AM, Gokan Atmaca wrote: > > a) work for recording incoming / outgoing calls > > b) do not work for recording internal calls > > then we might be able to give you a clue what's wrong. > > Hello > > For example: My phone number is 1000, the other's number is 1001. These numbers > are in the same PBX (asterisk). I want 1000, 1001 > > > Gokan, > > > Since you've said that outside calls can be recorded, but not inside calls; Antony requested that you show us your dialplan code for recordings that work. This will give us an idea of what might be going wrong when trying to record inside calls. > > It would also be helpful to see your console output when things are not working. > > Doug > > -- > _____________________________________________________________________ > -- 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
On Sunday 10 March 2019 at 10:46:24, Gokan Atmaca wrote:> Hello > > Mynum: 6001 , Othernum: 6002. > > > I can record as follows.So, are you saying that this is the part which does work? We need to see the part which doesn't work as well, otherwise we have no idea what to suggest you change.> But I do not enter individual records for each internal required. I want to > do it more smoothly with a Macro.> exten => _6001,1,NoOp() > exten => _6001,n,MixMonitor(${UNIQUEID}.wav,ab) > exten => _6001,n,Dial(SIP/6001,20) > exten => _6001,n,StopMixMonitor() > exten => _6001,n,Hangup()Well, firstly, why are you using "_6001"? The leading underscore says "this is going to be a pattern match", but you then follow with a specific number, not a pattern. You might as well write just "6001" without the underscore, which is clearer to you and more efficient for Asterisk. Note: You don't need the StopMixMonitor() immediately preceding a Hangup() - it's done automatically when the call ends. Do all your internal extensions start with "600" (or maybe "60")? If so, have you tried the same dial plan but using "_600X" or "_60XX" as the extension match on every line (oh, and incidentally, you can say "same => n," in place of "exten => _6000,n," on every line after the first one - this saves some typing, and also makes things a lot simpler if you decide you need to change the basic pattern match at some time in the future).> On Sat, Mar 9, 2019 at 6:50 PM Doug Lytle wrote: > > On Sat, Mar 9, 2019 at 4:25 PM Antony Stone wrote: > > > > a) work for recording incoming / outgoing calls > > > > b) do not work for recording internal calls > > > > then we might be able to give you a clue what's wrong. > > > > Hello > > > > For example: My phone number is 1000, the other's number is 1001. These > > numbers are in the same PBX (asterisk). I want 1000, 1001 > > > > > > Gokan, > > > > > > Since you've said that outside calls can be recorded, but not inside > > calls; Antony requested that you show us your dialplan code for > > recordings that work. This will give us an idea of what might be going > > wrong when trying to record inside calls. > > > > It would also be helpful to see your console output when things are not > > working. > > > > Doug-- How does an Israeli man make tea? Hebrews it. Please reply to the list; please *don't* CC me.
> Well, firstly, why are you using "_6001"? The leading underscore says "this is > going to be a pattern match", but you then follow with a specific number, not a > pattern. You might as well write just "6001" without the underscore, which is > clearer to you and more efficient for Asterisk.Hello The total number of internal medicine is 6000-6020. When I do 6XXX getting error. I did as follows. I think (*) there is a mistake I am doing. exten => 6XXX,1,NoOp() exten => 6XXX,n,MixMonitor(${UNIQUEID}.wav,ab) exten => 6XXX,n,Dial(SIP/${ARG2}/${ARG1},20) (*) exten => 6XXX,n,StopMixMonitor() exten => 6XXX,n,Hangup() On Sun, Mar 10, 2019 at 12:59 PM Antony Stone <Antony.Stone at asterisk.open.source.it> wrote:> > On Sunday 10 March 2019 at 10:46:24, Gokan Atmaca wrote: > > > Hello > > > > Mynum: 6001 , Othernum: 6002. > > > > > > I can record as follows. > > So, are you saying that this is the part which does work? > > We need to see the part which doesn't work as well, otherwise we have no idea > what to suggest you change. > > > But I do not enter individual records for each internal required. I want to > > do it more smoothly with a Macro. > > > exten => _6001,1,NoOp() > > exten => _6001,n,MixMonitor(${UNIQUEID}.wav,ab) > > exten => _6001,n,Dial(SIP/6001,20) > > exten => _6001,n,StopMixMonitor() > > exten => _6001,n,Hangup() > > Well, firstly, why are you using "_6001"? The leading underscore says "this is > going to be a pattern match", but you then follow with a specific number, not a > pattern. You might as well write just "6001" without the underscore, which is > clearer to you and more efficient for Asterisk. > > Note: You don't need the StopMixMonitor() immediately preceding a Hangup() - > it's done automatically when the call ends. > > Do all your internal extensions start with "600" (or maybe "60")? > > If so, have you tried the same dial plan but using "_600X" or "_60XX" as the > extension match on every line (oh, and incidentally, you can say "same => n," > in place of "exten => _6000,n," on every line after the first one - this saves > some typing, and also makes things a lot simpler if you decide you need to > change the basic pattern match at some time in the future). > > > On Sat, Mar 9, 2019 at 6:50 PM Doug Lytle wrote: > > > On Sat, Mar 9, 2019 at 4:25 PM Antony Stone wrote: > > > > > > a) work for recording incoming / outgoing calls > > > > > > b) do not work for recording internal calls > > > > > > then we might be able to give you a clue what's wrong. > > > > > > Hello > > > > > > For example: My phone number is 1000, the other's number is 1001. These > > > numbers are in the same PBX (asterisk). I want 1000, 1001 > > > > > > > > > Gokan, > > > > > > > > > Since you've said that outside calls can be recorded, but not inside > > > calls; Antony requested that you show us your dialplan code for > > > recordings that work. This will give us an idea of what might be going > > > wrong when trying to record inside calls. > > > > > > It would also be helpful to see your console output when things are not > > > working. > > > > > > Doug > > -- > How does an Israeli man make tea? Hebrews it. > > Please reply to the list; > please *don't* CC me. > > -- > _____________________________________________________________________ > -- 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
Hi, Am Sonntag, den 10.03.2019, 12:46 +0300 schrieb Gokan Atmaca:> Hello > > Mynum: 6001 , Othernum: 6002. > > > I can record as follows. But I do not enter individual records for > each internal > required. I want to do it more smoothly with a Macro. > > Thanks. > > exten => _6001,1,NoOp() > exten => _6001,n,MixMonitor(${UNIQUEID}.wav,ab) > exten => _6001,n,Dial(SIP/6001,20) > exten => _6001,n,StopMixMonitor() > exten => _6001,n,Hangup() >If You are using SIP, pay attention to media setup (option "directmedia" in case of chan_sip). Using directmedia the media flows from end to end not running through asterisk. In this case recording doesn't work. HTH, Karsten
On Thursday 04 April 2019 at 17:59:07, Karsten Wemheuer wrote:> Am Sonntag, den 10.03.2019, 12:46 +0300 schrieb Gokan Atmaca: > > > > Mynum: 6001 , Othernum: 6002. > > > > I can record as follows. But I do not enter individual records for > > each internal required. I want to do it more smoothly with a Macro. > > > > Thanks. > > > > exten => _6001,1,NoOp() > > exten => _6001,n,MixMonitor(${UNIQUEID}.wav,ab) > > exten => _6001,n,Dial(SIP/6001,20) > > exten => _6001,n,StopMixMonitor() > > exten => _6001,n,Hangup() > > If You are using SIP, pay attention to media setup (option > "directmedia" in case of chan_sip). > > Using directmedia the media flows from end to end not running through > asterisk. In this case recording doesn't work.I thought this worked the other way around: If you set directmedia, the media flows directly between endpoints, _unless_ Asterisk has some function (such as recording, there are several others) which prevents this being possible, in which case the media continues to flow through Asterisk. In other words, you have to set directmedia to make it _possible_ for the media to bypass Asterisk, but that doesn't mean that it necessarily _does_. Antony. -- It may not seem obvious, but (6 x 5 + 5) x 5 - 55 equals 5! Please reply to the list; please *don't* CC me.