Can Asterisk terminate and answer voip incoming calls without using any soft-phones?

Posted on 2009-12-30
Last Modified: 2013-11-12
I'm trying to provide an option to record incoming calls for my staff's office mobile calls

This works like a charm with asterisk for one voip number. Here is what i have done.

I have an asterisk server running. I have a voip number registered in sip.conf and when i recieve a call to my mobile number i bridge that call with my voip number on the mobile phone, the call to my voip number isi divert it to an internal extension say 2000 which is registerd to an xlite softphone installation in my LAN with the help of asterisk.  MixMonitor then records the call and saves it.

My problem is that as i have more than 50 mobile phones, and i want asterisk to perform just the recording mobile phone call function, i'm not sure how I can scale what i have done above to all 50 phones. Problems with scaling: one voip number can only handle one recording at a time. So i need at least 20 voip numbers. I can get that. Actually i spoke to my voip provider and they said they can provide me with a single voip number with 20 lines.  But now i'm stuck with the problem of having at least 20 different xlite softphones running on pcs in the lan.

1. Is there anyway to remove xlite component from this. Can asterisk directly terminate an incoming call to my voip number (registered in sip.conf) and still allow me to use mixmonitor?
2. If above doesn't work is there anyway possible for me to use appconference and mixmonitor together. I have installed appconference and i'm now able to create conference on the fly. This removes the xlite component, but somehow when i try mixmonitor with only creates the header files for the recording but no content is inside it. (i can post the cli log and my extesnions.conf setup for this if needed)

My sip.conf
bindaddr =
context = sip

here is what i have in my extensions.conf
exten => 1001,1,Noop(from outside)
exten => 1001,n,MixMonitor(wav,filename,v(1))
exten => 1001,n,Dial(SIP/2000,1)
exten => 1001,n,Hangup()

Open in new window

Question by:bongoloid
    LVL 16

    Expert Comment

    as i understand you,
    you need something like forwarding calls comes to your SIP account to your VoIP provider


    Author Comment

    I answer calls on the mobile phone. If i need to record it then i bridge my gsm call with my voip number. My voip number forwards the call to a local asterisk extension where mixmonitor is workin.

    I want to remove the local extension part.
    LVL 19

    Expert Comment

    Have you tried using Record instead of MixMonitor?

    I'm unclear if the bridging is initiated by the mobile phone service to the VoIP number or if Asterisk is ringing both the mobile and the local extension. From your description and dial plan it looks like the first, but what does the X-Lite do during the call? Does it just ring?

    Author Comment

    Hi Yes,

    You are right. The mobile phone is dialing to the voip number, which is registered in asterisk. Xlite extension just serves the purpose of ringing. Hence i tried to remove the xlite part altogether.

    Now i have tried another way of doing the same. Instead of dialing to another local extension, i created a conference room in meetme.conf and the used ConfBridge to form a conference. This way, i'm able to record the call without using any extensions.

    I have a new problem however, with this method. Earlier, exten => 1001,n,Dial(SIP/2000,5,H) allowed me to press * from the mobile phone and disconnect the voip number from the call. ConfBridge does not have an option like that.

    "Enters the user into a specified conference bridge. The user can exit the conference by hangup only."

    So i'm kinda stuck here....
    1. If i use Dial to a local extension and then record using MixMonitor, i'm forced to set-up several xlite soft phones so that i can record calls simultaneously.
    2. If i use ConfBridge, i solve one, but i'm not sure how to disconnect the voip number alone from the conference using DTMF tone.

    Also i tried using Record, but that recorded only what the asterisk extension recieved on its speaker. I don't need that. I only to record the incoming channel.

    Thanks for your help and time. Happy New Year to both of you..
    LVL 19

    Accepted Solution

    It might be possible to enable hangup detection using features.conf, but I'm not sure if it will work for a confbridge call:

    Look for this line and remove the ; at the beginning. You may want to change *0 to just *:
    ;disconnect => *0               ; Disconnect
    LVL 16

    Expert Comment

     please update status regarding this issue ..
     is it solved ??

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
    Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now