mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
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:
@@ -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;
|
||||
|
@@ -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__;
|
||||
|
@@ -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");
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user