Reading SMS port number | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through October 14, 2015 ⬆ |
◄ ► |
Author | Message | |||
khalid New member Username: Khalidh Post Number: 1 Registered: 03-2012 |
Hi, I have application which sending SMS message with specific port number .. The message received by NowSMS > How i can read on which port number the message received? Thanks & Best regards, | |||
khalid New member Username: Khalidh Post Number: 2 Registered: 03-2012 |
Just to confirm, i am receiving by SMPP | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 3826 Registered: 08-2008 |
Hi Khalid, I wish there was an easier way to do this, but the only way I can see is to include an @@UDH@@ variable in your 2-way command that processes the received message. And then parse the UDH value for destination port. Assuming there's no other UDH, it's going to have a value of either: 060504xxxxyyyy where xxxx is the source port and yyyy is the dest port or 040502yyyy where yyyy is the dest port Those port values are in hex. -- Des NowSMS Support | |||
ronakmehta New member Username: Ronak3 Post Number: 1 Registered: 11-2013 |
what is the port number of now sms | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4734 Registered: 08-2008 |
I'm sorry, but I don't understand the context of your question. This thread is discussing SMS port numbers, which are encoded in the UDH (user data header) of the message. This thread is a year and a half old, and since that time we have made enhancements to NowSMS to make it easier to read any port numbers associated with an SMS message. If source or destination port numbers are present in an SMS message, additional HTTP parameters (SourcePort= and DestPort=) will automatically be added to any 2-way commands or accounting callbacks. Since you are asking about the port number of NowSMS, I suspect your question has nothing to do with the other messages in this thread. NowSMS listens for connections on whatever TCP/IP port numbers you configure it to listen on. By default NowSMS listens for web (HTTP) connections on port 8800 ... but you can choose any available port number ... see http://www.nowsms.com/doc/system-settings/configuring-the-web-interface-and-smpp -server If NowSMS is accepting SMPP connections, that port number is configured in the same general area. If NowSMS is being used as an MMSC, the port number that the MMSC accepts connections from MMS clients on mobile phones is configured here: http://www.nowsms.com/doc/mmsc-messaging-server/configuring-the-mmsc All that said, I'm going to guess that your question is about configuring an SMSC connection so that NowSMS can send SMS messages. Any host name or port number is dependent on whatever SMS service provider you use. There are no general free settings. NowSMS is a middleware solution ... you need a GSM modem or an account with an SMS service provider before you can send any messages. -- Des NowSMS Support |