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-&gt;<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-&gt;<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>-&gt;<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-&gt;<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-&gt;<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-&gt;<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-&gt;<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-&gt;<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>-&gt;<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-&gt;<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>-&gt;<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-&gt;<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>-&gt;<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>, &amp;err, switch_core_session_get_pool(tech_pvt-&gt;<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-&gt;<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); ">&quot;RTP ERROR %s\n&quot;</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&#39;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">&lt;<a href="mailto:renjian@gmail.com">renjian@gmail.com</a>&gt;</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&#39;t. It always said &quot;DESTINATION_OUT_OF_ORDER&quot;<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-&gt;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&#39;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>&lt;include&gt;</div><div>  &lt;!-- Client Profile (Original mode) --&gt;</div><div>  &lt;!-- to use this profile take the x- away from the open and close tags so its &lt;profile&gt; and$</div>

<div>  &lt;profile type=&quot;client&quot;&gt;</div><div>    &lt;param name=&quot;name&quot; value=&quot;$${xmpp_client_profile}&quot;/&gt;</div><div>    &lt;param name=&quot;login&quot; value=&quot;<a href="http://xxxx@gmail.com/gtalk" target="_blank">xxxx@gmail.com/gtalk</a>&quot;/&gt;</div>

<div>    &lt;param name=&quot;password&quot; value=&quot;xxxx&quot;/&gt;</div><div>    &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;</div><div>    &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div>

<div>    &lt;param name=&quot;message&quot; value=&quot;Jingle all the way&quot;/&gt;</div><div>    &lt;param name=&quot;rtp-ip&quot; value=&quot;$${bind_server_ip}&quot;/&gt;</div><div>    &lt;!-- &lt;param name=&quot;ext-rtp-ip&quot; value=&quot;auto-nat&quot;/&gt; --&gt;</div>

<div>    &lt;param name=&quot;auto-login&quot; value=&quot;true&quot;/&gt;</div><div>    &lt;!-- SASL &quot;plain&quot; or &quot;md5&quot; --&gt;</div><div>    &lt;param name=&quot;sasl&quot; value=&quot;plain&quot;/&gt;</div>

<div>    &lt;!-- if the server where the jabber is hosted is not the same as the one in the jid --&gt;</div><div>    &lt;param name=&quot;server&quot; value=&quot;<a href="http://talk.google.com" target="_blank">talk.google.com</a>&quot;/&gt;</div>

<div>    &lt;!-- Enable TLS or not --&gt;</div><div>    &lt;param name=&quot;tls&quot; value=&quot;true&quot;/&gt;</div><div>    &lt;!-- disable to trade async for more calls --&gt;</div><div>    &lt;param name=&quot;use-rtp-timer&quot; value=&quot;true&quot;/&gt;</div>

<div>    &lt;!-- default extension (if one cannot be determined) --&gt;</div><div>    &lt;param name=&quot;exten&quot; value=&quot;1001&quot;/&gt;</div><div>    &lt;!-- VAD choose one --&gt;</div><div>    &lt;!-- &lt;param name=&quot;vad&quot; value=&quot;in&quot;/&gt; --&gt;</div>

<div>    &lt;!-- &lt;param name=&quot;vad&quot; value=&quot;out&quot;/&gt; --&gt;</div><div>    &lt;param name=&quot;vad&quot; value=&quot;both&quot;/&gt;</div><div>    &lt;!--&lt;param name=&quot;avatar&quot; value=&quot;/path/to/tiny.jpg&quot;/&gt;--&gt;</div>

<div>    &lt;param name=&quot;candidate-acl&quot; value=&quot;wan.auto&quot;/&gt;</div><div>    &lt;param name=&quot;local-network-acl&quot; value=&quot;localnet.auto&quot;/&gt;</div><div>  &lt;/profile&gt;</div><div>&lt;/include&gt;</div>

</div><div><br></div><div>Thanks!</div><div>Jian</div>
</blockquote></div><br></div>