Menu

Config example with asterisk on the same host

Help
2011-10-16
2012-10-02
  • Bernd Krumböck

    Bernd Krumböck - 2011-10-16

    Hi!

    For about 2 weeks I try to get mcu media server run. The reason why it takes
    so long were various configuration mistakes. So I try to post a working
    example. I assume the asterisk server ip is 192.168.1.10.

    1. Asterisk configuration:

    1.1. sip.conf:

    videosupport=yes          ; at first enable video in asterisk
    
    [user1]
    type=friend
    host=dynamic
    secret=mysecret
    disallow=all               ; you have to explicit allow h264, else video will not work in your client!!
    allow=ulaw
    allow=alaw
    allow=h263p
    allow=h264
    
    [mcuWeb]
    videosupport=yes
    type=peer
    host=127.0.0.1        ; ip of sailfin
    port=5070        ; port of sailfin
    canreinvite=no
    disallow=all
    allow=ulaw
    allow=alaw
    allow=h263p
    allow=h264
    

    1.2. extensions.conf:

    [default]
    exten => _3XX,1,Dial(SIP/${EXTEN}@mcuWeb,,)            ; use any number between 300 and 399 for conferences
    
    1. Sailfin configuration:

    2.1. Set interface port to a number above 1024, else sailfin can run only as
    root
    2.2. Open configuration interface (port 4848) and click on "Configuration
    ->SIP-Container". Change SIP-Port to 5070 and secure SIP-Port to 5017.
    2.3. Open configuration interface (port 4848) and click on "Configuration->SIP
    Service->SIP Listeners". Change the listener port for sip-listener-1 to 5070
    and listener port for sip-listener-2 to 5071.

    1. Configure mcuWeb

    3.1. Add Media Mixer with following parameters

    URL = http://127.0.0.1:8080
    Media IP = 192.168.1.10
    Public IP = 192.168.1.10

    3.2. Configure a conference with DID = 300 and composition = MOSAIC2x2 (the
    mixer /usr/local/src/mcu/bin/debug/mcu must already run! If you restart the
    mixer, you have to remove and recreate the conference)

    1. Configure SIP Client:

    4.1 Configure SIP account
    user = user1
    password = mysecret
    registrar = 192.168.1.10

    4.2 Enable video codec H264 (and maybe disable all other)

    Clients which should work:
    Ekiga (http://ekiga.org/) --- stable version 3.2.7 may
    not work under windows 7
    Jitsi (http://jitsi.org/) --- account configuration
    has no extra field for registrar, so you have to use "user1@192.168.1.10"

    Good luck!

    regards,
    Bernd

     
  • arun kumar

    arun kumar - 2012-02-22

    Hi bernd,
    Can you explain whether the asterisk MCU can be on single server.

     
  • Sergio Garcia Murillo

    They asterisk, sailfin and media mixer can be colocated on same server, or
    distributed across different ones.

    Best regards
    Sergio

     

Log in to post a comment.