Fixed wrong reference when requesting a channel from chan_lcr.
authorAndreas Eversberg <jolly@eversberg.eu>
Thu, 11 Aug 2011 13:23:01 +0000 (15:23 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Thu, 11 Aug 2011 13:23:01 +0000 (15:23 +0200)
This caused audio not to be available, for every call or after
some time.

mISDN.cpp

index 50746ec..46cf1a5 100644 (file)
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -1113,7 +1113,7 @@ void message_bchannel_from_remote(class JoinRemote *joinremote, int type, unsign
                chan_trace_header(mISDNport, isdnport, "MESSAGE_BCHANNEL (from remote application)", DIRECTION_NONE);
                add_trace("type", NULL, "export request");
                end_trace();
                chan_trace_header(mISDNport, isdnport, "MESSAGE_BCHANNEL (from remote application)", DIRECTION_NONE);
                add_trace("type", NULL, "export request");
                end_trace();
-               isdnport->p_m_remote_ref = joinremote->j_serial;
+               isdnport->p_m_remote_ref = joinremote->j_remote_ref;
                isdnport->p_m_remote_id = joinremote->j_remote_id;
                if (mISDNport && i>=0) {
                        bchannel_event(mISDNport, i, B_EVENT_EXPORTREQUEST);
                isdnport->p_m_remote_id = joinremote->j_remote_id;
                if (mISDNport && i>=0) {
                        bchannel_event(mISDNport, i, B_EVENT_EXPORTREQUEST);