Hi Matt,

Here's an example config using multiple modems (of the same type, but it
shouldn't matter). One of the keys will be ensuring that on reboot etc
that the devices are all the same as before ..

group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
smsbox-port = 13001
log-level=0

group = smsbox
bearerbox-host = 127.0.0.1
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/access.log"
log-level=0
sendsms-port=13013

#optus modem
group = smsc
smsc = at
smsc-id = b
denied-smsc-id = a
modemtype = teltonika
device = /dev/gsm/USB0
log-level = 0

#telstra modem
group = smsc
smsc = at
smsc-id = a
denied-smsc-id = b
modemtype = teltonika
device = /dev/gsm/Serial0
log-level = 0

group = modems
id = teltonika
name = "Teltonika TM2"
detect-string = "Undefined"
message-storage = "SM"
speed = 115200

group = sms-service
keyword = default
#text = "No action required"
get-url = "http://127.0.0.1/mo.html?modem=%i&from=%p&message=%a";
omit-empty = true

#telstra user
group = sendsms-user
username = t
password = t

If each modem had a different SIM for a different operator (we use it
for monitoring in this way) you could then sent a message via a
particular modem by specifying the smsc in the query-string, like:

http://127.0.0.1:13013/cgi-bin/sendsms?user=t&pass=t&to=xxxx&text=Hello&smsc=a'

Cheers,
Alan

Matt Wiseman wrote:
> What do you mean about smsc_at entries?  I've got two groups that point
> to the modem, one(smsc) specifies /dev/ttyUSB0, the other(smsbox)
> specifies the phone number and the http port to connect to send on.
> 
> On Wed, 2009-07-22 at 13:26 -0500, Alvaro Cornejo wrote:
>> Hi
>>
>> You just need to repeat as much as smsc_at entries as modems you want
>> to have. however you just need one modem config entry per modem model.
>>
>> Regards
>>
>> Alvaro
>>
>>
>>
>> |-----------------------------------------------------------------------------------------------------------------|
>> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
>> celular y Nextel
>> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
>> SMS y GPRS online
>>               Visitenos en www.perusms.NET www.smsglobal.com.mx y
>> www.pravcom.com
>>
>>
>>
>> On Wed, Jul 22, 2009 at 1:15 PM, Matt Wiseman<[email protected]> wrote:
>>> Has anyone got an example conf file for multiple modems for smsbox?
>>> I've got one modem working fine and have a few identical laying around
>>> and the ability to target modems sounds cool.  I've tried reading the
>>> manual and all my attempts merely serve to break things.
>>>
>>>
>>> Any help would be cool.  Also, I'm getting a lot of 28 and 515 errors
>>> with these Multitech MTCBA-G-U-F4's does anyone have any experience with
>>> them or can you recommend me a better serial/usb modem?
>>>
>>>
>>>
>>> --
>>> Matt Wiseman <[email protected]>
>>>
>>>
>>>
> 
> 


Reply via email to