help needed on making use of the call monitor service

General Forum for talking area for B series TVs.
Post Reply

nbd
Posts: 161
Joined: Wed Jan 13, 2010 12:02 pm

Re: help needed on making use of the call monitor service

Post by nbd »

Thanks, doodlecz, but I still get the same (of course changed the 192.nnn ip to correspond to my TV's ip)

Code: Select all

Client-The remote host is: nn.nn.nn.nn
Client-The socket() sockfd is OK...
Server-Using nn.nn.nn.nn and port 52235...
Client-The connect() is OK...
Client-Sent: POST /PMR/control/MessageBoxService HTTP/1.0
Content-Type: text/xml; charset="utf-8"
HOST: nn.nn.nn.nn
Content-Length: 818
SOAPACTION: "uuid:samsung.com:service:MessageBoxService:1#AddMessage"
Connection: close

<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body>      <u:AddMessage xmlns:u="urn:samsung.com:service:MessageBoxService:1">         <MessageType>text/xml</MessageType>         <MessageID>anything</MessageID><Message><Category>SMS</Category><DisplayType>Maximum</DisplayType><ReceiveTime><Date>2010-05-04</Date><Time>01:02:03</Time></ReceiveTime><Receiver><Number>12345678</Number><Name>Receiver</Name></Receiver><Sender><Number>11111</Number><Name>Sender</Name></Sender><Body>Hello World!!!</Body></Message>      </u:AddMessage>   </s:Body></s:Envelope>Client-The recv() is OK...
Client-Received: HTTP/1.1 401 Unauthorized
Connection: close
Content-Length: 0
Server: DMRND/0.5

Client-Closing sockfd
doodlecz
Official SamyGO Developer
Posts: 98
Joined: Wed Mar 17, 2010 9:12 am

Re: help needed on making use of the call monitor service

Post by doodlecz »

cillaelery wrote: I attempted to put togther the request for "IncomingCall" but it is failing with the 402 error. Please have a look at the code below and see if you can figure it out. I checked the sub_routine for "IncomingCall" about 5 times just to make sure I had all the variables. Not sure why it is failing.
I can't test it right now, but from the first look, Category content is not correct.
Possible values are:
SMS
Incoming Call
Schedule Reminder
MMS (although this type is not parsed/displayed by TV)
doodlecz
Official SamyGO Developer
Posts: 98
Joined: Wed Mar 17, 2010 9:12 am

Re: help needed on making use of the call monitor service

Post by doodlecz »

nbd wrote:Thanks, doodlecz, but I still get the same (of course changed the 192.nnn ip to correspond to my TV's ip)
Hmmm, strange.. from the first look, it seems it is related to the
_Z23UPNP_MAC_ADDR_PERMITTEDiP13_HTTPHeader_tP17_upnp_acl_entry_t function.
What's your TV model and FW version?
Maybe it is possible to enable Home Network on your TV somehow or set allowed MAC addresses? Because, during initialization there's some security settings and it is possible that your TV has "higher" security settings by default than others (mine is LExxB650)..
doodlecz
Official SamyGO Developer
Posts: 98
Joined: Wed Mar 17, 2010 9:12 am

Re: help needed on making use of the call monitor service

Post by doodlecz »

cillaelery wrote:I changed it to,

<Category>Incoming Call</Category>

and it still gives me the 402 error.
Ok, if won't be resolved, I'll check it today evening. Now I should make some work I'm paid for ;)

Post Reply

Return to “[B] General”