smpp_sm:destination_port/1 not working ?

2010-11-10
2013-05-21
  • Arsénio Costa

    Arsénio Costa - 2010-11-10

    I can't seem to get the smpp_sm:destination_port to working, im currently connected to a smsc simulator configured to route back to my ESME all the pdu's submitted (SMPPSIM).

    I've created a binary message and sent it, i can check that it is correct by looking at the smpp data in wireshark,
    this is a non concatenated message, so what i get back in my ESME is the following PDU.
    {5,0,55,
    [{short_message,[6,5,4,23,112,19,136,47,47,79,108,97,115,
                      115,115,115,115,115,115,115,115,115|…]},
      {sm_default_msg_id,0},
      {data_coding,245},
      {replace_if_present_flag,0},
      {registered_delivery,0},
      {validity_period,},
      {schedule_delivery_time,},
      {priority_flag,0},
      {protocol_id,0},
      {esm_class,64},
      {destination_addr,"351913768304"},
      {dest_addr_npi,1},
      {dest_addr_ton,1},
      {source_addr,"99922"},
      {source_addr_npi,1},
      {source_addr_ton,5},
      {service_type,}]}

    And when i try to get a destination or source port i get the error: ** exception error: no function clause matching smpp_sm:ie(4,,1)

    Does the utility function  smpp_sm:originator_port, takes in consideration that the udh is not only used for concatenation but also for port addressing  as refered in http://www.3gpp.org/ftp/Specs/archive/23_series/23.040/23040-100.zip page 60 ?

    If so, what am i doing wrong ?

    Regards,
    Arsenio Costa

     
  • Arsénio Costa

    Arsénio Costa - 2010-11-10

    Forgot to mention that to build the Pdu im building the Pdu body params list using the smpp_sm:port_addressing_16 bits

    like:
    smpp_sm:port_addressing_16(, DestPort, SourcePort),

    Also i've connected to a smsc gateway (nowsms) which is connect to some gsm modens, and verified that the message is sent and recieved on my phone application, just need to solve this problem to have both directions working (submit_sm, deliver_sm :p) 

    Regards,
    Arsénio Costa

     

Log in to post a comment.