[Asterisk-cvs] asterisk/channels chan_sip.c,1.486,1.487
markster at lists.digium.com
markster at lists.digium.com
Tue Aug 31 13:08:45 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv32574/channels
Modified Files:
chan_sip.c
Log Message:
Use "fullcontact" on outbound calls too
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.486
retrieving revision 1.487
diff -u -d -r1.486 -r1.487
--- chan_sip.c 31 Aug 2004 16:49:20 -0000 1.486
+++ chan_sip.c 31 Aug 2004 17:12:09 -0000 1.487
@@ -312,7 +312,7 @@
char callerid[256]; /* Caller*ID */
int restrictcid; /* hide presentation from remote user */
char via[256];
- char fullcontact[80]; /* Extra parameters to go in the "To" header */
+ char fullcontact[128]; /* Extra parameters to go in the "To" header */
char accountcode[20]; /* Account code */
char our_contact[256]; /* Our contact header */
char realm[256]; /* Authorization realm */
@@ -424,7 +424,7 @@
char tohost[80];
char fromuser[80];
char fromdomain[80];
- char fullcontact[80];
+ char fullcontact[128];
char mailbox[AST_MAX_EXTENSION];
char language[MAX_LANGUAGE];
char musicclass[MAX_LANGUAGE]; /* Music on Hold class */
@@ -1291,6 +1291,7 @@
strncpy(r->peermd5secret, p->md5secret, sizeof(r->peermd5secret)-1);
strncpy(r->username, p->username, sizeof(r->username)-1);
strncpy(r->tohost, p->tohost, sizeof(r->tohost)-1);
+ strncpy(r->fullcontact, p->fullcontact, sizeof(r->fullcontact)-1);
if (ast_strlen_zero(r->tohost)) {
if (p->addr.sin_addr.s_addr)
ast_inet_ntoa(r->tohost, sizeof(r->tohost), p->addr.sin_addr);
@@ -3639,7 +3640,7 @@
/*--- initreqprep: Initiate SIP request to peer/user ---*/
static void initreqprep(struct sip_request *req, struct sip_pvt *p, char *cmd, char *vxml_url)
{
- char invite[256];
+ char invite[256]="";
char from[256];
char to[256];
char tmp[80];
More information about the svn-commits
mailing list