Disclaimer: These archives are mirrored from smsforum.net in 2007 before the forum got closed. Please only part of the forum is available here.
For any clarifications regarding these archives you can contact us at http://www.telecomspace.com/contact.

      TELECOMSPACE HOME PAGE         TELECOM DISCUSSION FORUM          CONTACT

+  SMS Forum Online Discussion
|-+  APIs
| |-+  OpenSMPP API (aka Logica SMPP API)
| | |-+  missing information about receiver and sender address
« previous next »
Pages: [1] Go Down Print
Author Topic: missing information about receiver and sender address  (Read 99 times)
bingo
Newbie
*
Offline Offline

Posts: 3


« on: August 03, 2007, 13:04:59 UTC »

Hi all,
I use smsc simulator from opensmpp.logica.com . But when I send message to client it's missing information about receiver and sender address like this :

1: i run  the smsc simulator  as the smsc
2: bind as receiver to the smsc
3: deliver sm to my application(which bind as receiver to the smsc)
- 1 start simulation
- 2 stop simulation
- 3 list clients
- 4 send message
- 5 list messages
- 6 reload users file
- 7 log to screen off
- 0 exit
> 4
123
Type the message> 12345
08:34:13 [123] server request: (deliver: (pdu: 0 5 0 [6]) (addr: 0 0 )  (addr: 0
 0 )  (sm: enc: ASCII msg: 12345)  (opt: ) )
Message sent.

How can I put the number receiver and sender and the client see them  ?

Please help me
« Last Edit: August 03, 2007, 16:13:17 UTC by bingo » Logged
abhiksarkar
Sr. Member
****
Offline Offline

Posts: 59



« Reply #1 on: August 03, 2007, 16:05:37 UTC »

If you look into the code of the smsc simulator, you will find that the address fields are not populated in the deliver_sm. If you want to have this functionality, you will have to modify the code yourself, to ask you for the source and destination address fields along with the message text.

Best regards,
Abhik
Logged
bingo
Newbie
*
Offline Offline

Posts: 3


« Reply #2 on: August 03, 2007, 16:27:19 UTC »

hi abhiksarkar,

Can you tell me exactly where I have to change this get receiver and sender address , please?

Thanks in advance
Logged
abhiksarkar
Sr. Member
****
Offline Offline

Posts: 59



« Reply #3 on: August 03, 2007, 21:03:59 UTC »

In the sendMessage() method of org.smpp.smscsim.Simulator in the following part, you will have to add lines to read in the source and destination addresses (and the TON and NPI values if you want).


Code:
if (proc.isActive()) {
  System.out.print("Type the message> ");
  String message = keyboard.readLine();
  DeliverSM request = new DeliverSM();
  ...

Good luck
Abhik
Logged
bingo
Newbie
*
Offline Offline

Posts: 3


« Reply #4 on: August 04, 2007, 07:43:35 UTC »

Thank abhiksarkar, I did it.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length