All pastes #634 Raw Edit

Justin chansip.c change asterisk thing

public text v1 · immutable
#634 ·published 2004-08-15 14:32 UTC
rendered paste body
[root@voice channels]# diff -u chan_sip.c.orig chan_sip.c
[root@voice channels]# cp chan_sip.c chan_sip.c.bak
[root@voice channels]# diff -u chan_sip.c.orig chan_sip.c
--- chan_sip.c.orig     Mon Aug 16 00:41:02 2004
+++ chan_sip.c  Mon Aug 16 00:17:22 2004
@@ -109,7 +109,7 @@

 static char language[MAX_LANGUAGE] = "";

-static char callerid[AST_MAX_EXTENSION] = "asterisk";
+static char callerid[AST_MAX_EXTENSION] = "MPAOneNetwork";

 static char fromdomain[AST_MAX_EXTENSION] = "";

@@ -2570,7 +2570,7 @@
                ast_log(LOG_WARNING, "Unable to determine sequence number from '%s'\n", get_header(req, "CSeq"));
                return -1;
        }
-       snprintf(tmp, sizeof(tmp), "Digest realm=\"asterisk\", nonce=\"%s\"", randdata);
+       snprintf(tmp, sizeof(tmp), "Digest realm=\"MPAOneNetwork\", nonce=\"%s\"", randdata);
        respprep(&resp, p, msg, req);
        add_header(&resp, "Proxy-Authenticate", tmp);
        add_header(&resp, "Content-Length", "0");
@@ -3724,7 +3724,7 @@
                        if (c)
                                c++;
                }
-               snprintf(a1, sizeof(a1), "%s:%s:%s", username, "asterisk", secret);
+               snprintf(a1, sizeof(a1), "%s:%s:%s", username, "MPAOneNetwork", secret);
                if(strlen(resp_uri))
                        snprintf(a2, sizeof(a2), "%s:%s", method, resp_uri);
                else
[root@voice channels]# diff -u chan_sip.c.orig chan_sip.c >> chan_sip.c.diff
[root@voice channels]# vi chan_sip.c.diff
[root@voice channels]# vi chan_sip.c.diff
                else