[Users] Problems with smil text elements and Unicode

2012-07-13 Thread HARLOW Peter
After getting my setup mostly working I had one annoying problem - non - ascii 
characters in text files (e. g. '£')  referenced by the smil file were not 
displaying correctly on the phone.

My application was writing the text to text files in a directory of an Apache 
web server. The smil file referenced the text file via http.

I checked my application was writing valid UTF-8 text files.

The problem appears to be that the web server is just serving the files as 
'Content-Type: text/plain'.

Adding an .htaccess file to the appropriate directory on the web server to 
serve the text files as 'Content-Type: text/plain; charset=UTF-8' appears to 
have fixed the problem.

[@@THALES GROUP RESTRICTED@@]

___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


Re: [Users] Connection to MMSC fails - MM1

2012-07-12 Thread HARLOW Peter
Further poking reveals that mbuni is trying to connect before the link is 
properly established and routing set up.

Using a 'fiddle' lockfile invoked by ip-up as described in :

http://www.mail-archive.com/users@mbuni.org/msg02098.html

(also need to remove it in ip-down)

and putting 'nodetach' in the pppd peers file vastly improves things.


[@@THALES GROUP RESTRICTED@@]

De : users-boun...@mbuni.org [mailto:users-boun...@mbuni.org] De la part de 
HARLOW Peter
Envoyé : 04 July 2012 15:29
À : users@mbuni.org
Objet : Re: [Users] Connection to MMSC fails - MM1

De : users-boun...@mbuni.org [mailto:users-boun...@mbuni.org] De la part de 
HARLOW Peter
Envoyé : 04 July 2012 13:53
À : users@mbuni.org
Objet : Re: [Users] Connection to MMSC fails - MM1

 On further investigation this appears to be a local routing problem - I think 
 the data for http://mms.bouyguestelecom.fr/mms/wapenc is going through 
 eth0http://mms.bouyguestelecom.fr/mms/wapenc%20is%20going%20through%20eth0, 
 not ppp0.

On turning off eth0, the problem now shifts to reaching the network. Starting 
the network with pon and then accessing the mmsc with a web browser with the 
proxy set appropriately works.

Mbuni frequently, but not always, fails to connect.

2012-07-04 15:16:37 [3118] [5] DEBUG: WSP: Mapping `Content-ID', WSP 1.3 to 
0x0040.
2012-07-04 15:16:37 [3118] [5] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 
0x0011.
2012-07-04 15:16:37 [3118] [5] ERROR: mmsbox_mm1.c:681 fetch_content 
[mmsbox-mm1] [n/a] failed to fetch/post content to host 
http://mms.bouyguestelecom.fr/mms/wapenc [proxy: 62.201.129.226:8080] 
[http_status=7] : Failed to connect to 62.201.129.226: Network is unreachable
2012-07-04 15:16:38 [3118] [5] DEBUG: Octet string at 0x112ad4f8:
2012-07-04 15:16:38 [3118] [5] DEBUG:   len:  0
2012-07-04 15:16:38 [3118] [5] DEBUG:   size: 0
2012-07-04 15:16:38 [3118] [5] DEBUG:   immutable: 0
___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


[Users] Connection to MMSC fails - MM1

2012-07-04 Thread HARLOW Peter
Hello,

I have a partially working mmsbox setup. I am trying to send MMS messages via a 
mobile phone using the 'custom' mmsc type in mbuni.

Occasionally, it works. Mostly, however, the connection to the service provider 
mmsc fails.

Any ideas gratefully received.

Regards,

Pete.


   SMSC `nokiaphone' shut down


arg 0: pon
arg 1: gprs
2012-07-04 10:23:39 [3432] [5] INFO: mmsbox_mm1.c:391 handle_mm1 [mmsbox-mm1] 
[n/a] start_gprs returned PID: 21670
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping 
`application/vnd.wap.multipart.related', WSP 1.2 to 0x0033.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `type', WSP 1.2 to 0x0009.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `start', WSP 1.2 to 0x000a.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `image/jpeg', WSP 1.2 to 
0x001e.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `Content-ID', WSP 1.3 to 
0x0040.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `Content-Location', WSP 1.3 
to 0x000e.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 
0x0011.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 
0x0003.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-ID', WSP 1.3 to 
0x0040.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-Location', WSP 1.3 
to 0x000e.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 
0x0011.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `application/smil', WSP 1.2 
to 0x.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-ID', WSP 1.3 to 
0x0040.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 
0x0011.
2012-07-04 10:24:20 [3432] [5] ERROR: mmsbox_mm1.c:681 fetch_content 
[mmsbox-mm1] [n/a] failed to fetch/post content to host 
http://mms.bouyguestelecom.fr/mms/wapenc [proxy: 62.201.137.017:8080] 
[http_status=28] : connect() timed out!
2012-07-04 10:24:20 [3432] [5] DEBUG: Octet string at 0x11b042f0:
2012-07-04 10:24:20 [3432] [5] DEBUG:   len:  0
2012-07-04 10:24:20 [3432] [5] DEBUG:   size: 0
2012-07-04 10:24:20 [3432] [5] DEBUG:   immutable: 0
2012-07-04 10:24:20 [3432] [5] DEBUG: Octet string dump ends.
2012-07-04 10:24:20 [3432] [5] ERROR: mmsbox_mm1.c:519 handle_mm1 
[mmsbox-mm1] [n/a] Sending failed: (none), (none)!
2012-07-04 10:24:20 [3432] [22] INFO: mmsbox_mm1.c:352 send_msg [mmsbox-mm1] 
[n/a] sent message, type=m-send-req, result=(none)
2012-07-04 10:24:20 [3432] [22] INFO: bearerbox.c:1652 process_send_res [MM7] 
[n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to 
0668288316/TYPE=PLMN, msgsize=7511: msgid=[N/A]
2012-07-04 10:24:22 [3432] [5] INFO: mmsbox_mm1.c:566 handle_mm1 [mmsbox-mm1] 
[n/a] GPRS turned off returned: 0
   SMSC `nokiaphone' re-started


[@@THALES GROUP RESTRICTED@@]

___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


Re: [Users] Connection to MMSC fails - MM1

2012-07-04 Thread HARLOW Peter
On further investigation this appears to be a local routing problem - I think 
the data for http://mms.bouyguestelecom.fr/mms/wapenc is going through 
eth0http://mms.bouyguestelecom.fr/mms/wapenc%20is%20going%20through%20eth0, 
not ppp0.

[@@THALES GROUP RESTRICTED@@]

De : users-boun...@mbuni.org [mailto:users-boun...@mbuni.org] De la part de 
HARLOW Peter
Envoyé : 04 July 2012 10:58
À : users@mbuni.org
Objet : [Users] Connection to MMSC fails - MM1

Hello,

I have a partially working mmsbox setup. I am trying to send MMS messages via a 
mobile phone using the 'custom' mmsc type in mbuni.

Occasionally, it works. Mostly, however, the connection to the service provider 
mmsc fails.

Any ideas gratefully received.

Regards,

Pete.


   SMSC `nokiaphone' shut down


arg 0: pon
arg 1: gprs
2012-07-04 10:23:39 [3432] [5] INFO: mmsbox_mm1.c:391 handle_mm1 [mmsbox-mm1] 
[n/a] start_gprs returned PID: 21670
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping 
`application/vnd.wap.multipart.related', WSP 1.2 to 0x0033.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `type', WSP 1.2 to 0x0009.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `start', WSP 1.2 to 0x000a.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `image/jpeg', WSP 1.2 to 
0x001e.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `Content-ID', WSP 1.3 to 
0x0040.
2012-07-04 10:23:39 [3432] [5] DEBUG: WSP: Mapping `Content-Location', WSP 1.3 
to 0x000e.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 
0x0011.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 
0x0003.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-ID', WSP 1.3 to 
0x0040.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-Location', WSP 1.3 
to 0x000e.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 
0x0011.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `application/smil', WSP 1.2 
to 0x.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-ID', WSP 1.3 to 
0x0040.
2012-07-04 10:23:40 [3432] [5] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 
0x0011.
2012-07-04 10:24:20 [3432] [5] ERROR: mmsbox_mm1.c:681 fetch_content 
[mmsbox-mm1] [n/a] failed to fetch/post content to host 
http://mms.bouyguestelecom.fr/mms/wapenc [proxy: 62.201.137.017:8080] 
[http_status=28] : connect() timed out!
2012-07-04 10:24:20 [3432] [5] DEBUG: Octet string at 0x11b042f0:
2012-07-04 10:24:20 [3432] [5] DEBUG:   len:  0
2012-07-04 10:24:20 [3432] [5] DEBUG:   size: 0
2012-07-04 10:24:20 [3432] [5] DEBUG:   immutable: 0
2012-07-04 10:24:20 [3432] [5] DEBUG: Octet string dump ends.
2012-07-04 10:24:20 [3432] [5] ERROR: mmsbox_mm1.c:519 handle_mm1 
[mmsbox-mm1] [n/a] Sending failed: (none), (none)!
2012-07-04 10:24:20 [3432] [22] INFO: mmsbox_mm1.c:352 send_msg [mmsbox-mm1] 
[n/a] sent message, type=m-send-req, result=(none)
2012-07-04 10:24:20 [3432] [22] INFO: bearerbox.c:1652 process_send_res [MM7] 
[n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to 
0668288316/TYPE=PLMN, msgsize=7511: msgid=[N/A]
2012-07-04 10:24:22 [3432] [5] INFO: mmsbox_mm1.c:566 handle_mm1 [mmsbox-mm1] 
[n/a] GPRS turned off returned: 0
   SMSC `nokiaphone' re-started


[@@THALES GROUP RESTRICTED@@]

___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


Re: [Users] Starting mbuni mmsbox

2012-06-29 Thread HARLOW Peter
De : Paul Bagyenda [mailto:bagye...@dsmagic.com]
Envoyé : 29 June 2012 09:17
À : HARLOW Peter
Cc : users@mbuni.org
Objet : Re: [Users] Starting mbuni mmsbox

What version of gcc do you have? Works perfectly fine on my SuSE 12.1

pete@cloudserver:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 
4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object 
--enable-plugin --enable-objc-gc --enable-targets=all --disable-werror 
--with-arch-32=i686 --with-tune=generic --enable-checking=release 
--build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

I also tried a 'proper' root account rather than sudo - no difference.

Regards,

Pete.



___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


Re: [Users] Starting mbuni mmsbox

2012-06-29 Thread HARLOW Peter
De : Paul Bagyenda [mailto:bagye...@dsmagic.com]
Envoyé : 29 June 2012 09:40
À : HARLOW Peter
Objet : Re: [Users] Starting mbuni mmsbox

I don't have Ubuntu. Would you be able to run this in gdb and give me a 
backtrace just after the segfault? I am sure we can track this down.


pete@cloudserver:~$ gdb /usr/local/bin/mmsbox
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-linux-gnu.
For bug reporting instructions, please see:
http://bugs.launchpad.net/gdb-linaro/...
Reading symbols from /usr/local/bin/mmsbox...done.
(gdb) run /var/www/mms/confmbuni/mmsbox.conf
Starting program: /usr/local/bin/mmsbox /var/www/mms/confmbuni/mmsbox.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/i386-linux-gnu/libthread_db.so.1.
Running
in mms_lib_init()
Init random
Init gwlib
Init strings
In mms_strings_init

Program received signal SIGSEGV, Segmentation fault.
0xb7f0a8ab in octstr_imm (cstr=0xb7e15f25 image/jpeg) at gwlib/octstr.c:295
295 if (immutables[i] == NULL || immutables[i]-data == data)
(gdb) bt
#0  0xb7f0a8ab in octstr_imm (cstr=0xb7e15f25 image/jpeg) at 
gwlib/octstr.c:295
#1  0xb7de9c98 in construct_linear_table (table=0xb7e35e8c, strings=optimized 
out, size=83) at wap/wsp_strings.c:237
#2  0xb7dea630 in wsp_strings_init () at wap/wsp_strings.def:192
#3  0xb7dcd692 in mms_strings_init () at mms_strings.c:219
#4  0xb7dd2645 in mms_lib_init () at mms_util.c:241
#5  0x0804e103 in main (argc=2, argv=0xb2b4) at mmsbox.c:543
(gdb)



On Jun 29, 2012, at 09:25, HARLOW Peter wrote:


De : Paul Bagyenda [mailto:bagye...@dsmagic.com]
Envoyé : 29 June 2012 09:17
À : HARLOW Peter
Cc : users@mbuni.orgmailto:users@mbuni.org
Objet : Re: [Users] Starting mbuni mmsbox

What version of gcc do you have? Works perfectly fine on my SuSE 12.1

pete@cloudserver:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 
4.6.3-1ubuntu5' 
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugsfile:///\\usr\share\doc\gcc-4.6\README.Bugs
 --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object 
--enable-plugin --enable-objc-gc --enable-targets=all --disable-werror 
--with-arch-32=i686 --with-tune=generic --enable-checking=release 
--build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

I also tried a 'proper' root account rather than sudo - no difference.

Regards,

Pete.




___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


Re: [Users] Starting mbuni mmsbox

2012-06-28 Thread HARLOW Peter
Further to my post yesterday I have poked around a bit and it seems mmsbox 
segfaults on calling wsp_strings_init().

Is this a library problem?

Regards,


De : users-boun...@mbuni.org [mailto:users-boun...@mbuni.org] De la part de 
HARLOW Peter
Envoyé : 27 June 2012 11:15
À : users@mbuni.org
Objet : [Users] Starting mbuni mmsbox

I have been trying to use mmsbox on a PC running Kubuntu.

I have Kannel installed and operating.

On starting mmsbox, it just returns (unless I start it non - root, when it 
segfaults).

There is no output.

I have tried Kannel from the Ububtu repository, and compiling from source, the 
same for cURL.

I have tried the latest Mbuni, and also the cvs version.

I have tried with and without configuration files, and command line switches.

I have disabled seLinux.

What is the obvious thing I am doing wrong?

Regards,
___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


Re: [Users] Starting mbuni mmsbox

2012-06-28 Thread HARLOW Peter

I have installed Kannel gateway-1.4.3 from sources.

This is the same version as the earlier install I had from Ubuntu repositories.

Regards,

Pete.


[@@THALES GROUP RESTRICTED@@]

De : Paul Bagyenda [mailto:bagye...@dsmagic.com]
Envoyé : 28 June 2012 15:19
À : HARLOW Peter
Cc : users@mbuni.org
Objet : Re: [Users] Starting mbuni mmsbox

What version of Kannel's libs are you using?

Paul.

On Jun 27, 2012, at 11:14, HARLOW Peter wrote:


I have been trying to use mmsbox on a PC running Kubuntu.

I have Kannel installed and operating.

On starting mmsbox, it just returns (unless I start it non - root, when it 
segfaults).

There is no output.

I have tried Kannel from the Ububtu repository, and compiling from source, the 
same for cURL.

I have tried the latest Mbuni, and also the cvs version.

I have tried with and without configuration files, and command line switches.

I have disabled seLinux.

What is the obvious thing I am doing wrong?

Regards,
___
Users mailing list
Users@mbuni.orgmailto:Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users

___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


Re: [Users] Starting mbuni mmsbox

2012-06-28 Thread HARLOW Peter
De : Paul Bagyenda [mailto:bagye...@dsmagic.com]
Envoyé : 28 June 2012 16:40
À : HARLOW Peter
Objet : Re: [Users] Starting mbuni mmsbox

Is this on Amazon EC2 by any chance? We've had a similar problem and can't 
quite work out what has caused it.
On Jun 28, 2012, at 16:26, HARLOW Peter wrote:

No, I'm running this on Kubuntu 12.04 LTS (Precise Pangolin) on an IBM/Lenovo 
ThinkCenter i386 box.

Regards,

Pete.


___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users