Need help in installing and coding A6 mini gsm into Mega 2560

Hi! Can anyone help me with installing and coding A6 mini gsm into Arduino Mega 2560? I’m really new at this and I would really like my outputs are serial to make phone calls. Thankyou. The attachment below is the code for my project.

Home Security.txt (8.59 KB)

I found the code for A6 mini gsm module, but I don’t know how to combine the code without interfacing it with a computer, can anyone help me? below is the attachment for A6 code.

A6 code.txt (1.18 KB)