Correct path to VM sample (bug #994)
Make manager interface non-blocking (bug #861)
Don't bork on empty from in SIP (bug #887)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2138
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail; do \
cat $(DESTDIR)$(ASTVARLIBDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm ; \
done
for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail; do \
cat $(DESTDIR)$(ASTVARLIBDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/unavail.gsm ; \
done
- :> $(DESTDIR)$(ASTVARLIBDIR)/sounds/voicemail/default/1234/busy.gsm
+ :> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm
for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone; do \
cat $(DESTDIR)$(ASTVARLIBDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm ; \
done
for x in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone; do \
cat $(DESTDIR)$(ASTVARLIBDIR)/sounds/$$x.gsm >> $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/busy.gsm ; \
done
add_header(&req, "Refer-To", referto);
if (strlen(p->our_contact))
add_header(&req, "Referred-By", p->our_contact);
add_header(&req, "Refer-To", referto);
if (strlen(p->our_contact))
add_header(&req, "Referred-By", p->our_contact);
+ add_blank_header(&req);
return send_request(p, &req, 1, p->ocseq);
}
return send_request(p, &req, 1, p->ocseq);
}
if ((a = strchr(c, ';'))) {
*a = '\0';
}
if ((a = strchr(c, ';'))) {
*a = '\0';
}
- if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
- *a = '\0';
+ if (fr) {
+ if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
+ *a = '\0';
+ }
}
if (sipdebug)
ast_verbose("Looking for %s in %s\n", c, p->context);
}
if (sipdebug)
ast_verbose("Looking for %s in %s\n", c, p->context);
;[dlinkgw]
;host = 192.168.0.64
;context = default
;[dlinkgw]
;host = 192.168.0.64
;context = default
;line => aaln/2
;line => aaln/1
;line => aaln/2
;line => aaln/1
struct mansession *s;
struct protoent *p;
int arg = 1;
struct mansession *s;
struct protoent *p;
int arg = 1;
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_t attr;
pthread_attr_init(&attr);
}
memset(s, 0, sizeof(struct mansession));
memcpy(&s->sin, &sin, sizeof(sin));
}
memset(s, 0, sizeof(struct mansession));
memcpy(&s->sin, &sin, sizeof(sin));
+ /* For safety, make sure socket is non-blocking */
+ flags = fcntl(as, F_GETFL);
+ fcntl(as, F_SETFL, flags | O_NONBLOCK);
ast_mutex_init(&s->lock);
s->fd = as;
ast_mutex_lock(&sessionlock);
ast_mutex_init(&s->lock);
s->fd = as;
ast_mutex_lock(&sessionlock);