Want to record call after pickup

Hello Asterisk Community! I hope this post finds you well.

i am facing a simple problem in asterisk i have two exten 1001 and 1002 on same server and i am dialing from 1001 to 1002 and i need that mixmonitor or monitor will start recording after the call is pick up by 1002. i mean in recording ringing sound will not come.
i think this is a simple question but i am new in it so kindly guide me.

On Friday 08 March 2024 at 12:06:51, dpkbarala via Asterisk Community wrote:

i need that mixmonitor or monitor will start recording after the call is
pick up by 1002. i mean in recording ringing sound will not come.

https://docs.asterisk.org/Asterisk_18_Documentation/API_Documentation/Dialplan_Applications/MixMonitor/

See option “b”.

Antony.

–
The gravitational attraction exerted by a single doctor at a distance of 6
inches is roughly twice that of Jupiter at its closest point to the Earth.

                                               Please reply to the list;
                                                     please *don't* CC me.

Hello Pooh
thanks for reply i read about option b in Mixmonitor but in this case always a file is created no matter call is answered or not and its default size is 44 if call is not answered but i need that file is not created if call is not answered so if anything else exist than kindly tell me.
thank you.

You could probably use the “U” option to Dial[1] to execute a dialplan subroutine before bridging, and in it execute MixMonitor.

[1] Dial - Asterisk Documentation

1 Like

On Friday 08 March 2024 at 13:40:37, dpkbarala via Asterisk Community wrote:

Hello Pooh
thanks for reply i read about option b in Mixmonitor but in this case
always a file is created no matter call is answered or not and its default
size is 44 if call is not answered but i need that file is not created if
call is not answered so if anything else exist than kindly tell me. thank
you.

You could do somethihg like adding the g option to your Dial() command so that
dialplan execution continues after the call is completed, and then if the
${DIALSTATUS} is not ANSWER, delete the recording file.

Antony.

–
Schrödinger’s rule of data integrity: the condition of any backup is unknown
until a restore is attempted.

                                               Please reply to the list;
                                                     please *don't* CC me.

hello Jcolp

thanks for reply and it works now so
big thank you for solution.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.