Minor updates to mmsmobilsender to allow for dumping Ind. PDU
This commit is contained in:
parent
da666bfcd3
commit
ccaab590bc
|
@ -102,7 +102,10 @@ static void start_push(Octstr *rcpt_to, int isphonenum, MmsEnvelope *e, MmsMsg *
|
|||
|
||||
octstr_url_encode(to);
|
||||
octstr_url_encode(s);
|
||||
|
||||
#if 0
|
||||
octstr_dump(pduhdr, 0);
|
||||
#endif
|
||||
|
||||
octstr_url_encode(pduhdr);
|
||||
|
||||
url = octstr_format("%S&text=%S%S&to=%S&udh=%%06%%05%%04%%0B%%84%%23%%F0",
|
||||
|
@ -124,6 +127,9 @@ static void start_push(Octstr *rcpt_to, int isphonenum, MmsEnvelope *e, MmsMsg *
|
|||
if (sock > 0) {
|
||||
MmsEnvelopeTo *xto = list_get(e->to,0);
|
||||
octstr_append(pduhdr, s);
|
||||
#if 0
|
||||
octstr_dump(pduhdr, 0);
|
||||
#endif
|
||||
udp_sendto(sock, pduhdr, addr);
|
||||
close(sock); /* ?? */
|
||||
mms_log2("Notify", octstr_imm("system"), to,
|
||||
|
|
Loading…
Reference in New Issue