Sunday, February 27, 2011

Asterisk Basics (Lab - 1)

Here we'll setup our very basic Asterisk lab.

What we should already have :
A LINUX Server (preferably CentOS: see previous posts), LAN env, Asterisk installed and running.

What we'll do:
Create a SIP user account Register a softphone with Asterisk server, Create a Basic call flow a.k.a Dialplan and make test calls to our dial plan. We'll also learn some issues any beginner might face while associating a dialplan context to a SIP user.


5 comments:

  1. Hi,

    You may also check some Asterisk basics. This example is based on Ozeki Phone System XE:
    http://www.ozekiphone.com/asterisk-basics-385.html

    BR

    ReplyDelete
  2. Gohar,
    M facing this issue, when m going to install the Astersik packages (Dahdi) on CentOS v5.5 upgraded to v5.9, its look like kernal level issue.
    can u please help me out to resolve it.

    /usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xdefs.h:152: error: conflicting types for ‘bool’
    include/linux/types.h:36: error: previous declaration of ‘bool’ was here
    make[4]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1
    make[3]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp] Error 2
    make[2]: *** [_module_/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi] Error 2
    make[2]: Leaving directory `/usr/src/kernels/2.6.18-348.1.1.el5-i686'
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux'
    make: *** [all] Error 2

    this is the error i'm getting and it wont proceed to next level unless this is successfully installed.

    Regards,
    Shahid.

    ReplyDelete
  3. /usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xdefs.h:152: error: conflicting types for ‘bool’
    include/linux/types.h:36: error: previous declaration of ‘bool’ was here
    make[4]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1
    make[3]: *** [/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp] Error 2
    make[2]: *** [_module_/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi] Error 2
    make[2]: Leaving directory `/usr/src/kernels/2.6.18-348.1.1.el5-i686'
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/usr/src/asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux'
    make: *** [all] Error 2

    ReplyDelete
    Replies
    1. Hi Shahid, Its defnitely some library issue, seems like a bug to me. To get quick helo I suggest you to put up this issue on asterisk user's mailing list.

      Delete