Re: [Users] malformed MMS packet on Interface -- receiving MMS using GPRS Modem

2010-05-27 Thread Michel TOKO
Hi can somebody help me sorting this installation problem out ?

On 28 May 2010 02:49, Michel TOKO  wrote:

> Hi all,
>
> Thanks to give life to Mbuni and to maintain it.
>
>
> hussain, have you solve your problem now ? can you please tell me what OS
> are you using ??
> I'd successfully install mbuni on CentOS 5.3 but since 3 days ago i've been
> trying to install it (CVS version) on CentOS 5.5. Am getting the error below
> and Libmmsbox_mm1.so is not installed.
>
> Making all in extras
> make[2]: Entering directory `/usr/src/MMS/mbuni/extras'
> Making all in mmsbox-mm1
> make[3]: Entering directory `/usr/src/MMS/mbuni/extras/mmsbox-mm1'
> /bin/sh ../../libtool --tag=CC --mode=link gcc  -g -O2 -D_XOPEN_SOURCE=600
> -D_BSD_SOURCE -O4 -Wall -D_LARGE_FILES= -I/usr/include/openssl
> -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
> -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl  -rdynamic
> -L/usr/local/lib/kannel -lgw -lwap -lgwlib -lssl -lrt -lresolv -lnsl -lm
> -lpthread -lxml2 -lz -lm -L/usr/lib64 -lcrypto -lssl -o 
> libmmsbox_mm1.la-rpath /usr/local/lib -module mmsbox_mm1.lo  -lwap -lgwlib 
> -lssl -lpthread
> -ldl  -L/usr/lib -lcrypto -lssl -L/usr/local/lib/kannel -lgw -lwap -lgwlib
> -lssl -lrt -lresolv -lnsl -lm  -lpthread -lxml2 -lz -lm -L/usr/lib64
> -lcrypto -lssl -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5
> -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
> gcc -shared  .libs/mmsbox_mm1.o  -L/usr/local/lib/kannel -L/usr/lib64
> -L/usr/lib -lgw -lwap -lgwlib -lrt -lresolv -lnsl -lpthread -lxml2 -lm
> -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
> -lidn -lssl -lcrypto -lz  -Wl,-soname -Wl,libmmsbox_mm1.so.0 -o
> .libs/libmmsbox_mm1.so.0.0.0
> /usr/bin/ld: /usr/local/lib/kannel/libgwlib.a(gwmem-native.o): relocation
> R_X86_64_32 against `a local symbol' can not be used when making a shared
> object; recompile with -fPIC
> /usr/local/lib/kannel/libgwlib.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[3]: *** [libmmsbox_mm1.la] Error 1
> make[3]: Leaving directory `/usr/src/MMS/mbuni/extras/mmsbox-mm1'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/src/MMS/mbuni/extras'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/MMS/mbuni'
> make: *** [all] Error 2
>
> Can somebody help me sort this error out ?
>
> Regards
>
> On 15 April 2010 11:21, aftab hussain  wrote:
>
>> Dear all,
>>  I am stuck in a problem. I want to receive MMS using GPRS
>> modem from operator's MMSC. When I send MMS from my mobile phone, kannel
>> receives notification sms from operator's MMSC and it passes the
>> notification to MMSBOX on the specified port. But in response I get error:
>>
>> 'Could not fetch content, sorry.' url: '
>> http://localhost:8181/?text=You+have+an+MMS+message+waiting+for+you.--%3E+Passcode+x9jrtg+http%3A%2F%2Fmmcp.warid.net%3A8080%2Fmmcp%2FController%3Furl%3D%26p%3Dx9jrtg'
>> reply: 403 'mmsbox-mm1: mal-formed mms packet on interface!'
>>
>> My MMSBox.config is given below.
>>
>> group = core
>> log-file = mmsbox.log
>> access-log = mmsbox-access.log
>> log-level = 0
>>
>> group = mbuni
>> storage-directory = /mms
>> max-send-threads = 5
>> maximum-send-attempts = 50
>> default-message-expiry = 36
>> queue-run-interval = 5
>> send-attempt-back-off = 300
>> sendmms-port = 10001
>>
>> group = mmsc
>> id = modem
>> type = custom
>> custom-settings = "smsc-on=lynx -dump '
>> http://localhost:13000/start-smsc?password=bar&smsc=wavecom';smsc-off=lynx-dump
>>  '
>> http://localhost:13000/stop-smsc?password=bar&smsc=wavecom';gprs-on=pppd
>>  call gprs;gprs-pid=cat /var/run/ppp0.pid|head -1;port=8181;mmsc-url=
>> http://10.4.0.132/servlets/MMS;proxy=10.4.2.1:8080;msisdn=+923225046352";
>> mmsc-library = /usr/local/lib/libmmsbox_mm1.so
>>
>> group = mms-service
>> name = me
>> post-url = http://10.3.20.120/mmsrecv.php
>> catch-all = true
>> http-post-parameters = fx=true&images[]=%i&text[]=%t
>> accept-x-mbuni-headers = true
>> pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
>> keyword = test
>> omit-empty = no
>> service-code = regular
>>
>> group = send-mms-user
>> username = tester
>> password = foobar
>> faked-sender = 100
>>
>> Some of the contents of smsbox log is also given below.
>>
>> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(nop)[ ]*
>> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(hi)[ ]*
>> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(srv)[ ]*
>> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[
>> ]*(add|soap|disease|dis)[ ]*
>> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(mms)[ ]*
>> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(ota)[ ]*
>> 2010-04-14 15:16:01 [9955] [6] IN

Re: [Users] malformed MMS packet on Interface -- receiving MMS using GPRS Modem

2010-05-27 Thread Michel TOKO
Hi all,

Thanks to give life to Mbuni and to maintain it.


hussain, have you solve your problem now ? can you please tell me what OS
are you using ??
I'd successfully install mbuni on CentOS 5.3 but since 3 days ago i've been
trying to install it (CVS version) on CentOS 5.5. Am getting the error below
and Libmmsbox_mm1.so is not installed.

Making all in extras
make[2]: Entering directory `/usr/src/MMS/mbuni/extras'
Making all in mmsbox-mm1
make[3]: Entering directory `/usr/src/MMS/mbuni/extras/mmsbox-mm1'
/bin/sh ../../libtool --tag=CC --mode=link gcc  -g -O2 -D_XOPEN_SOURCE=600
-D_BSD_SOURCE -O4 -Wall -D_LARGE_FILES= -I/usr/include/openssl
-I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl  -rdynamic
-L/usr/local/lib/kannel -lgw -lwap -lgwlib -lssl -lrt -lresolv -lnsl -lm
-lpthread -lxml2 -lz -lm -L/usr/lib64 -lcrypto -lssl -o
libmmsbox_mm1.la-rpath /usr/local/lib -module mmsbox_mm1.lo  -lwap
-lgwlib -lssl -lpthread
-ldl  -L/usr/lib -lcrypto -lssl -L/usr/local/lib/kannel -lgw -lwap -lgwlib
-lssl -lrt -lresolv -lnsl -lm  -lpthread -lxml2 -lz -lm -L/usr/lib64
-lcrypto -lssl -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5
-lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
gcc -shared  .libs/mmsbox_mm1.o  -L/usr/local/lib/kannel -L/usr/lib64
-L/usr/lib -lgw -lwap -lgwlib -lrt -lresolv -lnsl -lpthread -lxml2 -lm
-L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
-lidn -lssl -lcrypto -lz  -Wl,-soname -Wl,libmmsbox_mm1.so.0 -o
.libs/libmmsbox_mm1.so.0.0.0
/usr/bin/ld: /usr/local/lib/kannel/libgwlib.a(gwmem-native.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
/usr/local/lib/kannel/libgwlib.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libmmsbox_mm1.la] Error 1
make[3]: Leaving directory `/usr/src/MMS/mbuni/extras/mmsbox-mm1'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/MMS/mbuni/extras'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/MMS/mbuni'
make: *** [all] Error 2

Can somebody help me sort this error out ?

Regards

On 15 April 2010 11:21, aftab hussain  wrote:

> Dear all,
>  I am stuck in a problem. I want to receive MMS using GPRS
> modem from operator's MMSC. When I send MMS from my mobile phone, kannel
> receives notification sms from operator's MMSC and it passes the
> notification to MMSBOX on the specified port. But in response I get error:
>
> 'Could not fetch content, sorry.' url: '
> http://localhost:8181/?text=You+have+an+MMS+message+waiting+for+you.--%3E+Passcode+x9jrtg+http%3A%2F%2Fmmcp.warid.net%3A8080%2Fmmcp%2FController%3Furl%3D%26p%3Dx9jrtg'
> reply: 403 'mmsbox-mm1: mal-formed mms packet on interface!'
>
> My MMSBox.config is given below.
>
> group = core
> log-file = mmsbox.log
> access-log = mmsbox-access.log
> log-level = 0
>
> group = mbuni
> storage-directory = /mms
> max-send-threads = 5
> maximum-send-attempts = 50
> default-message-expiry = 36
> queue-run-interval = 5
> send-attempt-back-off = 300
> sendmms-port = 10001
>
> group = mmsc
> id = modem
> type = custom
> custom-settings = "smsc-on=lynx -dump '
> http://localhost:13000/start-smsc?password=bar&smsc=wavecom';smsc-off=lynx-dump
>  '
> http://localhost:13000/stop-smsc?password=bar&smsc=wavecom';gprs-on=pppd
>  call gprs;gprs-pid=cat /var/run/ppp0.pid|head -1;port=8181;mmsc-url=
> http://10.4.0.132/servlets/MMS;proxy=10.4.2.1:8080;msisdn=+923225046352";
> mmsc-library = /usr/local/lib/libmmsbox_mm1.so
>
> group = mms-service
> name = me
> post-url = http://10.3.20.120/mmsrecv.php
> catch-all = true
> http-post-parameters = fx=true&images[]=%i&text[]=%t
> accept-x-mbuni-headers = true
> pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
> keyword = test
> omit-empty = no
> service-code = regular
>
> group = send-mms-user
> username = tester
> password = foobar
> faked-sender = 100
>
> Some of the contents of smsbox log is also given below.
>
> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(nop)[ ]*
> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(hi)[ ]*
> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(srv)[ ]*
> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[
> ]*(add|soap|disease|dis)[ ]*
> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(mms)[ ]*
> 2010-04-14 15:16:01 [9955] [6] DEBUG: no match found: ^[ ]*(ota)[ ]*
> 2010-04-14 15:16:01 [9955] [6] INFO: Starting to service  message waiting for you.--> Passcode s347dx
> http://mmcp.warid.net:8080/mmcp/Controller?url=&p=s347dx> from
> <+923225046338> to <00923225046352>
> 2010-04-14 15:16:01 [9955] [2] DEBUG: Queue contains 0 pending requests.
> 2010-04-14 15:16:0