Re: [asterisk-users] internal call record

2019-04-04 Thread Antony Stone
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.

-- 
_
-- 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] internal call record

2019-04-04 Thread Karsten Wemheuer
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

-- 
_
-- 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] internal call record

2019-03-10 Thread Antony Stone
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

Re: [asterisk-users] internal call record

2019-03-10 Thread Gokan Atmaca
> 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
 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

-- 
_
-- 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] internal call record

2019-03-10 Thread Antony Stone
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

Re: [asterisk-users] internal call record

2019-03-10 Thread 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()


On Sat, Mar 9, 2019 at 6:50 PM Doug Lytle  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

-- 
_
-- 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] internal call record

2019-03-09 Thread Doug Lytle

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

Re: [asterisk-users] internal call record

2019-03-09 Thread Gokan Atmaca
> Show us the parts of your dial plan which:
>
> 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 can call to record
audio calls.

Thanks.

On Sat, Mar 9, 2019 at 4:25 PM Antony Stone
 wrote:
>
> On Saturday 09 March 2019 at 14:19:19, Gokan Atmaca wrote:
>
> > Hello
> >
> > How can I record voice between internalities? I can record voice in
> > incoming and outgoing calls, but I can't make it between the internal.
> > Would you support this?
>
> Show us the parts of your dial plan which:
>
> 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.
>
>
> Antony.
>
> --
> There's no such thing as bad weather - only the wrong clothes.
>
>  - Billy Connolly
>
>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

-- 
_
-- 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] internal call record

2019-03-09 Thread Antony Stone
On Saturday 09 March 2019 at 14:19:19, Gokan Atmaca wrote:

> Hello
> 
> How can I record voice between internalities? I can record voice in
> incoming and outgoing calls, but I can't make it between the internal.
> Would you support this?

Show us the parts of your dial plan which:

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.


Antony.

-- 
There's no such thing as bad weather - only the wrong clothes.

 - Billy Connolly

   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