Hello, finally I think I solved...
I assigned inside gw/smsc/smsc_smpp.c on function handle_pdu the var
msg.sms->foreign_id in this way:
Inside "case submit_sm_resp" there are a tmp var with this data:
tmp = octstr_duplicate(pdu->u.submit_sm_resp.message_id)
so, I added on next line:
msg->sms
Hi, Alex, I tried that but I couldn't get the id, I called:
debug(0, "test message_id: %d", msg->sms.foreign_id);
and allways get "test message_id: 0"
Just for you know, If I do:
debug(0, "test message_id: %d", msg->sms.dlr_url);
I get the Id correctly.
2011/1/19 Alejandro Guerrieri
> Co
Command status, it's not available directly, but it'll affect the DLR
outcome (if it's not 0, it's an error and you'll get a NACK instead of an
ACK). On the SVN code you get the smpp "dlr_err" optional parameter as well.
message_id, it's the %F "foreign_id" parameter.
Regards,
Alex
On Wed, Jan
Hello, I'm trying to obtain from submit_sm_resp the highlighted data from C
code of gwlib.
command_id: 2147483652 = 0x8004
command_status: 0 = 0x
sequence_number: 7 = 0x0007
message_id: "2B23AF36"
I know that exist the Msg structure, but I could't find on the web the field
names f