Package gov.nist.javax.sip.message

Examples of gov.nist.javax.sip.message.MessageFactoryImpl


import junit.framework.TestCase;

public class JunkAtEndOfMessageTest extends TestCase {

    public void testMessageSyntax() {
        MessageFactoryImpl messageFactory = new MessageFactoryImpl();
        try {
            Request request = messageFactory
                    .createRequest("BYE sip:127.0.0.1:5080;transport=tcp SIP/2.0\r\n"
                            + "Via: SIP/2.0/TCP 127.0.0.1:5060;rport=5060;branch=z9hG4bKd2c87858eb0a7a09becc7a115c608d27\r\n"
                            + "CSeq: 2 BYE\r\n"
                            + "Call-ID: 84a5c57fd263bcce6fec05edf20c5aba@127.0.0.1\r\n"
                            + "From: \"The Master Blaster\" <sip:BigGuy@here.com>;tag=12345\r\n"
View Full Code Here


            System.out.println("testMessageSyntax()");
        }
    }

    public void testMessageSyntax2() {
        MessageFactoryImpl messageFactory = new MessageFactoryImpl();

        try {
            Request request = messageFactory
                    .createRequest("BYE sip:127.0.0.1:5080;transport=tcp SIP/2.0\r\n"
                            + "Via: SIP/2.0/TCP 127.0.0.1:5060;rport=5060;branch=z9hG4bKd2c87858eb0a7a09becc7a115c608d27\r\n"
                            + "CSeq: 2 BYE\r\n"
                            + "Call-ID: 84a5c57fd263bcce6fec05edf20c5aba@127.0.0.1\r\n"
                            + "From: \"The Master Blaster\" <sip:BigGuy@here.com>;tag=12345\r\n"
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.message.MessageFactoryImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.