mod_dingaling.c line 909:<div><span class="Apple-style-span" style="font-family: monospace, fixed; font-size: 14px; "><pre class="fragment" style="font-family: monospace, fixed; font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); background-color: rgb(245, 245, 245); margin-top: 4px; margin-bottom: 4px; margin-left: 2px; margin-right: 8px; padding-left: 6px; padding-right: 6px; padding-top: 4px; padding-bottom: 4px; ">
<span class="keywordflow" style="color: rgb(224, 128, 0); ">if</span> (!(tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#d5829b7e4a473ccebac90e44afe586c3" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">rtp_session</a> = switch_rtp_new(tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#6c15f3ddeb0b6b952e9a5c8a2e443426" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">profile</a>-><a class="code" href="http://docs.freeswitch.org/structmdl__profile.html#38dfeac1fbf9e8d3784dd7eeb746cf6a" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">ip</a>,
<a name="l00901" style="color: rgb(26, 65, 168); "></a>00901 tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#63221941aab4357700497a529d51f2ca" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">local_port</a>,
<a name="l00902" style="color: rgb(26, 65, 168); "></a>00902 tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#e1cbf100db6a0a4fd7eea10935fa2989" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">remote_ip</a>,
<a name="l00903" style="color: rgb(26, 65, 168); "></a>00903 tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#ca66c963cc0f4abf206ee9681d91a5ec" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">remote_port</a>,
<a name="l00904" style="color: rgb(26, 65, 168); "></a>00904 tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#d1e23e3cec68cdff6135ef4c690aa8c4" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">codec_num</a>,
<a name="l00905" style="color: rgb(26, 65, 168); "></a>00905 tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#c696c2e7f6f43f4f24e14c6c2dc81670" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">read_codec</a>.<a class="code" href="http://docs.freeswitch.org/structswitch__codec.html#4e2eb0504df66a664f237ff4f2f9b2b5" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">implementation</a>-><a class="code" href="http://docs.freeswitch.org/structswitch__codec__implementation.html#f6c2d7ee05d03910f7fb87cf3056f294" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">samples_per_packet</a>,
<a name="l00906" style="color: rgb(26, 65, 168); "></a>00906 tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#c696c2e7f6f43f4f24e14c6c2dc81670" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">read_codec</a>.<a class="code" href="http://docs.freeswitch.org/structswitch__codec.html#4e2eb0504df66a664f237ff4f2f9b2b5" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">implementation</a>-><a class="code" href="http://docs.freeswitch.org/structswitch__codec__implementation.html#f2bf6153bbb519fbb2523de02581c980" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">microseconds_per_packet</a>,
<a name="l00907" style="color: rgb(26, 65, 168); "></a>00907 flags, tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#6c15f3ddeb0b6b952e9a5c8a2e443426" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">profile</a>-><a class="code" href="http://docs.freeswitch.org/structmdl__profile.html#f34f270ada1c3c9c2203f4caba80eb8a" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">timer_name</a>, &err, switch_core_session_get_pool(tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#ad69db0ca1011d01ada618b2b588a82d" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">session</a>)))) {
<a name="l00908" style="color: rgb(26, 65, 168); "></a>00908 switch_log_printf(<a class="code" href="http://docs.freeswitch.org/switch__types_8h.html#bc899743e2a268974063fd82f654829f" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">SWITCH_CHANNEL_SESSION_LOG</a>(tech_pvt-><a class="code" href="http://docs.freeswitch.org/structprivate__object.html#ad69db0ca1011d01ada618b2b588a82d" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">session</a>), <a class="code" href="http://docs.freeswitch.org/switch__types_8h.html#b74279dba7ee171b8b9d3decfcf13584a213e63b710064a30aa4524ddc30cbc4" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">SWITCH_LOG_DEBUG</a>, <span class="stringliteral" style="color: rgb(0, 32, 128); ">"RTP ERROR %s\n"</span>, err);
<a name="l00909" style="color: rgb(26, 65, 168); "></a>00909 <a class="code" href="http://docs.freeswitch.org/group__switch__channel.html#g2d4ca1c1e6bfea7ba35665397b27ec60" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">switch_channel_hangup</a>(<a class="code" href="http://docs.freeswitch.org/group__switch__channel.html#g991acd084cbac25bf6d2a325754ba221" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">channel</a>, <a class="code" href="http://docs.freeswitch.org/switch__types_8h.html#1606cd34d8539e5da76ebdcb89cc36b5f85efe65333a82f93a5e2913707575ae" style="color: rgb(0, 0, 255); text-decoration: none; font-weight: normal; ">SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER</a>);
<a name="l00910" style="color: rgb(26, 65, 168); "></a>00910 <span class="keywordflow" style="color: rgb(224, 128, 0); ">return</span> 0;</pre></span><div><br></div><div>Something wrong with the rtp session, what's that?</div>
<div><br></div><div>Thanks!</div><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 8:41 PM, Jian Ren <span dir="ltr"><<a href="mailto:renjian@gmail.com">renjian@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Outcall works but the incoming doesn't. It always said "DESTINATION_OUT_OF_ORDER"<div><br><div><div>2010-11-04 20:32:31.797390 [NOTICE] switch_channel.c:784 New Channel dingaling/1001 [2d48674e-e874-11df-ab9a-9787aa669b3a]</div>
<div>2010-11-04 20:32:31.797390 [NOTICE] switch_channel.c:782 Rename Channel dingaling/1001->DingaLing/new [2d48674e-e874-11df-ab9a-9787aa669b3a]</div><div>2010-11-04 20:32:31.797390 [NOTICE] mod_dingaling.c:1104 Ring-Ready DingaLing/new!</div>
<div>2010-11-04 20:32:32.164739 [NOTICE] mod_dingaling.c:909 Hangup DingaLing/new [CS_INIT] [DESTINATION_OUT_OF_ORDER]</div><div>2010-11-04 20:32:32.165726 [NOTICE] switch_core_session.c:1242 Session 1 (DingaLing/new) Ended</div>
<div>2010-11-04 20:32:32.165726 [NOTICE] switch_core_session.c:1244 Close Channel DingaLing/new [CS_DESTROY]</div></div><div><br></div></div><div>I had skypopen loaded but pointed to another extension, not sure whether it's related. Now I commented out mod_skypopen but still got the same problem.</div>
<div>Please help!</div><div><br></div><div>My jingling client.xml:</div><div><br></div><div><div><include></div><div> <!-- Client Profile (Original mode) --></div><div> <!-- to use this profile take the x- away from the open and close tags so its <profile> and$</div>
<div> <profile type="client"></div><div> <param name="name" value="$${xmpp_client_profile}"/></div><div> <param name="login" value="<a href="http://xxxx@gmail.com/gtalk" target="_blank">xxxx@gmail.com/gtalk</a>"/></div>
<div> <param name="password" value="xxxx"/></div><div> <param name="dialplan" value="XML"/></div><div> <param name="context" value="public"/></div>
<div> <param name="message" value="Jingle all the way"/></div><div> <param name="rtp-ip" value="$${bind_server_ip}"/></div><div> <!-- <param name="ext-rtp-ip" value="auto-nat"/> --></div>
<div> <param name="auto-login" value="true"/></div><div> <!-- SASL "plain" or "md5" --></div><div> <param name="sasl" value="plain"/></div>
<div> <!-- if the server where the jabber is hosted is not the same as the one in the jid --></div><div> <param name="server" value="<a href="http://talk.google.com" target="_blank">talk.google.com</a>"/></div>
<div> <!-- Enable TLS or not --></div><div> <param name="tls" value="true"/></div><div> <!-- disable to trade async for more calls --></div><div> <param name="use-rtp-timer" value="true"/></div>
<div> <!-- default extension (if one cannot be determined) --></div><div> <param name="exten" value="1001"/></div><div> <!-- VAD choose one --></div><div> <!-- <param name="vad" value="in"/> --></div>
<div> <!-- <param name="vad" value="out"/> --></div><div> <param name="vad" value="both"/></div><div> <!--<param name="avatar" value="/path/to/tiny.jpg"/>--></div>
<div> <param name="candidate-acl" value="wan.auto"/></div><div> <param name="local-network-acl" value="localnet.auto"/></div><div> </profile></div><div></include></div>
</div><div><br></div><div>Thanks!</div><div>Jian</div>
</blockquote></div><br></div>