Re: [Users] From Header value mmsbox with MM1 m-send-req
When you use the mm1 module of mmsbox to send an MMS, you obviously cannot fake the sender. The MMSC pretty much always inserts a sender address for you, hence Mbuni removes the sender address and tells the MMSC to insert one. On Aug 19, 2010, at 23:53, Emmanuel CHANSON wrote: Yes, I know that in SMS messaging it is restricted, but in MMS I am quite sure it is possible by setting the From header inside a MMS to a given string. (test done in another context without Mbuni). The thing is that I ask some info about how Mbuni handle these different parameters (sender, faked-sender, ...) because I have a behavior I don't understand where: - I have the string let's say Sender set in my config file, - I send my MMS - Inside mbuni logs I do see 'from sen...@unknown' - In the pcap trace I don't see any value in From Header !! the field is empty - On my mobile phone I receive the MMS with +123456789 from value I think because the From value inside pcap trace is empty then MMS-C put the Sender modem MSISDN. So is there a problem when the sender is not a MSISDN address ? In mmlib/mms_util.c I found: if (isphonenum(*address) || (typ octstr_str_case_compare(typ, /TYPE=PLMN) == 0)) { mms_normalize_phonenum(address, unified_prefix, strip_prefixes); octstr_append(*address, keep_suffix ? octstr_imm(/TYPE=PLMN) : octstr_imm()); } else if (typ) octstr_append(*address, keep_suffix ? typ : octstr_imm()); else octstr_append(*address, keep_suffix ? octstr_imm(@unknown) : octstr_imm()); octstr_destroy(typ); } Not being an expert in C I wonder if Mbuni is able to replace a MSISDN address by a string and why it should add '@unknown' after the string. In any case even with this it don't seems to work as my From field value is empty... Maybe some Mbuni experts a some clues about this ? Regards, Emmanuel 2010/8/19 Alvaro Cornejo cornejo.alv...@gmail.com Emmanuel Don't know much about mbuni, but for sms messaging with gsm modems it is no possible to set the From variable. It allways will be the SIM phone number (MSISDN). This feature is restricted by the operators in general. You can do that with SMPP. As you connect through GPRS, it might be different. Better ask your provider if it is possible. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Wed, Aug 18, 2010 at 11:39 PM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: One question about the sender value in mmsbox: Mbuni CVS + GPRS modem as mmsc. How mmsbox handle the From value from if the value is not an MSISDN like +x/TYPE=PLMN ? I do see in logs that mbuni seems to send a MMS with my string value in From Header BUT: - From value is empty in a pcap trace token when mmsbox sent the MMS to MMSC - I receive on my destination mobile sender info like my real modem SIM number ie +123456789 My purpose is to send a MMS with from=string received like this on destination mobile for instance recipient will receive a MMS coming from MYCOMPANY. In mmsbox.conf: group = send-mms-user username = tester password = foobar faked-sender = Sender Test sendmms command: - lynx -dump http://localhost:10003/?username=testerpassword=foobarmmsc=nokiaphonefrom=Senderto=%2Bx/TYPE=PLMNsubject=Testcontent-url=http://localhost/mms/mms-2.smil; mmsbox.log: ... bearerbox.c:1519 sendMsg [MM7] [n/a] Sent MMSBox Outgoing Queue MMS Send: From sen...@unknown, to +x/TYPE=PLMN, msgsize=96880: msgid=[725F16D40E89735B8F6FE52B698E4CB4] Regards, Emmanuel ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com ___ Users mailing list 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] From Header value mmsbox with MM1 m-send-req
*hence Mbuni removes the sender address and tells the MMSC to insert one * And is it possible to patch Mbuni to modify this behavior ? Regards, Emmanuel* * 2010/8/23 Paul Bagyenda bagye...@dsmagic.com When you use the mm1 module of mmsbox to send an MMS, you obviously cannot fake the sender. The MMSC pretty much always inserts a sender address for you, hence Mbuni removes the sender address and tells the MMSC to insert one. On Aug 19, 2010, at 23:53, Emmanuel CHANSON wrote: Yes, I know that in SMS messaging it is restricted, but in MMS I am quite sure it is possible by setting the *From* header inside a MMS to a given string. (test done in another context without Mbuni). The thing is that I ask some info about how Mbuni handle these different parameters (sender, faked-sender, ...) because I have a behavior I don't understand where: - I have the string let's say *Sender* set in my config file, - I send my MMS - Inside mbuni logs I do see *'from sen...@unknown*' - In the pcap trace I don't see any value in *From* Header !! the field is empty - On my mobile phone I receive the MMS with +123456789 from value I think because the *From* value inside pcap trace is empty then MMS-C put the Sender modem MSISDN. So is there a problem when the sender is not a MSISDN address ? In mmlib/mms_util.c I found: *if (isphonenum(*address) || (typ octstr_str_case_compare(typ, /TYPE=PLMN) == 0)) { mms_normalize_phonenum(address, unified_prefix, strip_prefixes); octstr_append(*address, keep_suffix ? octstr_imm(/TYPE=PLMN) : octstr_imm()); } else if (typ) octstr_append(*address, keep_suffix ? typ : octstr_imm()); else octstr_append(*address, keep_suffix ? octstr_imm(@unknown) : octstr_imm()); octstr_destroy(typ); }* Not being an expert in C I wonder if Mbuni is able to replace a MSISDN address by a string and why it should add '@unknown' after the string. In any case even with this it don't seems to work as my From field value is empty... Maybe some Mbuni experts a some clues about this ? Regards, Emmanuel 2010/8/19 Alvaro Cornejo cornejo.alv...@gmail.com Emmanuel Don't know much about mbuni, but for sms messaging with gsm modems it is no possible to set the From variable. It allways will be the SIM phone number (MSISDN). This feature is restricted by the operators in general. You can do that with SMPP. As you connect through GPRS, it might be different. Better ask your provider if it is possible. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Wed, Aug 18, 2010 at 11:39 PM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: One question about the sender value in mmsbox: Mbuni CVS + GPRS modem as mmsc. How mmsbox handle the From value from if the value is not an MSISDN like +x/TYPE=PLMN ? I do see in logs that mbuni seems to send a MMS with my string value in From Header BUT: - From value is empty in a pcap trace token when mmsbox sent the MMS to MMSC - I receive on my destination mobile sender info like my real modem SIM number ie +123456789 My purpose is to send a MMS with from=string received like this on destination mobile for instance recipient will receive a MMS coming from MYCOMPANY. In mmsbox.conf: group = send-mms-user username = tester password = foobar faked-sender = Sender Test sendmms command: - lynx -dump http://localhost:10003/?username=testerpassword=foobarmmsc=nokiaphonefrom=Senderto=%2Bx/TYPE=PLMNsubject=Testcontent-url=http://localhost/mms/mms-2.smil mmsbox.log: ... bearerbox.c:1519 sendMsg [MM7] [n/a] Sent MMSBox Outgoing Queue MMS Send: From sen...@unknown, to +x/TYPE=PLMN, msgsize=96880: msgid=[725F16D40E89735B8F6FE52B698E4CB4] Regards, Emmanuel ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie:
[Users] Mbuni Huawei E220
Does anyone has already configured a Huawei E220 with Mbuni and pppd ? I am looking for any config with E220. Note: I use actually a Nokia 6230 that work well if anybody needs config files. Regards, -- Emmanuel ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users
[Users] Re: Mbuni mmsbox DLR
Ok I found out my issue. I set dlr-url=http://192.168.0.x/path/dlr-mbuni.php and it works well I had previsouly a filter in my dlr php script that prevent the script to be triggered correctly. I try now to develop the DLR script that can parse the Mbuni Request Headers and update my MySQL database accordingly. Regards, Emmanuel 2010/8/19 Emmanuel CHANSON emmanuelchan...@gmail.com Hello, After successfully having configured mmsbox to handle MM1 through GPRS modem (mm1-send-req), I try to configure DLR-URL: *How to handle DLR correctly ? I have some missundertanding. - What is the IP address to set in dlr-url parameter ? - How can I handle successful or failed status of an incoming MMS DLR in a PHP script (some examples ?)* I am using the following command to test the service: lynx -dump http://localhost:10003/?username=testerpassword=foobarmmsc=nokiaphoneto=%2B687783548/TYPE=PLMN+%2B687773502/TYPE=PLMNsubject=Testcontent-url=http://localhost/mms/mms-2.smil *dlr-url=http://xxx.xxx.xxx.xxx/playsms/plugin/gateway/mbuni/dlr.php* What IP address do I have to set in order to trig the url ? Is it the one obtain after successfull pppd connection ? exemple below 10.152.227.254 ? *local IP address 10.152.227.254 remote IP address 10.6.6.6 * mmsbox.log after mms is sent: - ... 2010-08-19 11:52:13 [8178] [5] INFO: mmsbox_mm1.c:543 handle_mm1 [mmsbox-mm1] [n/a] GPRS turned off returned: 0 2010-08-19 11:52:15 [8178] [0] DEBUG: Queued to thread 3 for /var/spool/mbuni/mmsbox_incoming/qf9131.7.x178.53, sendt=0, tnow=1282179135 2010-08-19 11:52:15 [8178] [25] DEBUG: Queue contains 0 pending requests. 2010-08-19 11:52:15 [8178] [25] DEBUG: Parsing URL ` http://10.152.227.254/playsms/plugin/gateway/mbuni/dlr.php': 2010-08-19 11:52:15 [8178] [25] DEBUG: Scheme: http:// 2010-08-19 11:52:15 [8178] [25] DEBUG: Host: 10.152.227.254 2010-08-19 11:52:15 [8178] [25] DEBUG: Port: 80 2010-08-19 11:52:15 [8178] [25] DEBUG: Username: (null) 2010-08-19 11:52:15 [8178] [25] DEBUG: Password: (null) 2010-08-19 11:52:15 [8178] [25] DEBUG: Path: /playsms/plugin/gateway/mbuni/dlr.php 2010-08-19 11:52:15 [8178] [25] DEBUG: Query: (null) 2010-08-19 11:52:15 [8178] [25] DEBUG: Fragment: (null) 2010-08-19 11:52:15 [8178] [25] DEBUG: Connecting nonblocking to 10.152.227.254 2010-08-19 11:52:15 [8178] [25] DEBUG: HTTP: Opening connection to ` 10.152.227.254:80' (fd=65). 2010-08-19 11:52:15 [8178] [25] DEBUG: Socket connecting 2010-08-19 11:52:36 [8178] [24] DEBUG: Get info about connecting socket 2010-08-19 11:52:36 [8178] [24] DEBUG: Socket not connected 2010-08-19 11:52:36 [8178] [24] ERROR: *Couldn't fetch http://10.152.227.254/playsms/plugin/gateway/mbuni/dlr.php* Regards, -- Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com ___ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users