Hi,

  mmsproxy does not understand SMIL files. You want to use mmsbox  
instead, and post to its sendmms port.

On Sep 22, 2006, at 19:08, Monchanin Eric wrote:

> Hello all,
>
> I am trying to POST a smil file to my mmsproxy and I get only a  
> SOAP error.
> My ultimate goal is only to redirect all messages post to mbuni to a
> another SOAP gateway.
>
> If someone could help me figure out where the problem lies I would be
> grateful.
>
> Thanks a lot,
>
> 1st here is my mmsc.conf :
> **************
> group = core
> log-file = /var/log/mbuni/mmsc.log
> access-log = /var/log/mbuni/access.log
> log-level = 10
>
> group = mbuni
> name = "My MMSC"
> hostname = www.mydomain.com
> storage-directory = /tmp/spool
> mm7-port = 8080
> content-adaptation = true
>
> group = mms-vasp
> vasp-id = My mm7
> type = soap
> short-code = 3xxxx
> vasp-username = vasp
> vasp-password = vasp
> vasp-url = http://vasp:[EMAIL PROTECTED]:8080/mm7
> ****************
>
> It allows me to start the mmsproxy using the commandline :
> /usr/local/mbuni/bin/mmsproxy -- /usr/local/mbuni/etc/mmsc.conf
>
> Then, using a php script, I POST the smil file :
> ****************
> <?
> $smil = '<?xml version="1.0"?>';
> $smil.= '<smil xmlns="http://www.w3.org/2001/SMIL20/Language";>';
> $smil.= '<head>';
> $smil.= '<meta name="title" content="MMS Slideshow"/>';
> $smil.= '<layout>';
> $smil.= '<root-layout id="MMS_Slideshow" width="240" height="270"/>';
> $smil.= '<region id="audio_region"/>';
> $smil.= '<region id="image_area" left="18" width="220" top="6"
> height="240" />';
> $smil.= '<region id="text_area" left="19" width="220" top="184"
> height="85" />';
> $smil.= '</layout>';
> $smil.= '</head>';
> $smil.= '<body>';
> $smil.= '<seq id="MMS_Description">';
> $smil.= '<par id="slide1" dur="8s">';
> $smil.= '<img id="title1" region="image_area" dur="8s"
> src="http://www.mydomain.com/mm/imageslide1.jpg"/>';
> $smil.= '<audio id="audio1" region="audio_region" begin="0"
> src="http://www.mydomain.com/mm/audio1.mp3"/>';
> $smil.= '</par>';
> $smil.= '<par id="slide2" dur="7000ms">';
> $smil.= '<video id="title2" region="image_area" begin="0" dur="7s"
> src="http://www.mydomain.com/mm/video1.3gp"; />';
> $smil.= '</par>';
> $smil.= '</seq>';
> $smil.= '</body>';
> $smil.= '</smil>';
>
> $params ['username']    = 'vasp';
> $params ['password']    = 'vasp';
> $params ['from']        = '3xxxx';
> $params ['to']          = '1xxxxxxxxxx';
> $params ['subject']     = 'test';
> $params ['smil']        = $smil;
>
> $url = 'http://localhost:8080/';
> $url.= '?username='.$params ['username'];
> $url.= '&password='.$params ['password'];
> $url.= '&from='.$params ['from'];
> $url.= '&to='.$params ['to'];
> $url.= '&subject='.$params ['subject'];
>
> $header  = "POST '' HTTP/1.0 \r\n";
> $header .= "MIME-Version: 1.0 \r\n";
> $header .= "Content-type: application/smil \r\n";
> $header .= "Content-length: ".strlen($params ['smil'])." \r\n";
> $header .= "Content-transfer-encoding: text \r\n";
> $header .= "Request-number: 1 \r\n";
> $header .= "Document-type: Request \r\n";
> $header .= "Interface-Version: Test 1.4 \r\n";
> $header .= "Authorization: Basic ".base64_encode("vasp:vasp")."\r\n";
> $header .= "Connection: close \r\n\r\n";
> $header .= $params ['smil'];
>
> $ch = curl_init();
> curl_setopt($ch, CURLOPT_URL,$url);
> curl_setopt($ch, CURLOPT_TIMEOUT, 4);
> curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $header);
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
>
> $data = curl_exec($ch);
> ?>
> ***************************
>
> And then finally after running it I get the following SOAP answer :
>
> **************
> <?xml version='1.0' encoding='UTF-8'?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
> <SOAP-ENV:Header>
> <mm7:TransactionID
> xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/ 
> schema/REL-5-MM7-1-2"
> SOAP-ENV:mustUnderstand="1">0000</mm7:TransactionID>
> </SOAP-ENV:Header>
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <faultcode>SOAP-ENV:Server</faultcode>
> <faultstring>Server error</faultstring>
> <detail>
> <mm7:RSErrorRsp
> xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/ 
> schema/REL-5-MM7-1-2">
> <MM7Version>5.3.0</MM7Version>
> <Status>
> <StatusCode>4003</StatusCode>
> <StatusText>Unsupported operation</StatusText>
> </Status>
> </mm7:RSErrorRsp>
> </detail>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> ************
>
> along with some logs :
>
> ********
> 2006-09-22 12:04:45 [9776] [2] DEBUG: HTTP: Creating HTTPClient for
> `127.0.0.1'.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  MM7 Request, ip=127.0.0.1,
> vasp=My mm7
> 2006-09-22 12:04:45 [9776] [3] DEBUG: Dumping HTTP headers:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string at 0x91bd170:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    len:  18
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    size: 20
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 4d 49 4d 45 2d 56 65 72
> 73 69 6f 6e 3a 20 31 2e   MIME-Version: 1.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 30
> 20                                             0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string at 0x91bca18:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    len:  31
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    size: 33
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 43 6f 6e 74 65 6e 74 2d
> 74 79 70 65 3a 20 61 70   Content-type: ap
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 70 6c 69 63 61 74 69 6f
> 6e 2f 73 6d 69 6c 20      plication/smil
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string at 0x91bd818:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    len:  20
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    size: 22
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 43 6f 6e 74 65 6e 74 2d
> 6c 65 6e 67 74 68 3a 20   Content-length:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 37 39 33
> 20                                       793
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string at 0x91bd850:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    len:  32
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    size: 34
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 43 6f 6e 74 65 6e 74 2d
> 74 72 61 6e 73 66 65 72   Content-transfer
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 2d 65 6e 63 6f 64 69 6e
> 67 3a 20 74 65 78 74 20   -encoding: text
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string at 0x91bd8a8:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    len:  18
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    size: 20
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 52 65 71 75 65 73 74 2d
> 6e 75 6d 62 65 72 3a 20   Request-number:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 31
> 20                                             1
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string at 0x91bcab0:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    len:  23
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    size: 25
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 44 6f 63 75 6d 65 6e 74
> 2d 74 79 70 65 3a 20 52   Document-type: R
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 65 71 75 65 73 74
> 20                              equest
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string at 0x91bd890:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    len:  28
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    size: 30
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 49 6e 74 65 72 66 61 63
> 65 2d 56 65 72 73 69 6f   Interface-Versio
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 6e 3a 20 54 65 73 74 20
> 31 2e 34 20               n: Test 1.4
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string at 0x91be010:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    len:  33
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    size: 35
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 41 75 74 68 6f 72 69 7a
> 61 74 69 6f 6e 3a 20 42   Authorization: B
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 61 73 69 63 20 64 6d 46
> 7a 63 44 70 32 59 58 4e   asic dmFzcDp2YXN
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data:
> 77                                                w
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string at 0x91be078:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    len:  18
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    size: 20
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 43 6f 6e 6e 65 63 74 69
> 6f 6e 3a 20 63 6c 6f 73   Connection: clos
> 2006-09-22 12:04:45 [9776] [3] DEBUG:    data: 65
> 20                                             e
> 2006-09-22 12:04:45 [9776] [3] DEBUG:  Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG: End of dump.
> 2006-09-22 12:04:45 [9776] [3] DEBUG: Octet string at 0x91be0a8:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:   len:  793
> 2006-09-22 12:04:45 [9776] [3] DEBUG:   size: 794
> 2006-09-22 12:04:45 [9776] [3] DEBUG:   immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:   data: 3c 3f 78 6d 6c 20 76  
> 65 72
> 73 69 6f 6e 3d 22 31   <?xml version="1
> (....)
> 2006-09-22 12:04:45 [9776] [3] DEBUG:   data: 79 3e 3c 2f 73 6d 69 6c
> 3e                        y></smil>
> 2006-09-22 12:04:45 [9776] [3] DEBUG: Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG: Octet string at 0x91bd158:
> 2006-09-22 12:04:45 [9776] [3] DEBUG:   len:  9
> 2006-09-22 12:04:45 [9776] [3] DEBUG:   size: 10
> 2006-09-22 12:04:45 [9776] [3] DEBUG:   immutable: 0
> 2006-09-22 12:04:45 [9776] [3] DEBUG:   data: 31 32 37 2e 30 2e 30 2e
> 31                        127.0.0.1
> 2006-09-22 12:04:45 [9776] [3] DEBUG: Octet string dump ends.
> 2006-09-22 12:04:45 [9776] [3] DEBUG: Started thread 4
> (mmsproxy.c:(gwthread_func_t *)mm7soap_dispatch)
> 2006-09-22 12:04:45 [9776] [4] DEBUG: Thread 4
> (mmsproxy.c:(gwthread_func_t *)mm7soap_dispatch) maps to pid 9776.
> 2006-09-22 12:04:45 [9776] [4] INFO: XML sent is: <?xml
> version="1.0"?><smil
> xmlns="http://www.w3.org/2001/SMIL20/Language";><head><meta  
> name="title"
> content="MMS Slideshow"/><layout><root-layout id="MMS_Slideshow"
> width="240" height="270"/><region id="audio_region"/><region
> id="image_area" left="18" width="220" top="6" height="240" /><region
> id="text_area" left="19" width="220" top="184" height="85"
> /></layout></head><body><seq id="MMS_Description"><par id="slide1"
> dur="8s"><img id="title1" region="image_area" dur="8s"
> src="http://www.mydomain.com/mm/imageslide1.jpg"/><audio id="audio1"
> region="audio_region" begin="0"
> src="http://www.mydomain.com/mm/audio1.mp3"/></par><par id="slide2"
> dur="7000ms"><video id="title2" region="image_area" begin="0" dur="7s"
> src="http://www.mydomain.com/mm/video1.3gp"; /></par></seq></body></ 
> smil>!
> 2006-09-22 12:04:45 [9776] [4] DEBUG:  --> Enterred mm7dispatch
> interface, mreq=Ok mtype = (null) <--
> 2006-09-22 12:04:45 [9776] [4] DEBUG: HTTP: Destroying HTTPClient area
> 0x91bd730.
> 2006-09-22 12:04:45 [9776] [4] DEBUG: HTTP: Destroying HTTPClient for
> `127.0.0.1'.
> 2006-09-22 12:04:45 [9776] [4] DEBUG:  --> leaving mm7dispatch
> interface, mresp=ok, body=ok <--
> 2006-09-22 12:04:45 [9776] [4] DEBUG:  entered free_clientinfo 1,
> ip=152818008
> 2006-09-22 12:04:45 [9776] [4] DEBUG:  left free_clientinfo
> 2006-09-22 12:04:45 [9776] [4] DEBUG: Thread 4
> (mmsproxy.c:(gwthread_func_t *)mm7soap_dispatch) terminates.
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://mbuni.org/mailman/listinfo/users_mbuni.org


_______________________________________________
Users mailing list
[email protected]
http://mbuni.org/mailman/listinfo/users_mbuni.org

Reply via email to