Hi,

I wanna act as an SMSC and I wanna give my IP:port to others and let them
send their SMS via my Kannel. That is why I need to fix a port, not
because of a firewall or something like that.

I want Kannel to get into LISTEN mode in SMPP, like the way it does in
HTTP. Is it impossible?

Thanks
Amin

>
> Ugh. Monday. Neck sore.
> You want to fix the port used on your machine?
> To get through a firewall?? I don't think it would help.
> Why?
>
>
> Host and posts set in smsc group are host & port to connect to.
>
> group = smsc
> smsc-id = clickatell
> ## configure smsc depending on protocol run by smsc provider
> smsc = smpp
> host = xxx.xxx.xxx
> port = 2xxx
> receive-port = 2xxx
> smsc-username = "xxx"
> smsc-password = "xxxxxxx"
> ### clickatell product as system type for their validation and billing
> system-type = "123456789-1221-32a"
> address-range = ""
> enquire-link-interval = 60
>
> ## fake test smsc
> group = smsc
> smsc = fake
> smsc-id = FAKE
> port = 13333
> connect-allow-ip = 127.0.0.1
>
>
> As usual for sockets a random unused socket is used on conencting side.
> You could take a look at code gwlib/socket.c might be a good place to
> start.
> If you bind socket to a local port then you could achieve I think what
>  you are asking but I think it would be the wrong thing to do?
>
>
>
> see sockets used:
>
> [EMAIL PROTECTED] sudo netstat -ep |grep 2xxx
> tcp        0      0 be.al:32927 x.x.x.x:2xxx     ESTABLISHED root
> 141184     24739/bearerbox
> tcp        0      0 be.al:32928 x.x.x.x:2xxx     ESTABLISHED root
> 141190     24739/bearerbox
>
> gateway-1.2.1/test/fakesmsc -p 13333 -m 2 -i 0.1 "123 456 text
> 010133889150832 test register"
>
> [EMAIL PROTECTED] sudo netstat -ep |grep 13333
> tcp        0      0 localhost.localdo:13333 localhost.localdo:32915
> ESTABLISHED root       129442     3984/bearerbox
> tcp        0      0 localhost.localdo:32915 localhost.localdo:13333
> ESTABLISHED me         129440     24652/fakesmsc
>
>
> of course anything is possible as you do have source code ...
>
> gwlib/conn.c:    sockfd =
> tcpip_connect_to_server_with_port(octstr_get_cstr(host), port,
> gwlib/conn.c-                  our_port, our_host == NULL ?
> gwlib/conn.c-                  NULL : octstr_get_cstr(our_host));
>
> gwlib/socket.c-int tcpip_connect_to_server(char *hostname, int port, const
> char *interface_name)
> gwlib/socket.c-{
> gwlib/socket.c:    return tcpip_connect_to_server_with_port(hostname,
> port, 0, interface_name);
> gwlib/socket.c-}
>
> gwlib/conn.c-Connection *conn_open_tcp(Octstr *host, int port, Octstr
> *our_host)
> gwlib/conn.c-{
> gwlib/conn.c:    return conn_open_tcp_with_port(host, port, 0, our_host);
> gwlib/conn.c-}
>
> it's 0 there too. local socket gets assigned free socket.
>
> be careful as conn.c connections will have multiple instances and be used
> in more
> than one place. So changing the 0 to your port would not work unless are
> sure it is the only instance called. You only want to change smpp port
> read man bind and man socket and all that stuff if you want to edit code
>
> you don't need to do this
>
> why do you want to?
>
> James.
>
> On Sun, Jul 11, 2004 at 12:08:43PM +0430, Amin Abbaspour wrote:
>> Hi,
>>
>> I set the below config, but kannel complaines that not 'host' is
>> specified. When I set 'host=<my-ip>', kannel tries to bind to it(and not
>> to LISTEN on that port!)
>>
>> Do you have the kannel LISTEN on receive-port with below config?
>>
>> Thanks
>>
>> > I have smsc accounts with tx/rx access but i use kannel only for rx
>> and
>> > use
>> > a self developed smpp gateway for tx.
>> >
>> > I set port=0 and receive-port=<port given by smsc admin>
>> >
>> > Here is a sample portion from a smskannel.conf:
>> > group = smsc
>> > smsc = smpp
>> > smsc-id = ThisSMSC
>> > port = 0
>> > receive-port = 1234
>> > smsc-username = "userid"
>> > smsc-password = "password"
>> >
>> > Regards,
>> >
>> > Ambar Roy
>> >
>> > One97 Communications (P) Ltd.
>> > 701-702, Arunachal Building,
>> > 19 Barakhamba Road,
>> > New Delhi - 110 001
>> >
>> > 98100-94479
>> > [EMAIL PROTECTED]
>> > ----- Original Message -----
>> > From: "Amin Abbaspour" <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Sent: Saturday, July 10, 2004 6:21 PM
>> > Subject: Kannel as SMPP receiver(again)
>> >
>> >
>> >> Hi all,
>> >>
>> >> This question seems to be asked several times, and as I searched the
>> >> list,
>> >> the answer is 'yes', but no where I can find a clear answer.
>> >>
>> >> My Question is:
>> >> If I wanna receive SMS from another SMSC(they do not support 'tr')
>> with
>> >> SMPP protocol, where should I define my port number and
>> user/password(In
>> >> my machine).
>> >>
>> >> I looked at the user guide's SMPP part, and noticed that
>> >> port/receiver-port are both about the other side SMPP, not my
>> machine.
>> >> for
>> >> example when I set my receive-port, kannel tries to bind to remote
>> host
>> >> in
>> >> that port.
>> >>
>> >> If this can be done, would you please exactly mention the place where
>> >> port
>> >> and username/password of my kannel box for SMPP can be set. are they
>> the
>> >> same as smsbox user/pass?
>> >>
>> >> Thanks in advance
>> >> Amin
>> >>
>> >>
>> >>
>> >>
>> >
>>
>
> --
> http://web.tiscali.it/cedric/
> Jacques Brel Show - june - ireland dublin, derry & callan
> italy, south africa
>
> http://www.thehelix.ie/2004_06_02_Jacques_Brel.html
> June Wed/Thur 2/3, Jacques Brel - Ced & Stella
>
> if your left hand is one key too much to left when typing you you get toy
> :)
>   (id toy rtpr likw mw rhR IA.)
>
> <jamesc> kathryn: you got bug 140/pin_mgr release email alright ?
> <kathryn> I did indeed.  Thanks.
> <jamesc> excellent lovely
> <jamesc> superlative even
> http://en.wikipedia.org/wiki/Haiku
> I'm guessing in japanese lovely ~= roberi => 3 morae
> superlative =~ supe-ratibo => 5 morae
> excellent =~ eh-kusule-nto =? 5/6
> even = e-ben- => 2 or 3?
>
> http://www.greenpeace.org/international_en/features/details?item_id=327510
> Greenpeace tree-huggers indicted by U.S..
> Brazilian mahogany barons curtailing free speech. Grrr,
>
>
> The following statement is false.
> The preceding statement is true.    - Douglas Hofstadter
>
> I, James row worse maji.
>
> http://www.bcoleman.com my brother Bill Coleman
> He's a bit good! Launching his debut CD right now.
>
>
> software patents (coming soon to an EU near you) bad for users, for
> developers
>  good for monopolistic innovation stifling big business
> http://swpat.ffii.org/
> beware entering overwhelming twisty maze of political legalese
>
> http://www.heavens-above.com/solar-escape.asp
>
> http://www.fsf.org/philosophy/no-word-attachments.html
>
>
> Give me CHOCOLATE! (fair trade chocolate)
> http://www.traidcraft.co.uk/ delivery uk only
> http://store.yahoo.com/fairtradeonline-uk/
> http://www.oneworldshop.co.uk/ scotland - delivery local only
> http://www.bafts.org.uk/buyingFairtrade/mailorderOnline.htm
> http://www.globalexchange.org/ http://store.globalexchange.org/ can't do
> food outside us
> http://fairtraderesource.org/
> http://www.fairtrade.net/sites/products/sportballs/why.html
> Rice, Bananas, Fresh Fruit, Juices,
> Coffee, Tea, Cocoa, Sugar, Honey
> Sports Balls, Wine, Flowers
>
>
> http://www.oxfam.ie/ http://www.oxfam.com/eng/
>
> http://www.beyondtourism.com./
>
> http://www.oxfam.ie/html/supportus/bringbring.html
>
>
> http://www.oxfam.com/eng/campaigns_camp_mtf.htm make trade fair
> http://www.fairolympics.org/en/index.htm
>


Reply via email to