projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding basic SIP support, using Sofia-SIP stack
[lcr.git]
/
apppbx.cpp
diff --git
a/apppbx.cpp
b/apppbx.cpp
index
fff80ce
..
d3937a7
100644
(file)
--- a/
apppbx.cpp
+++ b/
apppbx.cpp
@@
-990,6
+990,11
@@
void EndpointAppPBX::out_setup(int cfnr)
port = new Pgsm_ms(PORT_TYPE_GSM_MS_OUT, mISDNport, portname, &port_settings, channel, mISDNport->ifport->channel_force, mode);
else
#endif
port = new Pgsm_ms(PORT_TYPE_GSM_MS_OUT, mISDNport, portname, &port_settings, channel, mISDNport->ifport->channel_force, mode);
else
#endif
+#ifdef WITH_SIP
+ if (mISDNport->ifport->interface->sip)
+ port = new Psip(PORT_TYPE_SIP_OUT, mISDNport, portname, &port_settings, channel, mISDNport->ifport->channel_force, mode, mISDNport->ifport->interface);
+ else
+#endif
if (mISDNport->ifport->remote) {
admin = admin_first;
while(admin) {
if (mISDNport->ifport->remote) {
admin = admin_first;
while(admin) {
@@
-1224,6
+1229,11
@@
void EndpointAppPBX::out_setup(int cfnr)
port = new Pgsm_ms(PORT_TYPE_GSM_MS_OUT, mISDNport, portname, &port_settings, channel, mISDNport->ifport->channel_force, mode);
else
#endif
port = new Pgsm_ms(PORT_TYPE_GSM_MS_OUT, mISDNport, portname, &port_settings, channel, mISDNport->ifport->channel_force, mode);
else
#endif
+#ifdef WITH_SIP
+ if (mISDNport->ifport->interface->sip)
+ port = new Psip(PORT_TYPE_SIP_OUT, mISDNport, portname, &port_settings, channel, mISDNport->ifport->channel_force, mode, mISDNport->ifport->interface);
+ else
+#endif
if (mISDNport->ifport->remote) {
admin = admin_first;
while(admin) {
if (mISDNport->ifport->remote) {
admin = admin_first;
while(admin) {