Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

wap push

Help
2005-03-02
2013-05-21
  • Hi,
    I am using your library to connect to an smsc to send a wap push, but when I put the flag esm_class=16#40, thats for including the "user data header", there is an error and the msg is not sent, if i send the message with the esm_class=0, the phone doesnt detect that the msg is a wap push. The error is this:

    2>  my_esme:submit_sm("0046762387382", wappush:generate_mms_notification()).
    ok
    3>
    =ERROR REPORT==== 2-Mar-2005::14:34:20 ===
    ** State machine <0.33.0> terminating
    ** Last message in was {'$gen_sync_event',
                               {<0.38.0>,#Ref<0.0.0.45>},
                               {4,
                                [{service_type,"WAP"},
                                 {source_addr,"1950"},
                                 {destination_addr,"0046762034423"},
                                 {replace_if_present_flag,0},
                                 {short_message,
                                     [6,
                                      5,
                                      4,
                                      11,
                                      132,
                                    .....
                                      57,
                    ]},
                                 {schedule_delivery_time,"040207105523000+"},
                                 {validity_period,"040207105523000+"},
                                 {esm_class,64},
                                 {protocol_id,0},
                                 {priority_flag,0},
                                 {registered_delivery,0},
                                 {data_coding,245},
                                 {sm_default_msg_id,0}]}}
    ** When State == bound_tx
    **      Data  == {state,<0.32.0>,
                            gen_esme,
                            1,
                            #Port<0.89>,
                            13,
                            0,
                            undefined,
                            180000,
                            undefined,
                            60000,
                            undefined,
                            infinity,
                            <0.36.0>,
                            60000}
    ** Reason for termination =
    ** {error,67}
    I really cant find whats the problem.
    Thanks for the attention,
    Sergio