Small SIP fix, voicemail fix, and some delivery fixes on new apps

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-03-29 08:20:35 +00:00
parent 2c0d0d836c
commit 3e9c337946
4 changed files with 7 additions and 1 deletions

View File

@@ -170,6 +170,8 @@ static int mp3_exec(struct ast_channel *chan, void *data)
myf.f.mallocd = 0;
myf.f.offset = AST_FRIENDLY_OFFSET;
myf.f.src = __PRETTY_FUNCTION__;
myf.f.delivery.tv_sec = 0;
myf.f.delivery.tv_usec = 0;
myf.f.data = myf.frdata;
if (ast_write(chan, &myf.f) < 0) {
res = -1;

View File

@@ -150,6 +150,8 @@ static int NBScat_exec(struct ast_channel *chan, void *data)
myf.f.subclass = AST_FORMAT_SLINEAR;
myf.f.datalen = res;
myf.f.samples = res / 2;
myf.f.delivery.tv_usec = 0;
myf.f.delivery.tv_sec = 0;
myf.f.mallocd = 0;
myf.f.offset = AST_FRIENDLY_OFFSET;
myf.f.src = __PRETTY_FUNCTION__;

View File

@@ -849,7 +849,7 @@ static int sendpage(char *srcemail, char *pager, int msgnum, char *mailbox, char
time_t t;
struct tm tm;
struct vm_zone *the_zone = NULL;
p = popen(mailcmd, "w");
pfd = mkstemp(tmp);
if (pfd > -1) {
p = fdopen(pfd, "w");

View File

@@ -3282,6 +3282,8 @@ static int transmit_register(struct sip_registry *r, char *cmd, char *auth, char
snprintf(addr, sizeof(addr), "sip:%s", r->hostname);
strncpy(p->uri, addr, sizeof(p->uri) - 1);
p->branch ^= rand();
memset(&req, 0, sizeof(req));
init_req(&req, cmd, addr);