How can I connect to seweral SMSC

Smpp v3.4 client

Moderator: alt

Locked
komil
Posts: 11
Joined: Tue Jul 06, 2010 6:41 am

How can I connect to seweral SMSC

Post by komil » Tue Jul 06, 2010 6:45 am

Now I`m used ALT SMS and very successful, but I`m want used seweral SMSC how can I do it?


With best regards,
Komil
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Tue Jul 06, 2010 2:04 pm

You need to create several SmppClient instances and connect each to different SMSC.
komil
Posts: 11
Joined: Tue Jul 06, 2010 6:41 am

Post by komil » Tue Jul 06, 2010 2:11 pm

alt wrote:You need to create several SmppClient instances and connect each to different SMSC.
at first time I`m think I`m have to add SMSC parameters in app.config
which I do but when I`m add <appSettings>
<!-- User application and configured property settings go here.-->
<!-- Example: <add key="settingName" value="settingValue"/> -->
<add key="Host" value="xxxxxxxxxxx" />
<add key="Port" value="xxxx" />
<add key="SystemId" value="xxxx" />
<add key="Password" value="xxx" />
<add key="SystemType" value="" />
<add key="Ton" value="0" />
<add key="Npi" value="1" />
<add key="SrcAdr" value="3000" />
<add key="SrcAdrTON" value="0" />
<add key="SrcAdrNPI" value="1" />
<add key="DestAdr" value="" />
<add key="DestAdrTON" value="1" />
<add key="DestAdrNPI" value="1" />
</appSettings>

program don`t working in which part of code I`m must be add new SMSC?

Komil
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Tue Jul 06, 2010 2:40 pm

SmppClientDemo application created for connection with only one SMSC.

You need to write your own application. Where you need to make connection and binding with several SMSC, attach each client to required events.
Also you need to reestablish connection when one of the client disconnects.
Locked