Coder Social home page Coder Social logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
In my case, the code below work as expected (UTF-8 content escaped). What's the 
issue?

var oSessionIM = new tsip_session_message(oSipStack,
tsip_session.prototype.SetToStr("2233422677"),
tsip_session.prototype.SetHeader("What", "IM"));

oSessionIM.send(new String("Pêche à la moule"), "text/plain; charset=utf8");
oSipStack.on_event_message = function (evt) {
    console.debug(evt.s_phrase);
    switch (evt.e_message_type) {
        case tsip_event_message_type_e.I_MESSAGE:
            {
                evt.get_session().accept();
                console.debug("Incoming message=%s", evt.get_message().get_content_as_string());
                break;
            }
        case tsip_event_message_type_e.AO_MESSAGE:
            {
                if (evt.i_code >= 200 && evt.i_code <= 299) {
                    console.debug("sent");
                }
                else if (evt.i_code >= 300) {
                    console.debug("not sent (%d)", evt.i_code);
                }
                break;
            }
    }
};

Original comment by [email protected] on 29 May 2012 at 5:11

  • Changed state: Accepted

from sipml5.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
I have test it with websocket.opcode == binary data(ArrayBuffer) - Ok. But I 
see the issue with message body if websocket.opcode is text frame.
// r59

Original comment by [email protected] on 29 May 2012 at 9:19

Attachments:

from sipml5.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024

Original comment by [email protected] on 1 Oct 2012 at 1:23

  • Changed state: Done

from sipml5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.