Re: [Users] MMSBox and MM1 GPRS modem

2010-03-24 Thread Paul Bagyenda
You need to have the start/stop script in there, since Mbuni must be able to 
start and stop Kannel's hold on the modem. 

If the PPP link comes up and you are not able to send, you need to check that 
you are using the correct APN.

P.

On Mar 23, 2010, at 23:49, Emmanuel CHANSON wrote:

 I come again to this thread to get some help from you guys,
 
 Does anyone of you already got these alarms?
 
 ERROR: mmsbox_mm1.c:628 fetch_content [mmsbox-mm1] [n/a] failed to 
 fetch/post content: couldn't connect to host
 
 and 
 
 Mar 21 15:47:05 kannel pppd[18110]: Serial line is looped back.
 
 or
 
 Mar 21 15:47:44 kannel pppd[18129]: PAP authentication succeeded
 Mar 21 15:47:46 kannel pppd[18129]: LCP terminated by peer
 
 Thanks by advance,
 
 Emmanuel
 
 
 2010/3/21 Emmanuel CHANSON emmanuelchan...@gmail.com
 I succeed to get something interresting :)
 
 I set mbuni to use wvdial but I shutdown kannel first and remove start/stop 
 smsc from custom-settings command in mmsbox.conf to set only mmsbox gprs-on 
 script:
 
 
 == /var/log/mbuni/mmsbox.log ==
 2010-03-21 14:56:15 [16018] [13] DEBUG: Thread 13 
 (mms_queue.c:(gwthread_func_t *)tdeliver) maps to pid 16018.
 2010-03-21 14:56:39 [16018] [3] DEBUG: HTTP: Creating HTTPClient for 
 `127.0.0.1'.
 2010-03-21 14:56:39 [16018] [3] DEBUG: HTTP: Created HTTPClient area 
 0xb4f005b0.
 2010-03-21 14:56:39 [16018] [14] DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 
 0x0003.
 2010-03-21 14:56:39 [16018] [14] INFO: mmsbox.c:1366 make_and_queue_msg 
 [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid 
 [Mbuni-msg.3799.x1.18.40]: h-jj-qf3799.1.x18.83
 2010-03-21 14:56:39 [16018] [14] INFO: System error 2: No such file or 
 directory
 2010-03-21 14:56:39 [16018] [14] DEBUG: HTTP: Destroying HTTPClient area 
 0xb4f005b0.
 2010-03-21 14:56:39 [16018] [14] DEBUG: HTTP: Destroying HTTPClient for 
 `127.0.0.1'.
 2010-03-21 14:56:39 [16018] [14] INFO: mmsbox.c:1613 dispatch_sendmms_recv 
 [mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued [Accepted: 
 Mbuni-msg.3799.x1.18.40]
 2010-03-21 14:56:40 [16018] [7] DEBUG: Queued to thread 0 for 
 /var/spool/mbuni/mmsbox_outgoing/h/jj/qf3799.1.x18.83, sendt=1269143799, 
 tnow=1269143800
 2010-03-21 14:56:45 [16018] [5] INFO: mmsbox_mm1.c:379 handle_mm1 
 [mmsbox-mm1] [n/a] start_gprs returned PID: 16054
 2010-03-21 14:56:45 [16018] [5] DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 
 0x0003.
 
 
 
 
 2010-03-21 14:57:06 [16018] [5] ERROR: mmsbox_mm1.c:628 fetch_content 
 [mmsbox-mm1] [n/a] failed to fetch/post content: couldn't connect to host
 2010-03-21 14:57:06 [16018] [5] DEBUG: Octet string at 0xb4f02f10:
 2010-03-21 14:57:06 [16018] [5] DEBUG:   len:  0
 2010-03-21 14:57:06 [16018] [5] DEBUG:   size: 0
 2010-03-21 14:57:06 [16018] [5] DEBUG:   immutable: 0
 2010-03-21 14:57:06 [16018] [5] DEBUG: Octet string dump ends.
 2010-03-21 14:57:06 [16018] [5] ERROR: mmsbox_mm1.c:499 handle_mm1 
 [mmsbox-mm1] [n/a] Sending failed: (none), (none)!
 2010-03-21 14:57:06 [16018] [5] INFO: mmsbox_mm1.c:524 handle_mm1 
 [mmsbox-mm1] [n/a] GPRS turned off returned: 0
 2010-03-21 14:57:06 [16018] [13] INFO: mmsbox_mm1.c:345 send_msg 
 [mmsbox-mm1] [n/a] sent message, type=m-send-req, result=(none)
 2010-03-21 14:57:06 [16018] [13] INFO: bearerbox.c:1519 sendMsg [MM7] [n/a] 
 Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to 
 +687773502/TYPE=PLMN, msgsize=97: msgid=[N/A]
 
 
 /var/log/messages:
 ---
 Mar 21 14:56:42 kannel pppd[16054]: pppd 2.4.5 started by root, uid 0
 Mar 21 14:56:42 kannel pppd[16054]: Using interface ppp0
 Mar 21 14:56:42 kannel pppd[16054]: Connect: ppp0 -- /dev/ttyACM0
 Mar 21 14:56:45 kannel pppd[16054]: PAP authentication succeeded
 Mar 21 14:56:46 kannel pppd[16054]: not replacing existing default route via 
 192.168.0.254
 Mar 21 14:56:46 kannel pppd[16054]: local  IP address 10.152.146.153
 Mar 21 14:56:46 kannel pppd[16054]: remote IP address 10.6.6.6
 Mar 21 14:56:48 kannel ntpd[1285]: Listening on interface #9 ppp0, 
 10.152.146.153#123 Enabled
 Mar 21 14:57:06 kannel pppd[16054]: Terminating on signal 15
 Mar 21 14:57:06 kannel pppd[16054]: Connect time 0.4 minutes.
 Mar 21 14:57:06 kannel pppd[16054]: Sent 0 bytes, received 0 bytes.
 Mar 21 14:57:06 kannel pppd[16054]: Connection terminated.
 Mar 21 14:57:06 kannel pppd[16054]: Exit.
 Mar 21 14:57:08 kannel ntpd[1285]: Deleting interface #9 ppp0, 
 10.152.146.153#123, interface stats: received=0, sent=0, dropped=0, 
 active_time=20 secs
 
 
 Using pppd (without mbuni) I got this:
 
 Mar 21 15:47:02 kannel pppd[18110]: pppd 2.4.5 started by root, uid 0
 Mar 21 15:47:03 kannel chat[18112]: abort on (BUSY)
 Mar 21 15:47:03 kannel chat[18112]: abort on (NO CARRIER)
 Mar 21 15:47:03 kannel chat[18112]: abort on (ERROR)
 Mar 21 15:47:03 kannel chat[18112]: send (AT^M)
 Mar 21 15:47:03 kannel chat[18112]: expect (OK)
 Mar 21 15:47:03 kannel chat[18112]: AT^M^M
 Mar 21 15:47:03 kannel chat[18112]: OK
 Mar 21 

Re: [Users] MMSBox and MM1 GPRS modem

2010-03-24 Thread Paul Bagyenda
Please post your full Kannel and Mbuni conf files. 
On Mar 17, 2010, at 22:36, Emmanuel CHANSON wrote:

 I tried many things (even Mbuni CVS + Kannel recommended release) but I got 
 always the same behavior, I am blocked since 3 days.
 
 I want to send a MMS from MMSbox to a phone, I used:
 lynx -dump 
 http://localhost:10001/?username=altmmspassword=altmmsto=%2Bx/TYPE=PLMNsubject=Testtext=MMS;
Accepted: Mbuni-msg.4983.x1.49.32
 
 
 the logs show this (mmsbox.conf):
 
 2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Creating HTTPClient for 
 `127.0.0.1'.
 2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Created HTTPClient area 
 0xb5809688.
 2010-03-17 08:29:43 [25549] [13] DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 
 0x0003.
 2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1366 make_and_queue_msg 
 [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid 
 [Mbuni-msg.4983.x1.49.32]: 4-qf4983.1.x549.22
 2010-03-17 08:29:43 [25549] [13] INFO: System error 2: No such file or 
 directory
 2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient area 
 0xb5809688.
 2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient for 
 `127.0.0.1'.
 2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1613 dispatch_sendmms_recv 
 [mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued [Accepted: 
 Mbuni-msg.4983.x1.49.32]
 2010-03-17 08:29:47 [25549] [7] DEBUG: Queued to thread 0 for 
 /var/spool/mbuni/mmsbox_outgoing/4/qf4983.1.x549.22, sendt=1268774983, 
 tnow=1268774987
 2010-03-17 08:29:47 [25549] [18] ERROR: bearerbox.c:1525 sendMsg [MM7] 
 [n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to 
 +x/TYPE=PLMN, msgsize=95: internal error, mm1 notify not started!
 
 Mbuni should stop SMSc but nothing happens:
 
 mmsbox.conf below:
 
 One thing strange, Kannel does not notice anything when receiving a MMS 
 notification (I tried to send a MMS from a mobile to my modem Nokia 6230), 
 MMS is received on the modem but not catched by Kannel/Mbuni and absolutely 
 no logs.
 
 If it can help
 
 mmsbox.conf:
 
 group = core
 log-file = /var/log/mbuni/mmsbox.log
 access-log = /var/log/mbuni/mmsbox-access.log
 log-level = 0
 mmsbox-admin-port = 10020
 admin-password = password
 admin-port-ssl = false
 
 group = mbuni
 storage-directory = /var/spool/mbuni
 max-send-threads = 5
 maximum-send-attempts = 50
 default-message-expiry = 36
 queue-run-interval = 5
 send-attempt-back-off = 300
 sendmms-port = 10001
 sendsms-url = http://localhost:13013/cgi-bin/sendsms
 sendsms-username =xx
 sendsms-password = xx
 
 #group = mmsc
 #id = alternative
 #mmsc-url = http://mbuni:t...@localhost:1982/soap
 #incoming-username = user
 #incoming-password = pass
 #incoming-port = 12345
 #type = soap
 
 # Conf for MMSBox using a modem (MM1)
 group = mmsc
 id = nokiaphone
 type = custom
 custom-settings = smsc-on=lynx -dump 
 'http://localhost:13000/start-smsc?password=xxsmsc=nokiaphone';\
  smsc-off=lynx -dump 
 'http://localhost:13000/stop-smsc?password=xxsmsc=nokiaphone';\
  gprs-on=pppd call gprs;gprs-pid=cat /var/run/ppp0.pid|head 
 -1;port=13000;mmsc-url=http://mms.mobitag.nc/mmsc;proxy=192.168.xxx.xxx:3130;msisdn=100;
 mmsc-library = /usr/local/lib/libmmsbox_mm1.so
 
 group = mms-service
 name = me
 post-url = http://localhost/~bagyenda/test-mbuni.php
 catch-all = true
 http-post-parameters = fx=trueimages[]=%itext[]=%tskip=1
 accept-x-mbuni-headers = true
 pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
 keyword = test
 omit-empty = no
 suppress-reply = true
 service-code = regular
 
 group = mms-service
 name = fullmessage
 get-url = http://localhost/images/apache_pb.gif
 # http-post-parameters = fx=trueimage=%itext=%t
 accept-x-mbuni-headers = true
 keyword = thixs
 
 group = send-mms-user
 username = altmms
 password = altmms
 faked-sender = 100
 
 
 Regards,
 
 Emmanuel
 
 2010/3/16 Paul Bagyenda bagye...@dsmagic.com
 Answers inline.
 
 On Mar 16, 2010, at 00:08, Emmanuel CHANSON wrote:
 
 Thanks Nuno for your help,
 
 First thing is that the text I sent before is for receiving a mms, for that 
 you use the mmsbox exec, so I do not speak of the mmsc exec neither is 
 configuration file, but I do believe that you must use BOTH exec to be able 
 to send a mms (not really sure on this).
 - Need a confirmation from Paul B maybe because I don’t have any clue about 
 this.
 
 
 
  mmsc is not needed for what you want to do. mmsbox is sufficient
 
 For what is used the port parameter inside custom-settings - ;port=13014; ?
 I am eating my brain out about that, worst is one of the few things I don’t 
 have any notes about.
 - Maybe Paul can answer to this as well
  
 
 
 
  This is the port to which kannel must get/post incoming mms notification 
 (sms).
 
 Should I use ppd call gprs or wvdial ? should it provide the same result ie 
 a pppd connection to my operator ?
 In my opinion wvdial is a easy fast way a user control a gprs modem, 

Re: [Users] MMSBox and MM1 GPRS modem

2010-03-23 Thread Emmanuel CHANSON
I come again to this thread to get some help from you guys,

Does anyone of you already got these alarms?

*ERROR: mmsbox_mm1.c:628 fetch_content [mmsbox-mm1] [n/a] failed to
fetch/post content: couldn't connect to host*

and

*Mar 21 15:47:05 kannel pppd[18110]: Serial line is looped back.

or

*Mar 21 15:47:44 kannel pppd[18129]: PAP authentication succeeded
*Mar 21 15:47:46 kannel pppd[18129]: LCP terminated by peer

Thanks by advance,

Emmanuel
**
*
2010/3/21 Emmanuel CHANSON emmanuelchan...@gmail.com

 I succeed to get something interresting :)

 I set mbuni to use wvdial but I shutdown kannel first and remove
 start/stop smsc from custom-settings command in mmsbox.conf to set only
 mmsbox gprs-on script:


 == /var/log/mbuni/mmsbox.log ==
 2010-03-21 14:56:15 [16018] [13] DEBUG: Thread 13
 (mms_queue.c:(gwthread_func_t *)tdeliver) maps to pid 16018.
 2010-03-21 14:56:39 [16018] [3] DEBUG: HTTP: Creating HTTPClient for
 `127.0.0.1'.
 2010-03-21 14:56:39 [16018] [3] DEBUG: HTTP: Created HTTPClient area
 0xb4f005b0.
 2010-03-21 14:56:39 [16018] [14] DEBUG: WSP: Mapping `text/plain', WSP 1.2
 to 0x0003.
 2010-03-21 14:56:39 [16018] [14] INFO: mmsbox.c:1366 make_and_queue_msg
 [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid
 [Mbuni-msg.3799.x1.18.40]: h-jj-qf3799.1.x18.83
 2010-03-21 14:56:39 [16018] [14] INFO: System error 2: No such file or
 directory
 2010-03-21 14:56:39 [16018] [14] DEBUG: HTTP: Destroying HTTPClient area
 0xb4f005b0.
 2010-03-21 14:56:39 [16018] [14] DEBUG: HTTP: Destroying HTTPClient for
 `127.0.0.1'.
 2010-03-21 14:56:39 [16018] [14] INFO: mmsbox.c:1613
 dispatch_sendmms_recv [mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued
 [Accepted: Mbuni-msg.3799.x1.18.40]
 2010-03-21 14:56:40 [16018] [7] DEBUG: Queued to thread 0 for
 /var/spool/mbuni/mmsbox_outgoing/h/jj/qf3799.1.x18.83, sendt=1269143799,
 tnow=1269143800
 2010-03-21 14:56:45 [16018] [5] INFO: mmsbox_mm1.c:379 handle_mm1
 [mmsbox-mm1] [n/a] start_gprs returned PID: 16054
 2010-03-21 14:56:45 [16018] [5] DEBUG: WSP: Mapping `text/plain', WSP 1.2
 to 0x0003.




 2010-03-21 14:57:06 [16018] [5] ERROR: mmsbox_mm1.c:628 fetch_content
 [mmsbox-mm1] [n/a] failed to fetch/post content: couldn't connect to host
 2010-03-21 14:57:06 [16018] [5] DEBUG: Octet string at 0xb4f02f10:
 2010-03-21 14:57:06 [16018] [5] DEBUG:   len:  0
 2010-03-21 14:57:06 [16018] [5] DEBUG:   size: 0
 2010-03-21 14:57:06 [16018] [5] DEBUG:   immutable: 0
 2010-03-21 14:57:06 [16018] [5] DEBUG: Octet string dump ends.
 2010-03-21 14:57:06 [16018] [5] ERROR: mmsbox_mm1.c:499 handle_mm1
 [mmsbox-mm1] [n/a] Sending failed: (none), (none)!
 2010-03-21 14:57:06 [16018] [5] INFO: mmsbox_mm1.c:524 handle_mm1
 [mmsbox-mm1] [n/a] GPRS turned off returned: 0
 2010-03-21 14:57:06 [16018] [13] INFO: mmsbox_mm1.c:345 send_msg
 [mmsbox-mm1] [n/a] sent message, type=m-send-req, result=(none)
 2010-03-21 14:57:06 [16018] [13] INFO: bearerbox.c:1519 sendMsg [MM7]
 [n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to
 +687773502/TYPE=PLMN, msgsize=97: msgid=[N/A]


 /var/log/messages:
 ---
 Mar 21 14:56:42 kannel pppd[16054]: pppd 2.4.5 started by root, uid 0
 Mar 21 14:56:42 kannel pppd[16054]: Using interface ppp0
 Mar 21 14:56:42 kannel pppd[16054]: Connect: ppp0 -- /dev/ttyACM0
 Mar 21 14:56:45 kannel pppd[16054]: PAP authentication succeeded
 Mar 21 14:56:46 kannel pppd[16054]: not replacing existing default route
 via 192.168.0.254
 Mar 21 14:56:46 kannel pppd[16054]: local  IP address 10.152.146.153
 Mar 21 14:56:46 kannel pppd[16054]: remote IP address 10.6.6.6
 Mar 21 14:56:48 kannel ntpd[1285]: Listening on interface #9 ppp0,
 10.152.146.153#123 Enabled
 Mar 21 14:57:06 kannel pppd[16054]: Terminating on signal 15
 Mar 21 14:57:06 kannel pppd[16054]: Connect time 0.4 minutes.
 Mar 21 14:57:06 kannel pppd[16054]: Sent 0 bytes, received 0 bytes.
 Mar 21 14:57:06 kannel pppd[16054]: Connection terminated.
 Mar 21 14:57:06 kannel pppd[16054]: Exit.
 Mar 21 14:57:08 kannel ntpd[1285]: Deleting interface #9 ppp0,
 10.152.146.153#123, interface stats: received=0, sent=0, dropped=0,
 active_time=20 secs


 Using pppd (without mbuni) I got this:

 Mar 21 15:47:02 kannel pppd[18110]: pppd 2.4.5 started by root, uid 0
 Mar 21 15:47:03 kannel chat[18112]: abort on (BUSY)
 Mar 21 15:47:03 kannel chat[18112]: abort on (NO CARRIER)
 Mar 21 15:47:03 kannel chat[18112]: abort on (ERROR)
 Mar 21 15:47:03 kannel chat[18112]: send (AT^M)
 Mar 21 15:47:03 kannel chat[18112]: expect (OK)
 Mar 21 15:47:03 kannel chat[18112]: AT^M^M
 Mar 21 15:47:03 kannel chat[18112]: OK
 Mar 21 15:47:03 kannel chat[18112]:  -- got it
 Mar 21 15:47:03 kannel chat[18112]: send (AT+CGDCONT=1,IP,mms^M)
 Mar 21 15:47:04 kannel chat[18112]: expect (OK)
 Mar 21 15:47:04 kannel chat[18112]: ^M
 Mar 21 15:47:04 kannel chat[18112]: AT+CGDCONT=1,IP,mms^M^M
 Mar 21 15:47:04 kannel chat[18112]: OK
 Mar 21 15:47:04 kannel chat[18112]:  -- got it
 

Re: [Users] MMSBox and MM1 GPRS modem

2010-03-18 Thread Emmanuel CHANSON
Any chance to get a lead ?

Emmanuel

2010/3/18 Emmanuel CHANSON emmanuelchan...@gmail.com

 Thanks Cristian to help me.

 I did not modify this part of mmsbox.conf because I did not setup for the
 moment any mms service. So yes this directory does not exist but I don't
 need it for the moment, my aim is to send a MMS through GPRS mobile so no
 mms-service should be used in this case.

 I try different kannel/mbuni version as different config file but no way.

 Can some gurus of mbuni try to explain this error ? I have seen only one
 people one internet having this but no answers given.

 *ERROR: bearerbox.c:1525 sendMsg [MM7] [n/a] Retry later MMSBox Outgoing
 Queue MMS Send: From 100/TYPE=PLMN, to +x/TYPE=PLMN, msgsize=95:
 internal error, mm1 notify not started!

 *
 Mbuni does not shutdown the modem why ?
 *
 *Best regards,

 Emmanuel

 2010/3/17 Cristian Padilla Duff cpadi...@misp.cl

  Hi,



 Can you confirm that the directory /var/www/html/images and the
 apache_pb.gif exist ….



 Other thing that you can confirm is if the apache is up, or if you have an
 alias correct in httpd.conf file …..because in your configuration file you
 have the




 group = mms-service
 name = fullmessage
 *get-url = **http://localhost/images/apache_pb.gif**
 *# http-post-parameters = fx=trueimage=%itext=%t
 accept-x-mbuni-headers = true
 keyword = thixs



 maybe something in the mmsbos.conf is not correct, look the groups … or
 find other mmsbox.conf in internet … there is a lot of examples.


  --

 *De:* users-boun...@mbuni.org [mailto:users-boun...@mbuni.org] *En nombre
 de *Emmanuel CHANSON
 *Enviado el:* miércoles, 17 de marzo de 2010 15:36
 *Para:* users@mbuni.org
 *Asunto:* Re: [Users] MMSBox and MM1 GPRS modem



 I tried many things (even Mbuni CVS + Kannel recommended release) but I
 got always the same behavior, I am blocked since 3 days.

 I want to send a MMS from MMSbox to a phone, I used:
 lynx -dump 
 http://localhost:10001/?username=altmmspassword=altmmsto=%2Bx/TYPE=PLMNsubject=Testtext=MMS
 
Accepted: Mbuni-msg.4983.x1.49.32


 the logs show this (mmsbox.conf):

 2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Creating HTTPClient for
 `127.0.0.1'.
 2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Created HTTPClient area
 0xb5809688.
 2010-03-17 08:29:43 [25549] [13] DEBUG: WSP: Mapping `text/plain', WSP 1.2
 to 0x0003.
 2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1366 make_and_queue_msg
 [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid
 [Mbuni-msg.4983.x1.49.32]: 4-qf4983.1.x549.22
 2010-03-17 08:29:43 [25549] [13] INFO: *System error 2: No such file or
 directory*
 2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient area
 0xb5809688.
 2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient for
 `127.0.0.1'.
 2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1613
 dispatch_sendmms_recv [mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued
 [Accepted: Mbuni-msg.4983.x1.49.32]
 2010-03-17 08:29:47 [25549] [7] DEBUG: Queued to thread 0 for
 /var/spool/mbuni/mmsbox_outgoing/4/qf4983.1.x549.22, sendt=1268774983,
 tnow=1268774987
 2010-03-17 08:29:47 [25549] [18] ERROR: *bearerbox.c:1525 sendMsg [MM7]
 [n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to
 +x/TYPE=PLMN, msgsize=95: internal error, mm1 notify not started!
 *

 Mbuni should stop SMSc but nothing happens:

 mmsbox.conf below:

 One thing strange, Kannel does not notice anything when receiving a MMS
 notification (I tried to send a MMS from a mobile to my modem Nokia 6230),
 MMS is received on the modem but not catched by Kannel/Mbuni and absolutely
 no logs.

 If it can help

 mmsbox.conf:

 group = core
 log-file = /var/log/mbuni/mmsbox.log
 access-log = /var/log/mbuni/mmsbox-access.log
 log-level = 0
 mmsbox-admin-port = 10020
 admin-password = password
 admin-port-ssl = false

 group = mbuni
 storage-directory = /var/spool/mbuni
 max-send-threads = 5
 maximum-send-attempts = 50
 default-message-expiry = 36
 queue-run-interval = 5
 send-attempt-back-off = 300
 sendmms-port = 10001
 sendsms-url = http://localhost:13013/cgi-bin/sendsms
 sendsms-username =xx
 sendsms-password = xx

 #group = mmsc
 #id = alternative
 #mmsc-url = http://mbuni:t...@localhost:1982/soap
 #incoming-username = user
 #incoming-password = pass
 #incoming-port = 12345
 #type = soap

 # Conf for MMSBox using a modem (MM1)
 group = mmsc
 id = nokiaphone
 type = custom
 custom-settings = smsc-on=lynx -dump '
 http://localhost:13000/start-smsc?password=xxsmsc=nokiaphone'http://localhost:13000/start-smsc?password=xxsmsc=nokiaphone%27
 ;\
  smsc-off=lynx -dump '
 http://localhost:13000/stop-smsc?password=xxsmsc=nokiaphone'http://localhost:13000/stop-smsc?password=xxsmsc=nokiaphone%27
 ;\
  gprs-on=pppd call gprs;gprs-pid=cat /var/run/ppp0.pid|head
 -1;port=13000;mmsc-url=
 http://mms.mobitag.nc/mmsc;proxy=192.168.xxx.xxx

RE: [Users] MMSBox and MM1 GPRS modem

2010-03-18 Thread Nuno Freitas
Hi there Emmanuel,

Well from what you sent I can't have a hint of what is going wrong.

 

Could you please send the the pppd( chat file also) and kannel configuration
files, and beside this, send  /var/log/messages and the log that is on the
value log-file from the group = smsc group on the kannel conf file.

send only the log info of one of the times you try to send a mms : )

 

This may help give a hint on what is going wrong.

 

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


Re: [Users] MMSBox and MM1 GPRS modem

2010-03-17 Thread Emmanuel CHANSON
I tried many things (even Mbuni CVS + Kannel recommended release) but I got
always the same behavior, I am blocked since 3 days.

I want to send a MMS from MMSbox to a phone, I used:
lynx -dump 
http://localhost:10001/?username=altmmspassword=altmmsto=%2Bx/TYPE=PLMNsubject=Testtext=MMS

   Accepted: Mbuni-msg.4983.x1.49.32


the logs show this (mmsbox.conf):

2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Created HTTPClient area
0xb5809688.
2010-03-17 08:29:43 [25549] [13] DEBUG: WSP: Mapping `text/plain', WSP 1.2
to 0x0003.
2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1366 make_and_queue_msg
[mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid
[Mbuni-msg.4983.x1.49.32]: 4-qf4983.1.x549.22
2010-03-17 08:29:43 [25549] [13] INFO: *System error 2: No such file or
directory*
2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient area
0xb5809688.
2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1613 dispatch_sendmms_recv
[mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued [Accepted:
Mbuni-msg.4983.x1.49.32]
2010-03-17 08:29:47 [25549] [7] DEBUG: Queued to thread 0 for
/var/spool/mbuni/mmsbox_outgoing/4/qf4983.1.x549.22, sendt=1268774983,
tnow=1268774987
2010-03-17 08:29:47 [25549] [18] ERROR: *bearerbox.c:1525 sendMsg [MM7]
[n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to
+x/TYPE=PLMN, msgsize=95: internal error, mm1 notify not started!*

Mbuni should stop SMSc but nothing happens:

mmsbox.conf below:

One thing strange, Kannel does not notice anything when receiving a MMS
notification (I tried to send a MMS from a mobile to my modem Nokia 6230),
MMS is received on the modem but not catched by Kannel/Mbuni and absolutely
no logs.

If it can help

mmsbox.conf:

group = core
log-file = /var/log/mbuni/mmsbox.log
access-log = /var/log/mbuni/mmsbox-access.log
log-level = 0
mmsbox-admin-port = 10020
admin-password = password
admin-port-ssl = false

group = mbuni
storage-directory = /var/spool/mbuni
max-send-threads = 5
maximum-send-attempts = 50
default-message-expiry = 36
queue-run-interval = 5
send-attempt-back-off = 300
sendmms-port = 10001
sendsms-url = http://localhost:13013/cgi-bin/sendsms
sendsms-username =xx
sendsms-password = xx

#group = mmsc
#id = alternative
#mmsc-url = http://mbuni:t...@localhost:1982/soap
#incoming-username = user
#incoming-password = pass
#incoming-port = 12345
#type = soap

# Conf for MMSBox using a modem (MM1)
group = mmsc
id = nokiaphone
type = custom
custom-settings = smsc-on=lynx -dump '
http://localhost:13000/start-smsc?password=xxsmsc=nokiaphone';\
 smsc-off=lynx -dump '
http://localhost:13000/stop-smsc?password=xxsmsc=nokiaphone';\
 gprs-on=pppd call gprs;gprs-pid=cat /var/run/ppp0.pid|head
-1;port=13000;mmsc-url=
http://mms.mobitag.nc/mmsc;proxy=192.168.xxx.xxx:3130;msisdn=100;
mmsc-library = /usr/local/lib/libmmsbox_mm1.so

group = mms-service
name = me
post-url = http://localhost/~bagyenda/test-mbuni.php
catch-all = true
http-post-parameters = fx=trueimages[]=%itext[]=%tskip=1
accept-x-mbuni-headers = true
pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
keyword = test
omit-empty = no
suppress-reply = true
service-code = regular

group = mms-service
name = fullmessage
get-url = http://localhost/images/apache_pb.gif
# http-post-parameters = fx=trueimage=%itext=%t
accept-x-mbuni-headers = true
keyword = thixs

group = send-mms-user
username = altmms
password = altmms
faked-sender = 100


Regards,

Emmanuel

2010/3/16 Paul Bagyenda bagye...@dsmagic.com

 Answers inline.

 On Mar 16, 2010, at 00:08, Emmanuel CHANSON wrote:

 *Thanks Nuno for your help,
 *
 *First thing is that the text I sent before is for receiving a mms, for
 that you use the mmsbox exec, so I do not speak of the mmsc exec neither is
 configuration file, but I do believe that you must use BOTH exec to be able
 to send a mms (not really sure on this).*
 *- Need a confirmation from Paul B maybe because I don’t have any clue
 about this.
 *



  mmsc is not needed for what you want to do. mmsbox is sufficient

 For what is used the port parameter inside custom-settings - *
 ;port=13014;* ?
 *I am eating my brain out about that, worst is one of the few things I
 don’t have any notes about.*
 *- Maybe Paul can answer to this as well*





  This is the port to which kannel must get/post incoming mms notification
 (sms).

 Should I use *ppd call gprs* or *wvdial* ? should it provide the same
 result ie a pppd connection to my operator ?
 *In my opinion wvdial is a easy fast way a user control a gprs modem, and
 I know that pppd looked scary at first, but after a few configurations you
 will have a great tool that your mbuni will use with ease, and I recommend
 you use the pppd script, the pppd mechanism saved me a few times already.*
 **

RE: [Users] MMSBox and MM1 GPRS modem

2010-03-17 Thread Cristian Padilla Duff
Hi,

 

Can you confirm that the directory /var/www/html/images and the
apache_pb.gif exist …. 

 

Other thing that you can confirm is if the apache is up, or if you have an
alias correct in httpd.conf file …..because in your configuration file you
have the 

 


group = mms-service
name = fullmessage
get-url =  http://localhost/images/apache_pb.gif
http://localhost/images/apache_pb.gif
# http-post-parameters = fx=trueimage=%itext=%t
accept-x-mbuni-headers = true
keyword = thixs



 

maybe something in the mmsbos.conf is not correct, look the groups … or find
other mmsbox.conf in internet … there is a lot of examples. 

 

  _  

De: users-boun...@mbuni.org [mailto:users-boun...@mbuni.org] En nombre de
Emmanuel CHANSON
Enviado el: miércoles, 17 de marzo de 2010 15:36
Para: users@mbuni.org
Asunto: Re: [Users] MMSBox and MM1 GPRS modem

 

I tried many things (even Mbuni CVS + Kannel recommended release) but I got
always the same behavior, I am blocked since 3 days.

I want to send a MMS from MMSbox to a phone, I used:
lynx -dump http://localhost:10001/?username=altmms
http://localhost:10001/?username=altmmspassword=altmmsto=%2Bx/TYP
E=PLMNsubject=Testtext=MMS
password=altmmsto=%2Bx/TYPE=PLMNsubject=Testtext=MMS
   Accepted: Mbuni-msg.4983.x1.49.32


the logs show this (mmsbox.conf):

2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Created HTTPClient area
0xb5809688.
2010-03-17 08:29:43 [25549] [13] DEBUG: WSP: Mapping `text/plain', WSP 1.2
to 0x0003.
2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1366 make_and_queue_msg
[mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid
[Mbuni-msg.4983.x1.49.32]: 4-qf4983.1.x549.22
2010-03-17 08:29:43 [25549] [13] INFO: System error 2: No such file or
directory
2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient area
0xb5809688.
2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1613 dispatch_sendmms_recv
[mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued [Accepted:
Mbuni-msg.4983.x1.49.32]
2010-03-17 08:29:47 [25549] [7] DEBUG: Queued to thread 0 for
/var/spool/mbuni/mmsbox_outgoing/4/qf4983.1.x549.22, sendt=1268774983,
tnow=1268774987
2010-03-17 08:29:47 [25549] [18] ERROR: bearerbox.c:1525 sendMsg [MM7]
[n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to
+x/TYPE=PLMN, msgsize=95: internal error, mm1 notify not started!

Mbuni should stop SMSc but nothing happens:

mmsbox.conf below:

One thing strange, Kannel does not notice anything when receiving a MMS
notification (I tried to send a MMS from a mobile to my modem Nokia 6230),
MMS is received on the modem but not catched by Kannel/Mbuni and absolutely
no logs.

If it can help

mmsbox.conf:

group = core
log-file = /var/log/mbuni/mmsbox.log
access-log = /var/log/mbuni/mmsbox-access.log
log-level = 0
mmsbox-admin-port = 10020
admin-password = password
admin-port-ssl = false

group = mbuni
storage-directory = /var/spool/mbuni
max-send-threads = 5
maximum-send-attempts = 50
default-message-expiry = 36
queue-run-interval = 5
send-attempt-back-off = 300
sendmms-port = 10001
sendsms-url = http://localhost:13013/cgi-bin/sendsms
sendsms-username =xx
sendsms-password = xx

#group = mmsc
#id = alternative
#mmsc-url = http://mbuni:t...@localhost:1982/soap
#incoming-username = user
#incoming-password = pass
#incoming-port = 12345
#type = soap

# Conf for MMSBox using a modem (MM1)
group = mmsc
id = nokiaphone
type = custom
custom-settings = smsc-on=lynx -dump
'http://localhost:13000/start-smsc?password=xx
http://localhost:13000/start-smsc?password=xxsmsc=nokiaphone'
smsc=nokiaphone';\
 smsc-off=lynx -dump 'http://localhost:13000/stop-smsc?password=xx
http://localhost:13000/stop-smsc?password=xxsmsc=nokiaphone'
smsc=nokiaphone';\
 gprs-on=pppd call gprs;gprs-pid=cat /var/run/ppp0.pid|head
-1;port=13000;mmsc-url=http://mms.mobitag.nc/mmsc;proxy=192.168.xxx.xxx:3130
;msisdn=100
mmsc-library = /usr/local/lib/libmmsbox_mm1.so

group = mms-service
name = me
post-url = http://localhost/~bagyenda/test-mbuni.php
catch-all = true
http-post-parameters = fx=trueimages[]=%itext[]=%tskip=1
accept-x-mbuni-headers = true
pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
keyword = test
omit-empty = no
suppress-reply = true
service-code = regular

group = mms-service
name = fullmessage
get-url = http://localhost/images/apache_pb.gif
# http-post-parameters = fx=trueimage=%itext=%t
accept-x-mbuni-headers = true
keyword = thixs

group = send-mms-user
username = altmms
password = altmms
faked-sender = 100


Regards,

Emmanuel

2010/3/16 Paul Bagyenda bagye...@dsmagic.com

Answers inline.

 

On Mar 16, 2010, at 00:08, Emmanuel CHANSON wrote:





Thanks Nuno for your help,

First thing is that the text I sent before is for receiving a mms, for that
you

Re: [Users] MMSBox and MM1 GPRS modem

2010-03-17 Thread Emmanuel CHANSON
Thanks Cristian to help me.

I did not modify this part of mmsbox.conf because I did not setup for the
moment any mms service. So yes this directory does not exist but I don't
need it for the moment, my aim is to send a MMS through GPRS mobile so no
mms-service should be used in this case.

I try different kannel/mbuni version as different config file but no way.

Can some gurus of mbuni try to explain this error ? I have seen only one
people one internet having this but no answers given.

*ERROR: bearerbox.c:1525 sendMsg [MM7] [n/a] Retry later MMSBox Outgoing
Queue MMS Send: From 100/TYPE=PLMN, to +x/TYPE=PLMN, msgsize=95:
internal error, mm1 notify not started!

*Mbuni does not shutdown the modem why ?
*
*Best regards,

Emmanuel

2010/3/17 Cristian Padilla Duff cpadi...@misp.cl

  Hi,



 Can you confirm that the directory /var/www/html/images and the
 apache_pb.gif exist ….



 Other thing that you can confirm is if the apache is up, or if you have an
 alias correct in httpd.conf file …..because in your configuration file you
 have the




 group = mms-service
 name = fullmessage
 *get-url = **http://localhost/images/apache_pb.gif**
 *# http-post-parameters = fx=trueimage=%itext=%t
 accept-x-mbuni-headers = true
 keyword = thixs



 maybe something in the mmsbos.conf is not correct, look the groups … or
 find other mmsbox.conf in internet … there is a lot of examples.


  --

 *De:* users-boun...@mbuni.org [mailto:users-boun...@mbuni.org] *En nombre
 de *Emmanuel CHANSON
 *Enviado el:* miércoles, 17 de marzo de 2010 15:36
 *Para:* users@mbuni.org
 *Asunto:* Re: [Users] MMSBox and MM1 GPRS modem



 I tried many things (even Mbuni CVS + Kannel recommended release) but I got
 always the same behavior, I am blocked since 3 days.

 I want to send a MMS from MMSbox to a phone, I used:
 lynx -dump 
 http://localhost:10001/?username=altmmspassword=altmmsto=%2Bx/TYPE=PLMNsubject=Testtext=MMS
 
Accepted: Mbuni-msg.4983.x1.49.32


 the logs show this (mmsbox.conf):

 2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Creating HTTPClient for
 `127.0.0.1'.
 2010-03-17 08:29:43 [25549] [3] DEBUG: HTTP: Created HTTPClient area
 0xb5809688.
 2010-03-17 08:29:43 [25549] [13] DEBUG: WSP: Mapping `text/plain', WSP 1.2
 to 0x0003.
 2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1366 make_and_queue_msg
 [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid
 [Mbuni-msg.4983.x1.49.32]: 4-qf4983.1.x549.22
 2010-03-17 08:29:43 [25549] [13] INFO: *System error 2: No such file or
 directory*
 2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient area
 0xb5809688.
 2010-03-17 08:29:43 [25549] [13] DEBUG: HTTP: Destroying HTTPClient for
 `127.0.0.1'.
 2010-03-17 08:29:43 [25549] [13] INFO: mmsbox.c:1613
 dispatch_sendmms_recv [mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued
 [Accepted: Mbuni-msg.4983.x1.49.32]
 2010-03-17 08:29:47 [25549] [7] DEBUG: Queued to thread 0 for
 /var/spool/mbuni/mmsbox_outgoing/4/qf4983.1.x549.22, sendt=1268774983,
 tnow=1268774987
 2010-03-17 08:29:47 [25549] [18] ERROR: *bearerbox.c:1525 sendMsg [MM7]
 [n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to
 +x/TYPE=PLMN, msgsize=95: internal error, mm1 notify not started!*

 Mbuni should stop SMSc but nothing happens:

 mmsbox.conf below:

 One thing strange, Kannel does not notice anything when receiving a MMS
 notification (I tried to send a MMS from a mobile to my modem Nokia 6230),
 MMS is received on the modem but not catched by Kannel/Mbuni and absolutely
 no logs.

 If it can help

 mmsbox.conf:

 group = core
 log-file = /var/log/mbuni/mmsbox.log
 access-log = /var/log/mbuni/mmsbox-access.log
 log-level = 0
 mmsbox-admin-port = 10020
 admin-password = password
 admin-port-ssl = false

 group = mbuni
 storage-directory = /var/spool/mbuni
 max-send-threads = 5
 maximum-send-attempts = 50
 default-message-expiry = 36
 queue-run-interval = 5
 send-attempt-back-off = 300
 sendmms-port = 10001
 sendsms-url = http://localhost:13013/cgi-bin/sendsms
 sendsms-username =xx
 sendsms-password = xx

 #group = mmsc
 #id = alternative
 #mmsc-url = http://mbuni:t...@localhost:1982/soap
 #incoming-username = user
 #incoming-password = pass
 #incoming-port = 12345
 #type = soap

 # Conf for MMSBox using a modem (MM1)
 group = mmsc
 id = nokiaphone
 type = custom
 custom-settings = smsc-on=lynx -dump '
 http://localhost:13000/start-smsc?password=xxsmsc=nokiaphone'http://localhost:13000/start-smsc?password=xxsmsc=nokiaphone%27
 ;\
  smsc-off=lynx -dump '
 http://localhost:13000/stop-smsc?password=xxsmsc=nokiaphone'http://localhost:13000/stop-smsc?password=xxsmsc=nokiaphone%27
 ;\
  gprs-on=pppd call gprs;gprs-pid=cat /var/run/ppp0.pid|head
 -1;port=13000;mmsc-url=
 http://mms.mobitag.nc/mmsc;proxy=192.168.xxx.xxx:3130;msisdn=100;
 mmsc-library = /usr/local/lib/libmmsbox_mm1.so

 group = mms-service
 name = me
 post-url

Re: [Users] MMSBox and MM1 GPRS modem

2010-03-16 Thread Paul Bagyenda
Answers inline.

On Mar 16, 2010, at 00:08, Emmanuel CHANSON wrote:

 Thanks Nuno for your help,
 
 First thing is that the text I sent before is for receiving a mms, for that 
 you use the mmsbox exec, so I do not speak of the mmsc exec neither is 
 configuration file, but I do believe that you must use BOTH exec to be able 
 to send a mms (not really sure on this).
 - Need a confirmation from Paul B maybe because I don’t have any clue about 
 this.
 


 mmsc is not needed for what you want to do. mmsbox is sufficient

 For what is used the port parameter inside custom-settings - ;port=13014; ?
 I am eating my brain out about that, worst is one of the few things I don’t 
 have any notes about.
 - Maybe Paul can answer to this as well
  
 


 This is the port to which kannel must get/post incoming mms notification (sms).

 Should I use ppd call gprs or wvdial ? should it provide the same result ie a 
 pppd connection to my operator ?
 In my opinion wvdial is a easy fast way a user control a gprs modem, and I 
 know that pppd looked scary at first, but after a few configurations you will 
 have a great tool that your mbuni will use with ease, and I recommend you use 
 the pppd script, the pppd mechanism saved me a few times already.
 - I will check for the ppd script but where can I found it? I remember I saw 
 pppd script on the internet, but maybe there is some scripts coming with the 
 pppd library in linux?
  
 2010-03-15 15:30:06 [28823] [13] INFO: System error 2: No such file or 
 directory
 I’ve came across that error a few times, but not in a command you are doing. 
 Are you executing mbuni with sudo(root permitions) ? Does /var/spool/mbuni 
 exist and has write permitions?
 - without sudo command, directly with root account
 And Yes /var/spool.mbuni have the write permission (at least for root 
 account):
 
 drwxr-x---.  5 root   root   4096 mars  15 15:21 mbuni
 
 # ll /var/spool/mbuni/
 total 12
 -rw-r--r--.  1 root root0 mars  15 15:21 mmsbox-cdr.asc
 drwxr-x---. 38 root root 4096 mars  15 15:21 mmsbox_dlr
 drwxr-x---. 38 root root 4096 mars  15 15:21 mmsbox_incoming
 drwxr-x---. 38 root root 4096 mars  16 06:09 mmsbox_outgoing
 
 In fact mbuni does not start shutting down smsc-id = at... can we 
 investiguate further ? how ? :(
 To this I may have a hint, you have a typo, either on the mail or the conf 
 file
 - I don't understand, what is a typo, can you reformulate? (sorry for my 
 English)?
  
 Both commands must be addressed to the same port http://localhost:13001, and 
 check if 13001 is the admin-port on kannel conf file
 - Yes I made a mistake, kannel admin-port is 13000 and I put 13001 in, the 
 mmsbox.conf file but Mbuni did not succeed to work until this part of the 
 process as it did not try to shutdown smsc in the log, I expected to see some 
 errors saying it can not access admin-port of Kannel. I have modified my conf 
 file as follow:
 
 
 # Conf for MMSBox using a modem (MM1)
 group = mmsc
 id = nokiaphone
 type = custom
 custom-settings = smsc-on=lynx -dump 
 'http://localhost:13000/start-smsc?password=**smsc=nokiaphone';\
  smsc-off=lynx -dump 
 'http://localhost:13000/stop-smsc?password=**smsc=nokiaphone';\
  gprs-on=pppd call gprs;gprs-pid=cat /var/run/ppp0.pid|head 
 -1;port=13014;mmsc-url=http://mms.xxx.tld/mmsc;proxy=192.168.xx.xx:3130;msisdn=100;
 mmsc-library = /usr/local/lib/libmmsbox_mm1.so
 
 Thanks for your time, I really need to succeed to send a MMS through GPRS.
 BTW Does anyone succeeded to do this before? Not only receiving a MMS through 
 GPRS I mean but also send one?
 
 Regards,
 
 Emmanuel
 
 
 2010/3/15 Nuno Freitas nuno.frei...@nabiasolutions.com
 Hi there Emmanuel,
 
 First thing is that the text I sent before is for receiving a mms, for that 
 you use the mmsbox exec, so I do not speak of the mmsc exec neither is 
 configuration file, but I do believe that you must use BOTH exec to be able 
 to send a mms (not really sure on this).
 
  
 One thing, I don't have the same version of libcurl:
 
 curl-7.19.7-7.fc12.i686
 libcurl-7.19.7-7.fc12.i686
 libcurl-devel-7.19.7-7.fc12.i686
 
 I have a newer version, is it a problem?
 
 I do not believe that would be a problem, and from the log at first glance 
 there is no indication curl is the problem.
 
 
 I have several question to understand better how it should work:
 - For what is used the port parameter inside custom-settings - 
 ;port=13014; ?
 
 I am eating my brain out about that, worst is one of the few things I don’t 
 have any notes about.
 
 
 - Should I use ppd call gprs or wvdial ? should it provide the same result 
 ie a pppd connection to my operator ?
 
 In my opinion wvdial is a easy fast way a user control a gprs modem, and I 
 know that pppd looked scary at first, but after a few configurations you will 
 have a great tool that your mbuni will use with ease, and I recommend you use 
 the pppd script, the pppd mechanism saved me a few times already.
 
 
 - 

Re: [Users] MMSBox and MM1 GPRS modem

2010-03-15 Thread Emmanuel CHANSON
One thing, I don't have the same version of libcurl:

curl-7.19.7-7.fc12.i686
libcurl-7.19.7-7.fc12.i686
libcurl-devel-7.19.7-7.fc12.i686

I have a newer version, is it a problem?

BR

Emmanuel

2010/3/15 Emmanuel CHANSON emmanuelchan...@gmail.com

 Thanks for the mail-archive ¨Paul,

 I tried configuring pppd like Nuno did but same result:

 mmsbox.log:
 
 2010-03-15 15:30:06 [28823] [3] DEBUG: HTTP: Creating HTTPClient for
 `127.0.0.1'.
 2010-03-15 15:30:06 [28823] [3] DEBUG: HTTP: Created HTTPClient area
 0xb56128b0.
 2010-03-15 15:30:06 [28823] [13] DEBUG: WSP: Mapping `text/plain', WSP 1.2
 to 0x0003.
 2010-03-15 15:30:06 [28823] [13] INFO: mmsbox.c:1366 make_and_queue_msg
 [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid
 [Mbuni-msg.7406.x1.23.53]: b-qf7406.1.x823.70
 2010-03-15 15:30:06 [28823] [13] INFO: *System error 2: No such file or
 directory*
 2010-03-15 15:30:06 [28823] [13] DEBUG: HTTP: Destroying HTTPClient area
 0xb56128b0.
 2010-03-15 15:30:06 [28823] [13] DEBUG: HTTP: Destroying HTTPClient for
 `127.0.0.1'.
 2010-03-15 15:30:06 [28823] [13] INFO: mmsbox.c:1613
 dispatch_sendmms_recv [mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued
 [Accepted: Mbuni-msg.7406.x1.23.53]
 2010-03-15 15:30:08 [28823] [7] DEBUG: Queued to thread 0 for
 /var/spool/mbuni/mmsbox_outgoing/b/qf7406.1.x823.70, sendt=1268627406,
 tnow=1268627408
 2010-03-15 15:30:08 [28823] [18] ERROR: bearerbox.c:1525 sendMsg [MM7]
 [n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to
 +687XX/TYPE=PLMN, msgsize=95: *internal error, mm1 notify not started!
 *

 mbunibox.conf:
 --
 # Conf for MMSBox using a modem (MM1)
 group = mmsc
 id = nokiaphone
 type = custom
 #custom-settings = smsc-on=lynx -dump '
 http://localhost:13000/start-smsc?password=m...@c0m!smsc=athttp://localhost:13000/start-smsc?password=m...@c0m%21smsc=at';
 \
 # smsc-off=lynx -dump '
 http://localhost:13000/stop-smsc?password=m...@c0m!smsc=athttp://localhost:13000/stop-smsc?password=m...@c0m%21smsc=at';
 \

 # gprs-on=/usr/bin/pon o2; \
 # gprs-pid=cat /var/run/ppp0.pid | head -1;port=13014;\
 # mmsc-url=http://www.mobitag.nc/mmsc;proxy=192.168.39.201:3130;msisdn=100
 
 custom-settings = smsc-on=lynx -dump '
 http://localhost:13000/start-smsc?password=m...@c0m!smsc=nokiaphonehttp://localhost:13000/start-smsc?password=m...@c0m%21smsc=nokiaphone';
 \
  smsc-off=lynx -dump '
 http://localhost:13001/stop-smsc?password=m...@c0m!smsc=nokiaphonehttp://localhost:13001/stop-smsc?password=m...@c0m%21smsc=nokiaphone';
 \

  gprs-on=pppd call gprs; \
 # gprs-on=/usr/bin/wvdial; \
  gprs-pid=cat /var/run/ppp0.pid | head -1;port=13014;\
  mmsc-url=http://iwww.mobitag.nc/mmsc;proxy=192.168.39.201:313;msisdn=100
 ;

 mmsc-library = /usr/local/lib/libmmsbox_mm1.so


 I have several question to understand better how it should work:
 - For what is used the port parameter inside custom-settings - *
 ;port=13014;* ?
 - Should I use *ppd call gprs* or *wvdial* ? should it provide the same
 result ie a pppd connection to my operator ?
 - Is it normal to get the error:
  2010-03-15 15:30:06 [28823] [13] INFO: *System error 2: No such file
 or directory
 *is it linked to the issue?*
 *- I do not see the smsc-id shutting down, why? because of a
 missconfiguration of mmsbox.conf? pppd or wvdial ?*
 *
 In fact mbuni does not start shutting down smsc-id = at... can we
 investiguate further ? how ? :(

 Regards,

 Emmanuel


 2010/3/15 Paul Bagyenda bagye...@dsmagic.com

 Take a look at this:
 http://www.mail-archive.com/users@mbuni.org/msg01844.html


 On Mar 15, 2010, at 03:50, Emmanuel CHANSON wrote:

 Hello,

 Trying to send a MMS through GPRS modem, I am faced to an issue:

 Mbuni CVS-20100125 with extras/mmbox-mm1 library compiled
 Kannel CVS working and handling SMS

 I am not sure about the custom config in mmsbox.conf, expecially how to
 configure wvdial...
 If I stop my smsc through Kannel then I use wvdial I got this thinking the
 config is Ok...

 [r...@kannel mbuni]# wvdial
 -- WvDial: Internet dialer version 1.60
 -- Cannot get information for serial port.
 -- Initializing modem.
 -- Sending: AT+CGDCONT=1,IP,mms
 OK
 -- Modem initialized.
 -- Sending: ATDT*99***1#
 -- Waiting for carrier.
 CONNECT
 ~[7f...@!}!} } }2}...@#}!}$}%\}}} }*} } g}%~
 -- Carrier detected.  Starting PPP immediately.
 -- Starting pppd at Mon Mar 15 11:46:09 2010
 -- Pid of pppd: 23512
 -- Using interface ppp0
 -- local  IP address 10.152.57.32
 -- remote IP address 10.6.6.6

 so PPP connection seems Ok

 But how to send an MMS through this ?

 I sent my MMS using HTTP interface:
 lynx -dump 
 http://localhost:10001/?username=altmmspassword=altmmsto=%2BX/TYPE=PLMNsubject=Testtext=MMS
 

 mmsbox.log
 --
 ...

 2010-03-15 11:35:48 [22395] [3] DEBUG: HTTP: Creating HTTPClient for
 `127.0.0.1'.
 2010-03-15 11:35:48 [22395] [3] DEBUG: HTTP: Created HTTPClient area
 0xb5803ab0.
 2010-03-15 

Re: [Users] MMSBox and MM1 GPRS modem

2010-03-15 Thread Emmanuel CHANSON
*Thanks Nuno for your help,
*
*First thing is that the text I sent before is for receiving a mms, for that
you use the mmsbox exec, so I do not speak of the mmsc exec neither is
configuration file, but I do believe that you must use BOTH exec to be able
to send a mms (not really sure on this).*
*- Need a confirmation from Paul B maybe because I don’t have any clue
about this.
*
For what is used the port parameter inside custom-settings - *;port=13014;*?

*I am eating my brain out about that, worst is one of the few things I don’t
have any notes about.*

*- Maybe Paul can answer to this as well*



Should I use *ppd call gprs* or *wvdial* ? should it provide the same result
ie a pppd connection to my operator ?

*In my opinion wvdial is a easy fast way a user control a gprs modem, and I
know that pppd looked scary at first, but after a few configurations you
will have a great tool that your mbuni will use with ease, and I recommend
you use the pppd script, the pppd mechanism saved me a few times already.***

*- I will check for the ppd script but where can I found it? I remember I
saw pppd script on the internet, but maybe there is some scripts coming with
the pppd library in linux?***



2010-03-15 15:30:06 [28823] [13] INFO: *System error 2: No such file or
directory*

*I’ve came across that error a few times, but not in a command you are
doing. Are you executing mbuni with sudo(root permitions) ? Does
/var/spool/mbuni exist and has write permitions?***

*- without sudo command, directly with root account***

*And Yes /var/spool.mbuni have the write permission (at least for root
account):

*

drwxr-x---.  5 root   root   4096 mars  15 15:21 mbuni

# ll /var/spool/mbuni/
total 12
-rw-r--r--.  1 root root0 mars  15 15:21 mmsbox-cdr.asc
drwxr-x---. 38 root root 4096 mars  15 15:21 mmsbox_dlr
drwxr-x---. 38 root root 4096 mars  15 15:21 mmsbox_incoming
drwxr-x---. 38 root root 4096 mars  16 06:09 mmsbox_outgoing

In fact mbuni does not start shutting down smsc-id = at... can we
investiguate further ? how ? :(

*To this I may have a hint, you have a typo, either on the mail or the conf
file***

- I don't understand, what is a typo, can you reformulate? (sorry for my
English)?



*Both commands must be addressed to the same port http://localhost:13001,
and check if 13001 is the admin-port on kannel conf file
**- Yes I made a mistake, kannel admin-port is 13000 and I put 13001 in,
the mmsbox.conf file but Mbuni did not succeed to work until this part of
the process as it did not try to shutdown smsc in the log, I expected to see
some errors saying it can not access admin-port of Kannel. I have modified
my conf file as follow:
*

# Conf for MMSBox using a modem (MM1)
group = mmsc
id = nokiaphone
type = custom
custom-settings = smsc-on=lynx -dump '
http://localhost:13000/start-smsc?password=**smsc=nokiaphone'http://localhost:13000/start-smsc?password=**smsc=nokiaphone%27
;\
 smsc-off=lynx -dump '
http://localhost:13000/stop-smsc?password=**smsc=nokiaphone'http://localhost:13000/stop-smsc?password=**smsc=nokiaphone%27
;\
 gprs-on=pppd call gprs;gprs-pid=cat /var/run/ppp0.pid|head
-1;port=13014;mmsc-url=http://mms.xxx.tld
/mmsc;proxy=192.168.xx.xx:3130;msisdn=100
mmsc-library = /usr/local/lib/libmmsbox_mm1.so

 Thanks for your time, I really need to succeed to send a MMS through GPRS.

BTW Does anyone succeeded to do this before? Not only receiving a MMS
through GPRS I mean but also send one?


Regards,

Emmanuel


2010/3/15 Nuno Freitas nuno.frei...@nabiasolutions.com

  Hi there Emmanuel,

 First thing is that the text I sent before is for receiving a mms, for that
 you use the mmsbox exec, so I do not speak of the mmsc exec neither is
 configuration file, but I do believe that you must use BOTH exec to be able
 to send a mms (not really sure on this).



 One thing, I don't have the same version of libcurl:
 
 curl-7.19.7-7.fc12.i686
 libcurl-7.19.7-7.fc12.i686
 libcurl-devel-7.19.7-7.fc12.i686
 
 I have a newer version, is it a problem?

 I do not believe that would be a problem, and from the log at first glance
 there is no indication curl is the problem.


 I have several question to understand better how it should
 work:
 - For what is used the port parameter inside custom-settings
 - *;port=13014;* ?

 I am eating my brain out about that, worst is one of the few things I don’t
 have any notes about.


 - Should I use *ppd call gprs* or *wvdial* ? should it provide the same
 result ie a pppd connection to my operator ?

 In my opinion wvdial is a easy fast way a user control a gprs modem, and I
 know that pppd looked scary at first, but after a few configurations you
 will have a great tool that your mbuni will use with ease, and I recommend
 you use the pppd script, the pppd mechanism saved me a few times already.


 - Is it normal to get the error:
  2010-03-15 15:30:06 [28823] [13] INFO: *System error 2: No such file
 or directory*

 I’ve came across that 

[Users] MMSBox and MM1 GPRS modem

2010-03-14 Thread Emmanuel CHANSON
Hello,

Trying to send a MMS through GPRS modem, I am faced to an issue:

Mbuni CVS-20100125 with extras/mmbox-mm1 library compiled
Kannel CVS working and handling SMS

I am not sure about the custom config in mmsbox.conf, expecially how to
configure wvdial...
If I stop my smsc through Kannel then I use wvdial I got this thinking the
config is Ok...

[r...@kannel mbuni]# wvdial
-- WvDial: Internet dialer version 1.60
-- Cannot get information for serial port.
-- Initializing modem.
-- Sending: AT+CGDCONT=1,IP,mms
OK
-- Modem initialized.
-- Sending: ATDT*99***1#
-- Waiting for carrier.
CONNECT
~[7f...@!}!} } }2}...@#}!}$}%\}}} }*} } g}%~
-- Carrier detected.  Starting PPP immediately.
-- Starting pppd at Mon Mar 15 11:46:09 2010
-- Pid of pppd: 23512
-- Using interface ppp0
-- local  IP address 10.152.57.32
-- remote IP address 10.6.6.6

so PPP connection seems Ok

But how to send an MMS through this ?

I sent my MMS using HTTP interface:
lynx -dump 
http://localhost:10001/?username=altmmspassword=altmmsto=%2BX/TYPE=PLMNsubject=Testtext=MMS


mmsbox.log
--
...

2010-03-15 11:35:48 [22395] [3] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2010-03-15 11:35:48 [22395] [3] DEBUG: HTTP: Created HTTPClient area
0xb5803ab0.
2010-03-15 11:35:48 [22395] [14] DEBUG: WSP: Mapping `text/plain', WSP 1.2
to 0x0003.
2010-03-15 11:35:48 [22395] [14] INFO: mmsbox.c:1366 make_and_queue_msg
[mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid
[Mbuni-msg.3348.x3.95.5]: 7-5z-qf3348.3.x395.71
2010-03-15 11:35:48 [22395] [14] INFO: *System error 2: No such file or
directory*
2010-03-15 11:35:48 [22395] [14] DEBUG: HTTP: Destroying HTTPClient area
0xb5803ab0.
2010-03-15 11:35:48 [22395] [14] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2010-03-15 11:35:48 [22395] [14] INFO: mmsbox.c:1613 dispatch_sendmms_recv
[mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued [Accepted:
Mbuni-msg.3348.x3.95.5]
2010-03-15 11:35:49 [22395] [7] DEBUG: Queued to thread 0 for
/var/spool/mbuni/mmsbox_outgoing/7/5z/qf3348.3.x395.71, sendt=1268613348,
tnow=1268613349
2010-03-15 11:35:49 [22395] [16] ERROR: bearerbox.c:1525 sendMsg [MM7]
[n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to
+X/TYPE=PLMN, msgsize=98: *internal error, mm1 notify not started!*
--

mmsbox.conf


group = core
log-file = /var/log/mbuni/mmsbox.log
access-log = /var/log/mbuni/mmsbox-access.log
log-level = 0
admin-port = 10020
admin-password = password
admin-port-ssl = false

group = mbuni
storage-directory = /var/spool/mbuni
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 = alternative
#mmsc-url = http://mbuni:t...@localhost:1982/soap
#incoming-username = user
#incoming-password = pass
#incoming-port = 12345
#type = soap

# Conf for MMSBox using a modem (MM1)
group = mmsc
id = nokiaphone
type = custom
#custom-settings = smsc-on=lynx -dump '
http://localhost:13000/start-smsc?password=**smsc=at'; \
# smsc-off=lynx -dump '
http://localhost:13000/stop-smsc?password=**smsc=at'; \
# gprs-on=/usr/bin/pon o2; \
# gprs-pid=cat /var/run/ppp0.pid | head -1;port=13014;\
# mmsc-url=http://www.mobitag.nc/mmsc;proxy=192.168.xxx.xxx:3130;msisdn=100;
custom-settings = smsc-on=lynx -dump '
http://localhost:13000/start-smsc?password=**smsc=nokiaphone'; \
 smsc-off=lynx -dump '
http://localhost:13001/stop-smsc?password=**smsc=nokiaphone'; \
# gprs-on=pppd call gprs; \
 gprs-on=/usr/bin/wvdial; \
 gprs-pid=cat /var/run/ppp0.pid | head -1;port=13014;\
 mmsc-url=http://iwww.mobitag.nc/mmsc;proxy=192.168.xxx.xxx:3130;msisdn=100
;
mmsc-library = /usr/local/lib/libmmsbox_mm1.so

group = mms-service
name = me
post-url = http://localhost/~bagyenda/test-mbuni.php
catch-all = true
http-post-parameters = fx=trueimages[]=%itext[]=%tskip=1
accept-x-mbuni-headers = true
pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
keyword = test
omit-empty = no
suppress-reply = true
service-code = regular

group = mms-service
name = fullmessage
get-url = http://localhost/images/apache_pb.gif
# http-post-parameters = fx=trueimage=%itext=%t
accept-x-mbuni-headers = true
keyword = thixs

group = send-mms-user
username = altmms
password = altmms
faked-sender = 100

Thanks by advance for your help...

-- 
Emmanuel

@email : emmanuelchan...@gmail.com
___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


Re: [Users] MMSBox and MM1 GPRS modem

2010-03-14 Thread Paul Bagyenda
Take a look at this: http://www.mail-archive.com/users@mbuni.org/msg01844.html


On Mar 15, 2010, at 03:50, Emmanuel CHANSON wrote:

 Hello,
 
 Trying to send a MMS through GPRS modem, I am faced to an issue:
 
 Mbuni CVS-20100125 with extras/mmbox-mm1 library compiled
 Kannel CVS working and handling SMS
 
 I am not sure about the custom config in mmsbox.conf, expecially how to 
 configure wvdial...
 If I stop my smsc through Kannel then I use wvdial I got this thinking the 
 config is Ok...
 
 [r...@kannel mbuni]# wvdial
 -- WvDial: Internet dialer version 1.60
 -- Cannot get information for serial port.
 -- Initializing modem.
 -- Sending: AT+CGDCONT=1,IP,mms
 OK
 -- Modem initialized.
 -- Sending: ATDT*99***1#
 -- Waiting for carrier.
 CONNECT
 ~[7f...@!}!} } }2}...@#}!}$}%\}}} }*} } g}%~
 -- Carrier detected.  Starting PPP immediately.
 -- Starting pppd at Mon Mar 15 11:46:09 2010
 -- Pid of pppd: 23512
 -- Using interface ppp0
 -- local  IP address 10.152.57.32
 -- remote IP address 10.6.6.6
 
 so PPP connection seems Ok
 
 But how to send an MMS through this ?
 
 I sent my MMS using HTTP interface:
 lynx -dump 
 http://localhost:10001/?username=altmmspassword=altmmsto=%2BX/TYPE=PLMNsubject=Testtext=MMS;
 
 mmsbox.log
 --
 ...
 
 2010-03-15 11:35:48 [22395] [3] DEBUG: HTTP: Creating HTTPClient for 
 `127.0.0.1'.
 2010-03-15 11:35:48 [22395] [3] DEBUG: HTTP: Created HTTPClient area 
 0xb5803ab0.
 2010-03-15 11:35:48 [22395] [14] DEBUG: WSP: Mapping `text/plain', WSP 1.2 to 
 0x0003.
 2010-03-15 11:35:48 [22395] [14] INFO: mmsbox.c:1366 make_and_queue_msg 
 [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid 
 [Mbuni-msg.3348.x3.95.5]: 7-5z-qf3348.3.x395.71
 2010-03-15 11:35:48 [22395] [14] INFO: System error 2: No such file or 
 directory
 2010-03-15 11:35:48 [22395] [14] DEBUG: HTTP: Destroying HTTPClient area 
 0xb5803ab0.
 2010-03-15 11:35:48 [22395] [14] DEBUG: HTTP: Destroying HTTPClient for 
 `127.0.0.1'.
 2010-03-15 11:35:48 [22395] [14] INFO: mmsbox.c:1613 dispatch_sendmms_recv 
 [mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued [Accepted: 
 Mbuni-msg.3348.x3.95.5]
 2010-03-15 11:35:49 [22395] [7] DEBUG: Queued to thread 0 for 
 /var/spool/mbuni/mmsbox_outgoing/7/5z/qf3348.3.x395.71, sendt=1268613348, 
 tnow=1268613349
 2010-03-15 11:35:49 [22395] [16] ERROR: bearerbox.c:1525 sendMsg [MM7] 
 [n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to 
 +X/TYPE=PLMN, msgsize=98: internal error, mm1 notify not started!
 --
 
 mmsbox.conf
 
 
 group = core
 log-file = /var/log/mbuni/mmsbox.log
 access-log = /var/log/mbuni/mmsbox-access.log
 log-level = 0
 admin-port = 10020
 admin-password = password
 admin-port-ssl = false
 
 group = mbuni
 storage-directory = /var/spool/mbuni
 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 = alternative
 #mmsc-url = http://mbuni:t...@localhost:1982/soap
 #incoming-username = user
 #incoming-password = pass
 #incoming-port = 12345
 #type = soap
 
 # Conf for MMSBox using a modem (MM1)
 group = mmsc
 id = nokiaphone
 type = custom
 #custom-settings = smsc-on=lynx -dump 
 'http://localhost:13000/start-smsc?password=**smsc=at'; \
 # smsc-off=lynx -dump 
 'http://localhost:13000/stop-smsc?password=**smsc=at'; \
 # gprs-on=/usr/bin/pon o2; \
 # gprs-pid=cat /var/run/ppp0.pid | head -1;port=13014;\
 # mmsc-url=http://www.mobitag.nc/mmsc;proxy=192.168.xxx.xxx:3130;msisdn=100;
 custom-settings = smsc-on=lynx -dump 
 'http://localhost:13000/start-smsc?password=**smsc=nokiaphone'; \
  smsc-off=lynx -dump 
 'http://localhost:13001/stop-smsc?password=**smsc=nokiaphone'; \
 # gprs-on=pppd call gprs; \
  gprs-on=/usr/bin/wvdial; \
  gprs-pid=cat /var/run/ppp0.pid | head -1;port=13014;\
  mmsc-url=http://iwww.mobitag.nc/mmsc;proxy=192.168.xxx.xxx:3130;msisdn=100;;
 mmsc-library = /usr/local/lib/libmmsbox_mm1.so
 
 group = mms-service
 name = me
 post-url = http://localhost/~bagyenda/test-mbuni.php
 catch-all = true
 http-post-parameters = fx=trueimages[]=%itext[]=%tskip=1
 accept-x-mbuni-headers = true
 pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
 keyword = test
 omit-empty = no
 suppress-reply = true
 service-code = regular
 
 group = mms-service
 name = fullmessage
 get-url = http://localhost/images/apache_pb.gif
 # http-post-parameters = fx=trueimage=%itext=%t
 accept-x-mbuni-headers = true
 keyword = thixs
 
 group = send-mms-user
 username = altmms
 password = altmms
 faked-sender = 100
 
 Thanks by advance for your help...
 
 -- 
 Emmanuel
 
 @email : emmanuelchan...@gmail.com
 ___
 Users mailing list
 Users@mbuni.org
 http://lists.mbuni.org/mailman/listinfo/users

___
Users mailing list
Users@mbuni.org

Re: [Users] MMSBox and MM1 GPRS modem

2010-03-14 Thread Emmanuel CHANSON
Thanks for the mail-archive ¨Paul,

I tried configuring pppd like Nuno did but same result:

mmsbox.log:

2010-03-15 15:30:06 [28823] [3] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2010-03-15 15:30:06 [28823] [3] DEBUG: HTTP: Created HTTPClient area
0xb56128b0.
2010-03-15 15:30:06 [28823] [13] DEBUG: WSP: Mapping `text/plain', WSP 1.2
to 0x0003.
2010-03-15 15:30:06 [28823] [13] INFO: mmsbox.c:1366 make_and_queue_msg
[mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid
[Mbuni-msg.7406.x1.23.53]: b-qf7406.1.x823.70
2010-03-15 15:30:06 [28823] [13] INFO: *System error 2: No such file or
directory*
2010-03-15 15:30:06 [28823] [13] DEBUG: HTTP: Destroying HTTPClient area
0xb56128b0.
2010-03-15 15:30:06 [28823] [13] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2010-03-15 15:30:06 [28823] [13] INFO: mmsbox.c:1613 dispatch_sendmms_recv
[mmsbox] [n/a] MMSBox.mmssend: u=altmms, Queued [Accepted:
Mbuni-msg.7406.x1.23.53]
2010-03-15 15:30:08 [28823] [7] DEBUG: Queued to thread 0 for
/var/spool/mbuni/mmsbox_outgoing/b/qf7406.1.x823.70, sendt=1268627406,
tnow=1268627408
2010-03-15 15:30:08 [28823] [18] ERROR: bearerbox.c:1525 sendMsg [MM7]
[n/a] Retry later MMSBox Outgoing Queue MMS Send: From 100/TYPE=PLMN, to
+687XX/TYPE=PLMN, msgsize=95: *internal error, mm1 notify not started!*

mbunibox.conf:
--
# Conf for MMSBox using a modem (MM1)
group = mmsc
id = nokiaphone
type = custom
#custom-settings = smsc-on=lynx -dump '
http://localhost:13000/start-smsc?password=m...@c0m!smsc=at'; \
# smsc-off=lynx -dump '
http://localhost:13000/stop-smsc?password=m...@c0m!smsc=at'; \
# gprs-on=/usr/bin/pon o2; \
# gprs-pid=cat /var/run/ppp0.pid | head -1;port=13014;\
# mmsc-url=http://www.mobitag.nc/mmsc;proxy=192.168.39.201:3130;msisdn=100;
custom-settings = smsc-on=lynx -dump '
http://localhost:13000/start-smsc?password=m...@c0m!smsc=nokiaphone'; \
 smsc-off=lynx -dump '
http://localhost:13001/stop-smsc?password=m...@c0m!smsc=nokiaphone'; \
 gprs-on=pppd call gprs; \
# gprs-on=/usr/bin/wvdial; \
 gprs-pid=cat /var/run/ppp0.pid | head -1;port=13014;\
 mmsc-url=http://iwww.mobitag.nc/mmsc;proxy=192.168.39.201:313;msisdn=100;;
mmsc-library = /usr/local/lib/libmmsbox_mm1.so

I have several question to understand better how it should work:
- For what is used the port parameter inside custom-settings - *
;port=13014;* ?
- Should I use *ppd call gprs* or *wvdial* ? should it provide the same
result ie a pppd connection to my operator ?
- Is it normal to get the error:
 2010-03-15 15:30:06 [28823] [13] INFO: *System error 2: No such file or
directory
*is it linked to the issue?*
*- I do not see the smsc-id shutting down, why? because of a
missconfiguration of mmsbox.conf? pppd or wvdial ?*
*
In fact mbuni does not start shutting down smsc-id = at... can we
investiguate further ? how ? :(

Regards,

Emmanuel


2010/3/15 Paul Bagyenda bagye...@dsmagic.com

 Take a look at this:
 http://www.mail-archive.com/users@mbuni.org/msg01844.html


 On Mar 15, 2010, at 03:50, Emmanuel CHANSON wrote:

 Hello,

 Trying to send a MMS through GPRS modem, I am faced to an issue:

 Mbuni CVS-20100125 with extras/mmbox-mm1 library compiled
 Kannel CVS working and handling SMS

 I am not sure about the custom config in mmsbox.conf, expecially how to
 configure wvdial...
 If I stop my smsc through Kannel then I use wvdial I got this thinking the
 config is Ok...

 [r...@kannel mbuni]# wvdial
 -- WvDial: Internet dialer version 1.60
 -- Cannot get information for serial port.
 -- Initializing modem.
 -- Sending: AT+CGDCONT=1,IP,mms
 OK
 -- Modem initialized.
 -- Sending: ATDT*99***1#
 -- Waiting for carrier.
 CONNECT
 ~[7f...@!}!} } }2}...@#}!}$}%\}}} }*} } g}%~
 -- Carrier detected.  Starting PPP immediately.
 -- Starting pppd at Mon Mar 15 11:46:09 2010
 -- Pid of pppd: 23512
 -- Using interface ppp0
 -- local  IP address 10.152.57.32
 -- remote IP address 10.6.6.6

 so PPP connection seems Ok

 But how to send an MMS through this ?

 I sent my MMS using HTTP interface:
 lynx -dump 
 http://localhost:10001/?username=altmmspassword=altmmsto=%2BX/TYPE=PLMNsubject=Testtext=MMS
 

 mmsbox.log
 --
 ...

 2010-03-15 11:35:48 [22395] [3] DEBUG: HTTP: Creating HTTPClient for
 `127.0.0.1'.
 2010-03-15 11:35:48 [22395] [3] DEBUG: HTTP: Created HTTPClient area
 0xb5803ab0.
 2010-03-15 11:35:48 [22395] [14] DEBUG: WSP: Mapping `text/plain', WSP 1.2
 to 0x0003.
 2010-03-15 11:35:48 [22395] [14] INFO: mmsbox.c:1366 make_and_queue_msg
 [mmsbox] [n/a] MMSBox: Queued message from service [sendmms-user], [transid
 [Mbuni-msg.3348.x3.95.5]: 7-5z-qf3348.3.x395.71
 2010-03-15 11:35:48 [22395] [14] INFO: *System error 2: No such file or
 directory*
 2010-03-15 11:35:48 [22395] [14] DEBUG: HTTP: Destroying HTTPClient area
 0xb5803ab0.
 2010-03-15 11:35:48 [22395] [14] DEBUG: HTTP: Destroying HTTPClient for
 `127.0.0.1'.
 2010-03-15 11:35:48 [22395] [14] INFO: mmsbox.c:1613