<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
TC><br>
TC>Do you need some logs ?<br>
<br>
try disable medai-proxy, there is issue with rtp now then medai-proxy or transcoding enabled.<br>
<br></blockquote><div><br>Outbound calls:<br><br>disabled rtp proxy and it is still the same issue ... audio delay H323 => SIP endpoint.<br><br><br><br><br><br><br>Inbound calls:<br><br>This is the extension i use to register my Avaya SIP phone to FS.<br>
<br><br><include><br> <user id="1001"><br> <params><br> <param name="password" value="$${default_password}"/><br> <param name="vm-password" value="1001"/><br>
</params><br> <variables><br> <variable name="toll_allow" value="domestic,international,local"/><br> <variable name="accountcode" value="1001"/><br>
<variable name="user_context" value="default"/><br> <variable name="effective_caller_id_name" value="Extension 1001"/><br> <variable name="effective_caller_id_number" value="1001"/><br>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/><br> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/><br>
<variable name="callgroup" value="techsupport"/><br> </variables><br> </user><br></include><br><br><br>This is my h323.conf.xml<br><br><br><configuration name="h323.conf" description="H323 Endpoints"><br>
<settings><br> <param name="trace-level" value="4"/><br> <param name="context" value="default"/><br> <param name="dialplan" value="XML"/><br>
<param name="codec-prefs" value="PCMU,PCMA,GSM,G729,G726"/><br> <param name="gk-address" value=""/> <!-- empty to disable, "*" to search LAN --><br>
<param name="gk-identifer" value=""/> <!-- optional name of gk --><br> <param name="gk-interface" value=""/> <!-- optional listener interface name --><br>
</settings><br> <listeners><br> <listener name="default"><br> <param name="h323-ip" value="10.4.62.7"/><br> <param name="h323-port" value="1720"/><br>
</listener><br> </listeners><br></configuration><br><br>I'm using default context and an inbound call looks for a registered user in default context where 1001 user is registered to.<br><br><br>
<br>here is the log for an outgoing call: <a href="http://pastebin.freeswitch.org/10799">http://pastebin.freeswitch.org/10799</a> and here is a tshark output: <a href="http://pastebin.freeswitch.org/10800">http://pastebin.freeswitch.org/10800</a><br>
<br><br>there are 2 thing that are not working here:<br><br><br>1. no audio at all!<br>2. hangup from SIP User side doesn't release the H323 leg<br><br><br><br><br><br><br><br><br><br><br><br>two points for your reference in the logs:<br>
<br><br>1. Here, SIP User disconnected the SIP leg, but nothing was triggered in
mod_h323 ... as the callback function "on_hangup" (in mod_h323.cpp) was
never triggered!<br><br>freeswitch@subZero> <br>freeswitch@subZero> <br>freeswitch@subZero> recv 371 bytes from udp/[10.4.62.89]:5060 at 14:39:36.714521:<br> ------------------------------------------------------------------------<br>
BYE <a href="http://sip:mod_sofia@10.4.62.7:5060">sip:mod_sofia@10.4.62.7:5060</a> SIP/2.0<br> From: <<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>;transport=udp>;tag=-22166b474ae08abf-7_T10.4.62.89<br>
To: <a href="mailto:sip%3A1001282166@10.4.62.7">sip:1001282166@10.4.62.7</a>;tag=Qpc53NZ2cZc1N<br> Call-ID: 8aa825c6-39bb-122d-bb89-00110a5be1f0<br> CSeq: 127 BYE<br> Via: SIP/2.0/UDP 10.4.62.89;branch=z9hG4bK-7e5dc720_442d0f8-2d8bf1174f235bec_B<br>
Content-Length: 0<br> Max-Forwards: 70<br> Supported: replaces<br> <br> ------------------------------------------------------------------------<br>2009-10-22 16:39:36.714604 [NOTICE] sofia.c:322 Hangup sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> [CS_CONSUME_MEDIA] [NORMAL_CLEARING]<br>
2009-10-22 16:39:36.714604 [DEBUG] switch_channel.c:1683 Send signal sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> [KILL]<br>2009-10-22 16:39:36.714604 [DEBUG] switch_core_session.c:932 Send signal sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> [BREAK]<br>
send 520 bytes to udp/[10.4.62.89]:5060 at 14:39:36.715258:<br> ------------------------------------------------------------------------<br> SIP/2.0 200 OK<br> Via: SIP/2.0/UDP 10.4.62.89;branch=z9hG4bK-7e5dc720_442d0f8-2d8bf1174f235bec_B<br>
From: <<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>;transport=udp>;tag=-22166b474ae08abf-7_T10.4.62.89<br> To: <a href="mailto:sip%3A1001282166@10.4.62.7">sip:1001282166@10.4.62.7</a>;tag=Qpc53NZ2cZc1N<br>
Call-ID: 8aa825c6-39bb-122d-bb89-00110a5be1f0<br> CSeq: 127 BYE<br> User-Agent: FreeSWITCH-mod_sofia/1.0.4-exported<br> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br>
Supported: timer, precondition, path, replaces<br> Content-Length: 0<br> <br> ------------------------------------------------------------------------<br>2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:503 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State CONSUME_MEDIA going to sleep<br>
2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:398 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) Running State Change CS_HANGUP<br>2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:434 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State HANGUP<br>
2009-10-22 16:39:36.721097 [DEBUG] mod_sofia.c:338 Channel sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> hanging up, cause: NORMAL_CLEARING<br>2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:46 sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> Standard HANGUP, cause: NORMAL_CLEARING<br>
2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:434 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State HANGUP going to sleep<br>2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:476 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State Change CS_HANGUP -> CS_REPORTING<br>
2009-10-22 16:39:36.721097 [DEBUG] switch_core_session.c:932 Send signal sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> [BREAK]<br>2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:398 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) Running State Change CS_REPORTING<br>
2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:612 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State REPORTING<br>2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:53 sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> Standard REPORTING, cause: NORMAL_CLEARING<br>
2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:612 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State REPORTING going to sleep<br>2009-10-22 16:39:36.721097 [DEBUG] switch_core_state_machine.c:411 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State Change CS_REPORTING -> CS_DESTROY<br>
2009-10-22 16:39:36.721097 [DEBUG] switch_core_session.c:1068 Session 10 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) Locked, Waiting on external entities<br><br>freeswitch@subZero> <br>
<br><br><br><br><br>2. switch_ivr_originate.c complains => <span style="background-color: rgb(255, 255, 0);">2009-10-22
16:39:41.630243 [ERR] switch_ivr_originate.c:1510 Cannot create
outgoing channel of type [user] cause: [NORMAL_CLEARING]</span><br><br><br>freeswitch@subZero> <br>freeswitch@subZero> <br>freeswitch@subZero> 2009-10-22 16:39:41.630243 [DEBUG] h323pdu.cxx:609 Receiving PDU [ip$<a href="http://10.4.62.7:1720/ip$10.4.62.31:16013">10.4.62.7:1720/ip$10.4.62.31:16013</a>] :<br>
{<br> q931pdu = {<br> protocolDiscriminator = 8<br> callReference = 23<br> from = originator<br> messageType = ReleaseComplete<br> IE: Cause - Normal ca<br>ll clearing = {<br> 80 90 ..<br>
}<br> IE: User-User = {<br> 25 80 06 00 08 91 4a 00 04 11 00 11 00 96 40 1f %.....J.......@.<br> 4e be 4f 11 de 80 76 ae 99 96 03 ba ff 10 80 01 N.O.<br>..v.........<br> ...<br> }<br>
}<br> h225pdu = {<br> h323_uu_pdu = {<br> h323_message_body = releaseComplete {<br> protocolIdentifier = 0.0.8.2250.0.4<br> callIdentifier = {<br> guid = 16 octets {<br> 96 40<br>
1f 4e be 4f 11 de 80 76 ae 99 96 03 ba ff .@.N.O...v......<br> }<br> }<br> }<br> h245Tunneling = true<br> }<br> }<br> }<br>2009-10-22 16:39:41.630243 [DEBUG] h323.cxx:1292 Handling PDU: ReleaseComplete callRef=23<br>
2009-10-22 16:39:41.630243 [DEBUG] mod_h323.cpp:745 ======>FSH323Connection::OnReceivedReleaseComplete cause = Normal call clearing value = 16<br>2009-10-22 16:39:41.630243 [NOTICE] mod_h323.cpp:749 Hangup h323/1001 [CS_EXECUTE] [NORMAL_CLEARING]<br>
2009-10-22 16:39:41.630243 [DEBUG] switch_channel.c:1683 Send signal h323/1001 [KILL]<br>2009-10-22 16:39:41.630243 [DEBUG] mod_h323.cpp:840 ======>FSH323Connection::kill_channel FSH323Connection<br>2009-10-22 16:39:41.630243 [DEBUG] mod_h323.cpp:841 Kill 1 on connection FSH323Connection<br>
2009-10-22 16:39:41.630243 [DEBUG] switch_core_session.c:630 Send signal h323/1001 [BREAK]<br>2009-10-22 16:39:41.630243 [DEBUG] mod_h323.cpp:840 ======>FSH323Connection::kill_channel FSH323Connection<br>2009-10-22 16:39:41.630243 [DEBUG] mod_h323.cpp:841 Kill 3 on connection FSH323Connection<br>
2009-10-22 16:39:41.630243 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 16 [NORMAL_CLEARING]<br><span style="background-color: rgb(255, 255, 0);">2009-10-22 16:39:41.630243 [ERR] switch_ivr_originate.c:1510 Cannot create outgoing channel of type [user] cause: [NORMAL_CLEARING]</span><br>
2009-10-22 16:39:41.630243 [DEBUG] switch_ivr_originate.c:2138 Originate Resulted in Error Cause: 16 [NORMAL_CLEARING]<br>2009-10-22 16:39:41.630243 [INFO] mod_dptools.c:2093 Originate Failed. Cause: NORMAL_CLEARING<br>2009-10-22 16:39:41.630243 [DEBUG] mod_dptools.c:2120 Continue on fail [true]: Cause: NORMAL_CLEARING<br>
2009-10-22 16:39:41.630243 [DEBUG] switch_core_state_machine.c:491 (h323/1001) State EXECUTE going to sleep<br>2009-10-22 16:39:41.630243 [DEBUG] switch_core_state_machine.c:398 (h323/1001) Running State Change CS_HANGUP<br>
2009-10-22 16:39:41.630243 [DEBUG] switch_core_state_machine.c:434 (h323/1001) State HANGUP<br>2009-10-22 16:39:41.630243 [DEBUG] mod_h323.cpp:1454 ======>switch_status_t on_hangup <br>2009-10-22 16:39:41.630243 [DEBUG] mod_h323.cpp:1459 -----><br>
2009-10-22 16:39:41.630243 [DEBUG] h323pdu.cxx:1272 Call End Reason Normal call clearing<br>2009-10-22 16:39:41.630243 [DEBUG] h323ep.cxx:2694 Clearing connection ip$<a href="http://10.4.62.31:16013/23">10.4.62.31:16013/23</a> reason=EndedByRemoteUser<br>
2009-10-22 16:39:41.630243 [DEBUG] h323.cxx:1034 Call end reason for ip$<a href="http://10.4.62.31:16013/23">10.4.62.31:16013/23</a> set to EndedByRemoteUser<br>2009-10-22 16:39:41.630243 [DEBUG] h323.cxx:1052 Sending release complete PDU: callRef=23<br>
2009-10-22 16:39:41.630243 [DEBUG] mod_h323.cpp:764 ======>FSH323Connection::OnSendReleaseComplete cause = Normal call clearing value = 16<br>2009-10-22 16:39:41.630243 [DEBUG] h323pdu.cxx:609 Sending PDU [(noaddr)/(noaddr)] :<br>
command endSessionCommand disconnect <<null>><br>2009-10-22 16:39:41.630243 [DEBUG] h323pdu.cxx:609 Sending PDU [ip$<a href="http://10.4.62.7:1720/ip$10.4.62.31:16013">10.4.62.7:1720/ip$10.4.62.31:16013</a>] :<br>
<br><br></div></div><br>