Package net.sourceforge.peers.sip.transport

Examples of net.sourceforge.peers.sip.transport.SipRequest


    public void testCreateNonInviteServerTransaction()
            throws IOException, SipParserException {
        String message = "MESSAGE sip:john@doe.co.uk SIP/2.0\r\n" +
                "Via: \r\n" +
                "\r\n";
        SipRequest sipRequest = (SipRequest)parse(message);
        String response = "SIP/2.0 200 OK\r\n" +
                "Via: \r\n" +
                "CSeq: 1\r\n" +
                "\r\n";
        SipResponse sipResponse = (SipResponse)parse(response);
View Full Code Here


        String testMessage = "INVITE sip:bob@biloxi.com SIP/2.0\r\n" +
        "Via: \r\n" +
        "\r\n";
        int port = PortProvider.getNextPort();
        InetAddress localHost = InetAddress.getLocalHost();
        SipRequest sipRequest = (SipRequest)parse(testMessage);
        ClientTransactionUser clientTransactionUser = new ClientTransactionUser() {
            public void errResponseReceived(SipResponse sipResponse) {
            }
            public void provResponseReceived(SipResponse sipResponse, Transaction transaction) {
            }
View Full Code Here

    public void testCreateInviteServerTransaction()
            throws IOException, SipParserException {
        String message = "INVITE sip:john@doe.co.uk SIP/2.0\r\n" +
                "Via: \r\n" +
                "\r\n";
        SipRequest sipRequest = (SipRequest)parse(message);
        String response = "SIP/2.0 200 OK\r\n" +
                "Via: \r\n" +
                "CSeq: 1 INVITE\r\n" +
                "\r\n";
        SipResponse sipResponse = (SipResponse)parse(response);
View Full Code Here

public class UACTestMain {

    public static void main(String[] args) {
        String requestUri;
        UserAgent userAgent;
        SipRequest sipRequest;
        try {
            userAgent = new UserAgent(null, null, new Logger(null));
            requestUri = "sip:bob@" + userAgent.getConfig()
                .getLocalInetAddress().getHostAddress() + ":6060";
            sipRequest = userAgent.getUac().invite(requestUri,
View Full Code Here

TOP

Related Classes of net.sourceforge.peers.sip.transport.SipRequest

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.