projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gsm: Partially fix the gsm.h/libgsm handling
[lcr.git]
/
vbox.cpp
diff --git
a/vbox.cpp
b/vbox.cpp
index
c8c3012
..
b0268cc
100644
(file)
--- a/
vbox.cpp
+++ b/
vbox.cpp
@@
-251,7
+251,8
@@
int VBoxPort::message_epoint(unsigned int epoint_id, int message_id, union param
case MESSAGE_SETUP: /* dial-out command received from epoint, answer with connect */
/* get apppbx */
case MESSAGE_SETUP: /* dial-out command received from epoint, answer with connect */
/* get apppbx */
- memcpy(&p_vbox_ext, &((class EndpointAppPBX *)(epoint->ep_app))->e_ext, sizeof(p_vbox_ext));
+ if (epoint->ep_app_type == EAPP_TYPE_PBX)
+ memcpy(&p_vbox_ext, &((class EndpointAppPBX *)(epoint->ep_app))->e_ext, sizeof(p_vbox_ext));
/* extract optional announcement file */
if ((c = strchr(param->setup.dialinginfo.id, ','))) {
if (c[1] == '/')
/* extract optional announcement file */
if ((c = strchr(param->setup.dialinginfo.id, ','))) {
if (c[1] == '/')