Chan_sebi configuration
I thought I would write down how I have configured Asterisk to use chan_sebi.
How to compile, link and install
It is very easy to compile and link the new module.
- Copy the chan_sebi.c file into the channels subdirectory of asterisk-addons
- make menuselect (make sure that chan_sebi is selected)
- make
- make install
If Asterisk is already running you will need to load the module
- module load chan_sebi
If you have enabled debugging you will now see the startup commands
Configuration files
You need to create the sebi.conf file in the asterisk config file directory, in my case /etc/asterisk
This is my file
[huawei1]
imei=3530xxxxxxxxxxx ; imei of modem ( I have hidden some of my number)
;pin=1234 ; pin (use only if sim card has pin request enabled)
csca=+447973100973 ; SMS centre number (Orange Uk for me)
sms=yes ; Enable sms send/receive
voice=yes ; Enable voice for calls
context=from-mobile ; dialplan context for iincoming calls
group=1 ; this phone is in channel group 1
volume=5 ; Modem Volume (1-5)
language=en ; Channel language
;nocallsetup=yes ; set this only if you want override call status notifications
;hidecid=#31# ; if you want outbound calls without caller id
;noincomingcalls=yes ; Reject all voice incoming calls
Using the modem in extensions.conf
To make a voice call from the modem you will need an entry in extensions to conf. For my testing I set it up so that a call to extension 3000 would connect to my own mobile phone via the huawei modem. I did this with the following entry
exten => 3000,1,Ringing
exten => 3000,n,Dial(sebi/huawei1/07xxxxxxxxx,20,T)
exten => 3000,n,Hangup
The term after the sebi/ must match the name at the top of the sebi.conf file.
To send an sms I created an entry so that a call to extension 3001 would send an sms to my mobile phone
exten => 3001,1,SebiSendSMS(huawei1,07xxxxxxxxx,"Message from Asterisk dialplan")
To receive an incoming call from the modem
[from_mobile]
exten => s,1,Answer
exten => s,n,Dial(SIP/martin,10,Ttr)
This will call one of my sip attached phones. Obviously this should be extended to cover the situation of the call not being answered or the si phone being busy.
- Log in to post comments
