a solution to H323 endpoint => FS => SIP user no audio issue<br><br>is to disable a wait for tx Audio ... for case SWITCH_MESSAGE_INDICATE_ANSWER:{<br><br>//m_txAudioOpened.Wait();<br><br><br> case SWITCH_MESSAGE_INDICATE_ANSWER:{<br>
<br> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "ANSWER: we got Answer event\n");<br><br> if (switch_channel_test_flag(channel, CF_OUTBOUND)) {<br><br>
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "ANSWER: we got Answer event - CF_OUTBOUND<br>\n");<br> return SWITCH_STATUS_FALSE;<br> }<br>
AnsweringCall(H323Connection::AnswerCallNow);<br><br> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "ANSWER: suppose the call is Answered Now\n");<br> PTRACE(4, "mod_h323\tMedia started on connection " << *this);<br>
<br> // test <br> //switch_channel_mark_answered(m_fsChannel);<br><br> m_rxAudioOpened.Wait();<br> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "ANSWER: wait for m_rxAudioOpened\n");<br>
//m_txAudioOpened.Wait();<br> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "ANSWER: we disable wait for m_txAudioOpened\n");<br><br> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "ANSWER: were waiting for rx/tx AudioOpen\n");<br>
<br> if (!switch_channel_test_flag(m_fsChannel, CF_EARLY_MEDIA)) {<br><br> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "ANSWER: we have early media\n");<br>
<br> PTRACE(4, "mod_h323\t-------------------->switch_channel_mark_answered(m_fsChannel) " << *this);<br> switch_channel_mark_answered(m_fsChannel);<br>
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "ANSWER: answered in early Media\n");<br> }<br> break;<br> }<br>
<br><br>Now, I'm able to both originate and terminate cals with 2-way audio...<br>the signaling looks correct...<br><br><br><br>outgoing:<br><br>1369.425046 10.4.62.7 -> 10.4.62.89 SIP/SDP Request: INVITE <a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>;transport=udp, with session description<br>
1369.426255 10.4.62.7 -> 10.4.62.31 H.225.0 CS: alerting <br>1369.435950 10.4.62.89 -> 10.4.62.7 SIP Status: 100 Trying<br>1369.449065 10.4.62.89 -> 10.4.62.7 SIP Status: 180 Ringing<br>1369.605109 10.4.62.7 -> 10.4.62.31 H.225.0 CS: progress OpenLogicalChannel <br>
1369.609788 10.4.62.31 -> 10.4.62.7 H.225.0/H.245 CS: facility terminalCapabilitySet <br>1369.610489 10.4.62.31 -> 10.4.62.7 H.225.0/H.245 CS: facility masterSlaveDetermination <br>1369.619071 10.4.62.7 -> 10.4.62.31 H.225.0/H.245 CS: empty terminalCapabilitySet <br>
1369.620349 10.4.62.7 -> 10.4.62.31 H.225.0/H.245 CS: empty terminalCapabilitySetAck <br>1369.623215 10.4.62.31 -> 10.4.62.7 H.225.0/H.245 CS: facility terminalCapabilitySetAck <br>1369.625591 10.4.62.7 -> 10.4.62.31 H.225.0/H.245 CS: empty masterSlaveDeterminationAck <br>
1369.628174 10.4.62.31 -> 10.4.62.7 H.225.0/H.245 CS: facility masterSlaveDeterminationAck <br>1370.966958 10.4.62.89 -> 10.4.62.7 SIP/SDP Status: 200 OK, with session description<br>1370.967431 10.4.62.7 -> 10.4.62.89 SIP Request: ACK <a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>;transport=udp<br>
1370.975172 10.4.62.7 -> 10.4.62.31 H.225.0 CS: connect <br>1372.354383 10.4.62.89 -> 10.4.62.7 SIP Request: BYE <a href="http://sip:mod_sofia@10.4.62.7:5060">sip:mod_sofia@10.4.62.7:5060</a><br>1372.355147 10.4.62.7 -> 10.4.62.89 SIP Status: 200 OK<br>
1372.392904 10.4.62.7 -> 10.4.62.31 H.225.0/H.245 CS: releaseComplete endSessionCommand <br>1372.397302 10.4.62.31 -> 10.4.62.7 H.225.0 CS: releaseComplete <br><br><br>incoming:<br><br><br>1502.817154 10.4.62.31 -> 10.4.62.7 H.225.0 CS: setup OpenLogicalChannel <br>
1502.833732 10.4.62.7 -> 10.4.62.31 H.225.0 CS: callProceeding <br>1502.850909 10.4.62.7 -> 10.4.62.89 SIP/SDP Request: INVITE <a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>;transport=udp, with session description<br>
1502.851758 10.4.62.7 -> 10.4.62.31 H.225.0 CS: alerting <br>1502.861828 10.4.62.89 -> 10.4.62.7 SIP Status: 100 Trying<br>1502.875127 10.4.62.89 -> 10.4.62.7 SIP Status: 180 Ringing<br>1503.033258 10.4.62.7 -> 10.4.62.31 H.225.0 CS: progress OpenLogicalChannel <br>
1503.037908 10.4.62.31 -> 10.4.62.7 H.225.0/H.245 CS: facility terminalCapabilitySet <br>1503.038608 10.4.62.31 -> 10.4.62.7 H.225.0/H.245 CS: facility masterSlaveDetermination <br>1503.050154 10.4.62.7 -> 10.4.62.31 H.225.0/H.245 CS: empty terminalCapabilitySet <br>
1503.051381 10.4.62.7 -> 10.4.62.31 H.225.0/H.245 CS: empty terminalCapabilitySetAck <br>1503.054297 10.4.62.31 -> 10.4.62.7 H.225.0/H.245 CS: facility terminalCapabilitySetAck <br>1503.054917 10.4.62.7 -> 10.4.62.31 H.225.0/H.245 CS: empty masterSlaveDeterminationAck <br>
1503.057933 10.4.62.31 -> 10.4.62.7 H.225.0/H.245 CS: facility masterSlaveDeterminationAck <br>1505.485493 10.4.62.89 -> 10.4.62.7 SIP/SDP Status: 200 OK, with session description<br>1505.486018 10.4.62.7 -> 10.4.62.89 SIP Request: ACK <a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>;transport=udp<br>
1505.493611 10.4.62.7 -> 10.4.62.31 H.225.0 CS: connect <br>1509.565959 10.4.62.89 -> 10.4.62.7 SIP Request: BYE <a href="http://sip:mod_sofia@10.4.62.7:5060">sip:mod_sofia@10.4.62.7:5060</a><br>1509.566722 10.4.62.7 -> 10.4.62.89 SIP Status: 200 OK<br>
1509.577435 10.4.62.7 -> 10.4.62.31 H.225.0/H.245 CS: releaseComplete endSessionCommand <br>1509.582066 10.4.62.31 -> 10.4.62.7 H.225.0 CS: releaseComplete <br><br><br><br>... i still need to check the CDRs as well but here we are :)<br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>