Re: [PATCH] dlr_mem.c & dlr_sdb.c check for dst
"Robert Galach" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
> no, You have't got a point... We need original destination, because it will be > copied into dlr message that going to the user back... So the user should > always get "right" destination number back (means destination that was > supplied by him). > How want you normalize number if you have loss a original number? > Just as example: > sent: +49123456789 > dlr-store: 123456789 > dlr-find: WHERE dst='123456789' > dlr-msg: ???? how to normalize ??? +49123456789 or +44123456789 Right, I see that without config-file changes it will not work. But, the the magic You proposed will also fail in similar case. If operator sends full number with country code in dlr. There are country codes with the same last digit of country code, so possible is, eg: sent: +49123456789 dlr-store: 49123456789 dlr-find: WHERE dst like '9123456789' and again what is the number: +49123456789 or other +x9123456789 ? more: some countries have three-digit code, it may happen that 2 last digits are the same too. so maybe it is worth to add another config directive? Regards Robert