On Sunday 10 March 2019 at 15:08:35, Gokan Atmaca wrote: > > 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.
Yes. As I explained in my previous email, an underscore at the start of the extension means "this is going to be a pattern". So, if you want to specify a single number, you don't need to use the underscore - for example "6001" If you want to specify multiple numbers using pattern matching, then you do need the underscore - for example "_60XX". "_60XX" will match any number between 6000 and 6099, which would be fine for your purposes. Regards, Antony. > 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 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 -- APL [is a language], in which you can write a program to simulate shuffling a deck of cards and then dealing them out to several players, in four characters, none of which appear on a standard keyboard. - David Given 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