hy, 

i have setup kannel with 2 smsc using 2 E220 modems. 

each
modem use a simcard from diferent gps operator, 

and i want to send
message to each neatwork to numbers that are in that network. 

number
from network A to be send by the modem A 

number from network B to be
send by modem B. 

now i have set default the modem A to send message to
numbers from network A 

but when i try to send message to network B
using the number for network B i get this error: "Not routable. Do not
try again." 

how i set the config to each modem sends messages from his
range of numbers and not to send messages using another smsc 

this is
my config: 

> # CORE
> group = core
> admin-port = 13000
>
admin-password = xxxxx
> status-password = xxxxxxxx
> #admin-deny-ip =
"*.*.*.*"
> admin-allow-ip = "127.0.0.1;192.168.1.*"
> smsbox-port =
13001
> #box-deny-ip = "*.*.*.*"
> box-allow-ip = "*.*.*.*"
>
#box-allow-ip = "127.0.0.1;192.168.1.*"
> log-file =
"/var/log/kannel/kannel.log"
> log-level = 0
> access-log =
"/var/log/kannel/access.log"
> store-location =
"/var/log/kannel/kannel.store"
> 
>
#---------------------------------------------
> # SMSC CONNECTIONS FOR
COSMOTE
> group = smsc
> smsc = at
> smsc-id = cosmote_SMSC
> modemtype
= HUAWEI_E220
> device = /dev/ttyUSB1
> speed = 4608000
> #pin =
999638
> validityperiod = 167
> keepalive = 10
> my-number =
+40785xxxxxx
> sms-center = +40766000510
> sim-buffering = true
>
preferred-prefix = "0766;0785"
> denied-prefix = "0721;0722;0723;0735"
>
allowed-smsc-id = "cosmote_SMSC"
> denied-smsc-id = "vodafone_SMSC"
> 
>
#---------------------------------------------
> # SMSC CONNECTIONS FOR
COSMOTE
> group = smsc
> smsc = at
> smsc-id = vodafone_SMSC
> modemtype
= HUAWEI_E220
> device = /dev/ttyUSB3
> speed = 4608000
> #pin =
999638
> validityperiod = 167
> keepalive = 10
> my-number =
+40721xxxxxxx
> sms-center = +40722006000
> sim-buffering = true
>
preferred-prefix = "0721;0722;0723;0735"
> denied-prefix =
"0766;0785""
> allowed-smsc-id = "vodafone_SMSC"
> denied-smsc-id =
"cosmote_SMSC"
> 
> include="/etc/kannel/modem.conf"
> 
> # SMSBOX
SETUP
> group = smsbox
> smsbox-id = acronSMS
> bearerbox-host =
localhost
> sendsms-port = 9000
> sendsms-chars = "0123456789+"
>
global-sender = "+40744946000"
> log-file =
"/var/log/kannel/smsbox.log"
> log-level = 0
> access-log =
"/var/log/kannel/access.log"
> 
> group = sms-service
> keyword = nop
>
text = "You asked nothing and I did it!"
> 
> # SMS SERVICES
> # there
should be default always
> group = sms-service
> accepted-smsc =
"cosmote_SMSC;vodafone_SMSC"
> accept-x-kannel-headers = true
> get-url
=
"http://192.168.1.104:8080/events/events.kml?sender=%p&mesaj=%a&timp%t";
>
#get-url =
"http://localhost/acronsms/acronsms_recived.php?mesaj=%a&expeditor=%p&timp=%t";
>
keyword = .*
> catch-all = true
> max-messages = 0
> omit-empty=true
>

> # SEND-SMS USERS
> group = sendsms-user
> username = xxxx
> password
= xxxx
> default-smsc = cosmote_SMSC
> concatenation = true
>
max-messages = 10
> #dlr-url =
"http://192.168.1.118/acronsms/acronsms.php?dlr=%d
> #user-deny-ip =
"*.*.*.*"
> #user-allow-ip = "127.0.0.1,192.168.1.*"

-- 

  

Reply via email to