tutorial: use astercrm & asterisk for broadcasting

By November 6, 2009asterCRM

in this tutorial, it will guide u how to broadcast your message in asterisk and astercrm.

1. add outbound context in asterisk

add the following content in your dialplan (like extensions.conf)

[for-outbound] exten => _X.,1,Dial(SIP/yourtrunk/${EXTEN},45)
exten => _X.,n,Hangup

exten => h,1,NoOp(${DIALSTATUS})
exten => h,n,Hangup

here  “yourtrunk” should be defined in your sip conf file, or you can use other trunk you have, like IAX2, ZAP, DAHD I…

2. add inbound context in asterisk

add the following content in your dialplan (like extensions.conf)

[for-collection] exten => _X.,1,NoOp(${EXTEN})
exten => _X.,Background(YOURMESSAGE)
exten => _X.,n,Hangup

exten => 1,1,Queue(1000); means when customer press 1 when it’s playing, he will reach your queue 1000

exten => h,1,Hangup()

then it will look like

context

3. add group in astercrm

login astercrm as admin, then go to extension->group admin, add a group for this broadcasting project

group

4. add campaign in astercrm

then go to diallist->campaign, add a campaign, in outcontext and incontext, we will put the context we added before, for-outbound and for-collection

campaign

5. upload the diallist

you can upload a excel/cvs file to diallist, or you can insert record to diallist table using your script

numbers.csv

numbers

import:

import

6. start the dialer

then u can go to dialer page to enable the campaign,  also you can set a limitation of  the max outbound calls there

dialer

7. set a time limitation

if you only want it dial at spcific time, you can add a time package for the campaign. first add some time

diallist -> worktime

worktime

then create a work time package and add the worktime in

worktime_package

then set the campaign to use this work time package

campaign_with_worktime

8. check dial result

go to diallist -> dialedlist, you can find the result

dialedlist

hope this post can help you create ur first broadcasting campaign, and u can also improve on this, like u can use a script to insert to diallist automaticly or set some survey so customer can press in their option when listening to your message.

6 Comments

  • Abd says:

    I have installed Asterisk server and Astercrm and they all work and i did all the steps in this tutorial but it still can’t broadcast, i think i have a problem here
    exten => _X.,1,Dial(SIP/yourtrunk/${EXTEN},45)
    can you explain to me what does ”yourtrunk” mean ? what should i put there ? SIP ?

  • Abd says:

    [general]
    context=internal
    allowguest=no
    allowoverlap=no
    bindport=5060
    bindaddr=0.0.0.0
    srvlookup=no
    disallow=all
    allow=ulaw
    alwaysauthreject=yes
    canreinvite=no
    nat=yes
    session-timers=refuse
    localnet=192.168.1.0/255.255.255.0

    [067708514]
    type=friend
    host=dynamic
    username=abd
    secret=abd
    context=internal

    [060449811]
    type=friend
    host=dynamic
    username=ta
    secret=ta
    context=internal

    here is my sip.conf file how can i define it please ?

  • admin says:

    067708514 and 060449811 is your trunk name

  • Abd says:

    so in my extensions.conf file i should add this
    [for-outbound]
    exten => _X.,1,Dial(SIP/060449811 /${EXTEN},45)
    exten => _X.,n,Hangup
    exten => _X.,1,Dial(SIP/067708514 /${EXTEN},45)
    exten => _X.,n,Hangup

    exten => h,1,NoOp(${DIALSTATUS})
    exten => h,n,Hangup

Leave a Reply