Hi, When I tried to receive an MMS via MM4 interface, I got the following error:
ERROR: mmsfromemail.c:247 <main> [MM4] [n/a] Not allowed to send to non-phone recipient, to=+GSM_NUMBER/type=plmn! After some debugging, I found that the cause of this error was the lower case form of the recipient type "type=plmn". Here is the relevant part from the patch. --- mmsfromemail.c 2012-01-11 14:56:14.841996004 +0200 +++ mbuni-1.5.0-orig/mmsc//mmsfromemail.c 2011-06-25 10:35:37.781028999 +0300 @@ -547,14 +542,14 @@ } else *host = octstr_create("localhost"); - i = octstr_case_search(xto, octstr_imm("/TYPE="), 0); + i = octstr_search(xto, octstr_imm("/TYPE="), 0); if (i > 0) { typ = octstr_copy(xto, i+1, octstr_len(xto)); octstr_delete(xto, i, octstr_len(xto)); } /* XXX may be we should use fixup function in mmlib/mms_util.c ?? */ if (isphonenum(xto) && - (!typ || octstr_str_case_compare(typ, "TYPE=PLMN") == 0)) { /* A phone number. */ + (!typ || octstr_str_compare(typ, "TYPE=PLMN") == 0)) { /* A phone number. */ #if 0 normalize_number(octstr_get_cstr(settings->unified_prefix), &xto); #else I am using postfix with maildrop to receive the email which calls the mmsfromemail to process it. It seems that postfix or maildrop converted the complete email address to lower case before forwarding the email to mmsfromemail. I am providing this so that someone may face such trouble in the future. Hope it helps :)
_______________________________________________ Devel mailing list Devel@mbuni.org http://lists.mbuni.org/mailman/listinfo/devel