Re: get-url checklist
Hi, I am very new to Kannel as well. Your configuration seems fine to me.. Anyway, to configure the fakesmsc you need to create an entry in you kannel.conf # SMSC Fake group = smsc smsc = fake smsc-id = 1 port = 13013 Then you must find the fakesmsc executable. Its location depends on your distro but basically to execute it just run this: ./fakesmsc -z 7 -m 2 -r 13013 123rand 345rand text nop rand The -r means the port in case it's not the default one (I think its port 1 but in my distro it's already being used). If you just run ./fakesmsc you will find the meaning of the other command line switches. Best Regards.
wap push project
Hi i want to do wap push project to send ringtone and pictuer to mobile this is my kannel config / group = core admin-port = 15000 admin-password = ros123 admin-deny-ip = *.*.*.* admin-allow-ip = wapbox-port = 13002 wdp-interface-name = vas log-file = /var/log/kannel/bearerbox.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 group = wapbox bearerbox-host = localhost log-file = /var/log/kannel/wapbox.log group = ppg ppg-url = /wappush ppg-port = 8080 concurrent-pushes = 50 users = 52 ppg-allow-ip =194.100.32.125;127.0.0.1 trusted-pi = false group = wap-push-user wap-push-user = picom ppg-username = vas ppg-password = ros123 allow-ip = 62.254.217.163 / and this is my code $host = 'localhost'; $port = '8080'; $url = http://$host:$port;; $wap_push_id = 1; $xx=http://ci/uploads/$name;; //$file= bin2hex($xx); $body = --multipart-boundary\r\n. Content-type: application/xml\r\n\r\n. '?xml version=1.0?'.\r\n. '!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN'.\r\n. 'http://www.wapforum.org/DTD/pap_1.0.dtd; '.\r\n. 'pap'.\r\n. 'push-message push-id='.$wap_push_id.''.\r\n. 'address address-value=WAPPUSH='.$phone_no.'/TYPE=PLMN at ppg.nokia.com/'.\r\n. 'quality-of-service delivery-method=unconfirmed network=GSM bearer=SMS/'. /push-message\r\n. /pap\r\n\r\n. --multipart-boundary\r\n. Content-type: text/vnd.wap.si\r\n\r\n. '?xml version=1.0?'.\r\n. '!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN'.\r\n. 'http://www.wapforum.org/DTD/si.dtd;'.\r\n. si\r\n. 'indication action=signal-high si-id='.$wap_push_id.' href='.$push_url.''.$text.'/indication'.\r\n. /si\r\n. --multipart-boundary--\r\n; $post = POST /wappush HTTP/1.1\r\n. Host: $host:$port\r\n. Authorization: Basic .base64_encode($ppg_user:$ppg_pass).\r\n; X-Kannel-SMSC: $smsc_id\r\n. 'Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml'.\r\n. Content-Length: .strlen($body).\r\n.\r\n.$body; //echo $url; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt ($ch,CURLOPT_CUSTOMREQUEST , $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $reply = curl_exec($ch); curl_close ($ch); if (empty($reply)) { print Sorry, example.com are a bunch of poopy-heads.p; } else { print $reply; } /// the problem is where and how i put the contant ( ringtone or pictuer . ) and i don't use sms gatway that effect on sending ( must i use it to send mms ). can any one help me and thanx. between -00-00 and -99-99 hr size=1 Yahoo! for Good helps you a href=http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/;make a difference/a
RE: get-url checklist
Hi Ricardo, Where does the kannel pick up the content from like ringtones and the images? We have also been trying for the same configuration that was being reported earlier. Is there a configuration in kannel which specifies the directory location from where this fakemsc will pick up the images and send it to the handset? Please let us know. Thanks in Advance, Srikanth From: ricardo jorge [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 2:25 PM To: users@kannel.org Subject: Re: get-url checklist Hi, I am very new to Kannel as well. Your configuration seems fine to me.. Anyway, to configure the fakesmsc you need to create an entry in you kannel.conf # SMSC Fake group = smsc smsc = fake smsc-id = 1 port = 13013 Then you must find the fakesmsc executable. Its location depends on your distro but basically to execute it just run this: ./fakesmsc -z 7 -m 2 -r 13013 123rand 345rand text nop rand The -r means the port in case it's not the default one (I think its port 1 but in my distro it's already being used). If you just run ./fakesmsc you will find the meaning of the other command line switches. Best Regards. SASKEN BUSINESS DISCLAIMER - This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited (Sasken) unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email
Re[2]: wap push project
the rich media content can not be sent to the mobiles you send the location of the content via WAP PUSH sms regarding the wap push creation, sending and delivery reports search the mailing list, there are several very detailed explanations for. -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 15 Април 2008 г. To: seik Subject:wap push project thanks but how can i send the contant to mobile and how i can tell him where contant location ? seik [EMAIL PROTECTED] wrote: in short, you do not send directly any content to the recipient via wap push its binary sms providing the receiver's mobile device with information about the URL of web server hosted content so in general, via the wap push sms you send the location, i.e. the URL of a particular file to the client. its their choice to download the content or not. -Original Message- From: mohmmad jarwan [EMAIL PROTECTED] Sent: 15 ? 2008 ?. To: seik Subject:wap push project Hi i want to do wap push project to send ringtone and pictuer to mobile this is my kannel config / group = core admin-port = 15000 admin-password = ros123 admin-deny-ip = *.*.*.* admin-allow-ip = wapbox-port = 13002 wdp-interface-name = vas log-file = /var/log/kannel/bearerbox.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 group = wapbox bearerbox-host = localhost log-file = /var/log/kannel/wapbox.log group = ppg ppg-url = /wappush ppg-port = 8080 concurrent-pushes = 50 users = 52 ppg-allow-ip =194.100.32.125;127.0.0.1 trusted-pi = false group = wap-push-user wap-push-user = picom ppg-username = vas ppg-password = ros123 allow-ip = 62.254.217.163 / and this is my code $host = 'localhost'; $port = '8080'; $url = http://$host:$port;; $wap_push_id = 1; $xx=http://ci/uploads/$name;; //$file= bin2hex($xx); $body = --multipart-boundary\r\n. Content-type: application/xml\r\n\r\n. ' '.\r\n. ' 'http://www.wapforum.org/DTD/pap_1.0.dtd; '.\r\n. ' '.\r\n. ' '.\r\n. ' address-value=WAPPUSH='.$phone_no.'/TYPE=PLMN ppg.nokia.com/'.\r\n. ' bearer=SMS/'. \r\n. \r\n\r\n. --multipart-boundary\r\n. Content-type: text/vnd.wap.si\r\n\r\n. ' '.\r\n. ' 'http://www.wapforum.org/DTD/si.dtd;'.\r\n. \r\n. ' href='.$push_url.''.$text.' '.\r\n. \r\n. --multipart-boundary--\r\n; $post = POST /wappush HTTP/1.1\r\n. Host: $host:$port\r\n. Authorization: Basic .base64_encode($ppg_user:$ppg_pass).\r\n; X-Kannel-SMSC: $smsc_id\r\n. 'Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml'.\r\n. Content-Length: .strlen($body).\r\n.\r\n.$body; //echo $url; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt ($ch,CURLOPT_CUSTOMREQUEST , $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $reply = curl_exec($ch); curl_close ($ch); if (empty($reply)) { print Sorry, example.com are a bunch of poopy-heads. ; } else { print $reply; } /// the problem is where and how i put the contant ( ringtone or pictuer . ) and i don't use sms gatway that effect on sending ( must i use it to send mms ). can any one help me and thanx. between -00-00 and -99-99 Yahoo! for Good helps you href=http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/;make a difference between -00-00 and -99-99 hr size=1 Yahoo! for Good helps you a href=http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/;make a difference/a
Re: wap push project
thanks but how can i send the contant to mobile and how i can tell him where contant location ? seik [EMAIL PROTECTED] wrote: in short, you do not send directly any content to the recipient via wap push its binary sms providing the receiver's mobile device with information about the URL of web server hosted content so in general, via the wap push sms you send the location, i.e. the URL of a particular file to the client. its their choice to download the content or not. -Original Message- From: mohmmad jarwan [EMAIL PROTECTED] Sent: 15 ? 2008 ?. To: seik Subject:wap push project Hi i want to do wap push project to send ringtone and pictuer to mobile this is my kannel config / group = core admin-port = 15000 admin-password = ros123 admin-deny-ip = *.*.*.* admin-allow-ip = wapbox-port = 13002 wdp-interface-name = vas log-file = /var/log/kannel/bearerbox.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 group = wapbox bearerbox-host = localhost log-file = /var/log/kannel/wapbox.log group = ppg ppg-url = /wappush ppg-port = 8080 concurrent-pushes = 50 users = 52 ppg-allow-ip =194.100.32.125;127.0.0.1 trusted-pi = false group = wap-push-user wap-push-user = picom ppg-username = vas ppg-password = ros123 allow-ip = 62.254.217.163 / and this is my code $host = 'localhost'; $port = '8080'; $url = http://$host:$port;; $wap_push_id = 1; $xx=http://ci/uploads/$name;; //$file= bin2hex($xx); $body = --multipart-boundary\r\n. Content-type: application/xml\r\n\r\n. ' '.\r\n. ' 'http://www.wapforum.org/DTD/pap_1.0.dtd; '.\r\n. ' '.\r\n. ' '.\r\n. ' address-value=WAPPUSH='.$phone_no.'/TYPE=PLMN ppg.nokia.com/'.\r\n. ' bearer=SMS/'. \r\n. \r\n\r\n. --multipart-boundary\r\n. Content-type: text/vnd.wap.si\r\n\r\n. ' '.\r\n. ' 'http://www.wapforum.org/DTD/si.dtd;'.\r\n. \r\n. ' href='.$push_url.''.$text.' '.\r\n. \r\n. --multipart-boundary--\r\n; $post = POST /wappush HTTP/1.1\r\n. Host: $host:$port\r\n. Authorization: Basic .base64_encode($ppg_user:$ppg_pass).\r\n; X-Kannel-SMSC: $smsc_id\r\n. 'Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml'.\r\n. Content-Length: .strlen($body).\r\n.\r\n.$body; //echo $url; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt ($ch,CURLOPT_CUSTOMREQUEST , $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $reply = curl_exec($ch); curl_close ($ch); if (empty($reply)) { print Sorry, example.com are a bunch of poopy-heads. ; } else { print $reply; } /// the problem is where and how i put the contant ( ringtone or pictuer . ) and i don't use sms gatway that effect on sending ( must i use it to send mms ). can any one help me and thanx. between -00-00 and -99-99 Yahoo! for Good helps you href=http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/;make a difference ___ Yahoo! For Good helps you make a difference http://uk.promotions.yahoo.com/forgood/
RE: get-url checklist
The fakesmsc doesn't communicate with real devices. It's just for testing without having to use real connections. :)
RE: get-url checklist
Yes, you are right. And we are not using real devices but software phone simulators with WAP/SMS capabilities over IP. Thanks, Srikanth From: Ricardo Jorge [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 2:33 PM To: users@kannel.org Subject: RE: get-url checklist The fakesmsc doesn't communicate with real devices. It's just for testing without having to use real connections. :) SASKEN BUSINESS DISCLAIMER - This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited (Sasken) unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email
Re: get-url checklist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 ricardo jorge wrote: | Hi, Hi! | Anyway, to configure the fakesmsc you need to create an entry in you | kannel.conf I didn't realize I needed a FakeSMSC configuration block to make get-url work... - -- Arturo Buanzo Busleiman Reliable inter-continental Mail Relay Service - Ask me! Independent Security Consultant - SANS - OISSG http://www.buanzo.com.ar/pro/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIBJc0AlpOsGhXcE0RCo/qAJ48fSXFXl+oepaCSPVpJlI6F0VyeQCePoC3 Tc2oZD1XoML/8xFzBHpNTu4= =MeGe -END PGP SIGNATURE-
Unsubscribe
Unsubscribe
queued messages?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 What does this mean (status page)? SMS: received 1 (50 queued), sent 0 (0 queued), store size 50 Could it be related to the smsbox_list empty warning?? also, I'm using this new config for my sms-service: group = sms-service keyword = default keyword-regex = .* ~ max-messages = 0 catch-all = true get-url = http://somesite.com/getsms.php?phone=%pmsg=%r; That's the only sms-service group. Any ideas why it doesn't work? I'm pretty sure it's related to the smsbox_list empty warning: 2008-04-15 08:06:02 [5912] [4] WARNING: smsbox_list empty! (repeats the same number of queued messages in store, 51) - -- Arturo Buanzo Busleiman Reliable inter-continental Mail Relay Service - Ask me! Independent Security Consultant - SANS - OISSG http://www.buanzo.com.ar/pro/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIBKj8AlpOsGhXcE0RClY6AJ9rtXtJiFdcRr0R5N6ynQi+GkMjKACfePti 5Uq1tUVVVBMqYOiyvIto018= =FRIt -END PGP SIGNATURE-
Re: get-url checklist
You don't! fakesmsc is to simulate a connection with a real smsc. On a real scenario, you get: smsc --[smpp]-- bearerbox --[socket]-- smsbox --[get-url]-- application fakesmsc changes the first leg to: fakesmsc --[socket]-- bearerbox -- Regards, Alejandro On Tue, Apr 15, 2008 at 8:53 AM, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 ricardo jorge wrote: | Hi, Hi! | Anyway, to configure the fakesmsc you need to create an entry in you | kannel.conf I didn't realize I needed a FakeSMSC configuration block to make get-url work... - -- Arturo Buanzo Busleiman Reliable inter-continental Mail Relay Service - Ask me! Independent Security Consultant - SANS - OISSG http://www.buanzo.com.ar/pro/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIBJc0AlpOsGhXcE0RCo/qAJ48fSXFXl+oepaCSPVpJlI6F0VyeQCePoC3 Tc2oZD1XoML/8xFzBHpNTu4= =MeGe -END PGP SIGNATURE-
Re: get-url checklist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Alejandro Guerrieri wrote: | fakesmsc is to simulate a connection with a real smsc. On a real | scenario, you get: [...] Yes, that's what I thought ;) Anyway, I don't understand what's wrong with this setup... and the smsbox_list empty warning seems pretty suspicious... - -- Arturo Buanzo Busleiman Reliable inter-continental Mail Relay Service - Ask me! Independent Security Consultant - SANS - OISSG http://www.buanzo.com.ar/pro/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIBK2FAlpOsGhXcE0RCvpBAJ9ELMrclg7jOXnqO9/43SgHSKN9MQCfeOyz k/lLYvS1YJWcWlcdA3F9vhE= =AcYO -END PGP SIGNATURE-
Re: queued messages?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Alejandro Guerrieri wrote: | All boxes are reading the same conf files right? all localhost. But I just solved it. I commented out this: group = smsbox #smsbox-id = SMSBox1 restarted kannel... and the queue was processed, and all get-url requests happened. - -- Arturo Buanzo Busleiman Reliable inter-continental Mail Relay Service - Ask me! Independent Security Consultant - SANS - OISSG http://www.buanzo.com.ar/pro/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIBLGhAlpOsGhXcE0RCtYbAJ4mUDg+SuKzTtm2WmmO9JMUXKsAFgCeKDlb gFy35ZZstEyENpOL92kgVuQ= =YHDP -END PGP SIGNATURE-
Re: queued messages?
All boxes are reading the same conf files right? On Tue, Apr 15, 2008 at 10:09 AM, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 What does this mean (status page)? SMS: received 1 (50 queued), sent 0 (0 queued), store size 50 Could it be related to the smsbox_list empty warning?? also, I'm using this new config for my sms-service: group = sms-service keyword = default keyword-regex = .* ~ max-messages = 0 catch-all = true get-url = http://somesite.com/getsms.php?phone=%pmsg=%r; That's the only sms-service group. Any ideas why it doesn't work? I'm pretty sure it's related to the smsbox_list empty warning: 2008-04-15 08:06:02 [5912] [4] WARNING: smsbox_list empty! (repeats the same number of queued messages in store, 51) - -- Arturo Buanzo Busleiman Reliable inter-continental Mail Relay Service - Ask me! Independent Security Consultant - SANS - OISSG http://www.buanzo.com.ar/pro/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIBKj8AlpOsGhXcE0RClY6AJ9rtXtJiFdcRr0R5N6ynQi+GkMjKACfePti 5Uq1tUVVVBMqYOiyvIto018= =FRIt -END PGP SIGNATURE-
Re: get-url checklist
The smsbox_list empty message indicates that bearerbox doesn't know where to send this message to. Your conf looks fine at first sight. Have you tried matching a specific keyword, or removing the catch-all variable (default should work anyway). Also, try replacing the get-url with: text = Hello world So you can rule out some problem with the http libraries. Regards, Alejandro On Tue, Apr 15, 2008 at 10:28 AM, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Alejandro Guerrieri wrote: | fakesmsc is to simulate a connection with a real smsc. On a real | scenario, you get: [...] Yes, that's what I thought ;) Anyway, I don't understand what's wrong with this setup... and the smsbox_list empty warning seems pretty suspicious... - -- Arturo Buanzo Busleiman Reliable inter-continental Mail Relay Service - Ask me! Independent Security Consultant - SANS - OISSG http://www.buanzo.com.ar/pro/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIBK2FAlpOsGhXcE0RCvpBAJ9ELMrclg7jOXnqO9/43SgHSKN9MQCfeOyz k/lLYvS1YJWcWlcdA3F9vhE= =AcYO -END PGP SIGNATURE-
Re: Re[2]: wap push project
On that Wap Push you're sending an SI (Service Indication) which contains the URL of the content to download So you must serve your content on a webserver On Tue, Apr 15, 2008 at 6:50 AM, seik [EMAIL PROTECTED] wrote: the rich media content can not be sent to the mobiles you send the location of the content via WAP PUSH sms regarding the wap push creation, sending and delivery reports search the mailing list, there are several very detailed explanations for. -Original Message- From: users@kannel.org [EMAIL PROTECTED] Sent: 15 Април 2008 г. To: seik Subject:wap push project thanks but how can i send the contant to mobile and how i can tell him where contant location ? seik [EMAIL PROTECTED] wrote: in short, you do not send directly any content to the recipient via wap push its binary sms providing the receiver's mobile device with information about the URL of web server hosted content so in general, via the wap push sms you send the location, i.e. the URL of a particular file to the client. its their choice to download the content or not. -Original Message- From: mohmmad jarwan [EMAIL PROTECTED] Sent: 15 ? 2008 ?. To: seik Subject:wap push project Hi i want to do wap push project to send ringtone and pictuer to mobile this is my kannel config / group = core admin-port = 15000 admin-password = ros123 admin-deny-ip = *.*.*.* admin-allow-ip = wapbox-port = 13002 wdp-interface-name = vas log-file = /var/log/kannel/bearerbox.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 group = wapbox bearerbox-host = localhost log-file = /var/log/kannel/wapbox.log group = ppg ppg-url = /wappush ppg-port = 8080 concurrent-pushes = 50 users = 52 ppg-allow-ip =194.100.32.125;127.0.0.1 trusted-pi = false group = wap-push-user wap-push-user = picom ppg-username = vas ppg-password = ros123 allow-ip = 62.254.217.163 / and this is my code $host = 'localhost'; $port = '8080'; $url = http://$host:$port;; $wap_push_id = 1; $xx=http://ci/uploads/$name;; //$file= bin2hex($xx); $body = --multipart-boundary\r\n. Content-type: application/xml\r\n\r\n. ' '.\r\n. ' 'http://www.wapforum.org/DTD/pap_1.0.dtd; '.\r\n. ' '.\r\n. ' '.\r\n. ' address-value=WAPPUSH='.$phone_no.'/TYPE=PLMN ppg.nokia.com/'.\r\n. ' bearer=SMS/'. \r\n. \r\n\r\n. --multipart-boundary\r\n. Content-type: text/vnd.wap.si\r\n\r\n. ' '.\r\n. ' 'http://www.wapforum.org/DTD/si.dtd;'.\r\n. \r\n. ' href='.$push_url.''.$text.' '.\r\n. \r\n. --multipart-boundary--\r\n; $post = POST /wappush HTTP/1.1\r\n. Host: $host:$port\r\n. Authorization: Basic .base64_encode($ppg_user:$ppg_pass).\r\n; X-Kannel-SMSC: $smsc_id\r\n. 'Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml'.\r\n. Content-Length: .strlen($body).\r\n.\r\n.$body; //echo $url; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt ($ch,CURLOPT_CUSTOMREQUEST , $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $reply = curl_exec($ch); curl_close ($ch); if (empty($reply)) { print Sorry, example.com are a bunch of poopy-heads. ; } else { print $reply; } /// the problem is where and how i put the contant ( ringtone or pictuer . ) and i don't use sms gatway that effect on sending ( must i use it to send mms ). can any one help me and thanx. between -00-00 and -99-99 Yahoo! for Good helps you href=http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/;make a difference between -00-00 and -99-99 hr size=1 Yahoo! for Good helps you a href=http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/;make a difference/a -- Juan Nin 3Cinteractive / Mobilizing Great Brands http://www.3cinteractive.com
unicode working http request
Hello dear all, Firstly sorry to ask that ubiquitous question again. Only this time is more simple, not about the encoding process but the plain invocation to cgi-bin/sendsms If anyone has successfully sent unicode text, in the kindest form I ask him/her to share just one working HTTP-GET request to sendsms script. So far this eludes me, here I reproduce some unlucky intents (unrelated parameters are not included): (1) http://localhost:13013/cgi-bin/sendsms?...text=00E100E900ED00F300FA00F1coding=2charset=ucs2 (2) http://localhost:13013/cgi-bin/sendsms?...text=00E100E900ED00F300FA00F1coding=2charset=UCS2 (3) http://localhost:13013/cgi-bin/sendsms?...text=%00%E1%00%E9%00%ED%00%F3%00%FA%00%F1coding=2charset=ucs2 The target phone shows 12 little rectangles for (1) and (2) and 6 little rectangles for (3). The intented string is áéíóúñ, so option (3) gets right the number of chars, but shows all of them as rectangles. Again, I'm not requesting tips for encoding but just to see how a well formated request to /sendsms looks like best regards, Gerardo.