Did you compare the siptraces on working vs. non-working calls? Any differences, like 180 vs. 183, etc.?<div><br></div><div>-MC<br><br><div class="gmail_quote">On Thu, Mar 17, 2011 at 10:29 AM, Achim Stamm <span dir="ltr">&lt;<a href="mailto:stamm@lyth.de">stamm@lyth.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">No ringback tone, when calling<br>
<br>
Hello,<br>
<br>
i have the following problem:<br>
<br>
I use a phone on line port of LinkSys Spa 3102, which is registered with<br>
number 60 on freeswitch.<br>
I can hear a ringback tone, when I?m calling another registered phone<br>
for example 61 (see dialplan extension Call Voip).<br>
I cannot hear the ring tone on the phone connected to the Spa 3102, when<br>
I&#39;m calling special number 70 leading to a self implemented freeswitch<br>
module<br>
(see dialplan Doing Something).<br>
This problem doesn&#39;t appear using X-Lite or an Siemens Voip telephone.<br>
My module does a preanswer as in the code shown below but something must<br>
be different - maybe I have to add somehting to the callhandling.<br>
Does anyone have an idea ?<br>
<br>
Greetings<br>
<br>
Achim Stamm<br>
<br>
<br>
Here is a snippet of my dialplan:<br>
-------------------------------------------------<br>
&lt;extension name=&quot;Doing Something&quot;&gt;<br>
&lt;condition field=&quot;caller_id_number&quot; expression=&quot;^6[0-9]$&quot; /&gt;<br>
&lt;condition field=&quot;destination_number&quot; expression=&quot;^7([0-9])$&quot; &gt;<br>
&lt;action application=&quot;set&quot; data=&quot;call_timeout=120&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=false&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;ignore_early_media=true&quot;/&gt;<br>
&lt;action application=&quot;doingSomething&quot;<br>
data=&quot;DoingSomething,5$1,${destination_number}&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
&lt;extension name=&quot;Call Voip&quot;&gt;<br>
&lt;condition field=&quot;destination_number&quot; expression=&quot;^.*$&quot; /&gt;<br>
&lt;condition field=&quot;caller_id_number&quot; expression=&quot;6([0-9])&quot;&gt;<br>
&lt;action application=&quot;bridge&quot;<br>
data=&quot;sofia/internal/${destination_number}@${amtsleitung_5$1_ip_address}:5061&quot;<br>
/&gt;<br>
&lt;action application=&quot;answer&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
-------------------------------------------------<br>
<br>
Here is a snippet of my code:<br>
---------------------------------------------------<br>
No ringback tone, when calling<br>
<br>
Hello,<br>
<br>
i have the following problem:<br>
<br>
I use a phone on line port of LinkSys Spa 3102, which is registered with<br>
number 60 on freeswitch.<br>
I can hear a ringback tone, when I?m calling another registered phone<br>
for example 61.<br>
I cannot hear the ring tone on the phone connected to the Spa 3102, when<br>
I&#39;m calling special number 70 leading to a self implemented freeswitch<br>
module.<br>
This problem doesn&#39;t appear using X-Lite or an Siemens Voip telephone.<br>
My module does a preanswer as in the code shown below but something must<br>
be different - maybe I have to add somehting to the callhandling. Does<br>
anyone have an idea ?<br>
<br>
Greetings<br>
<br>
Achim Stamm<br>
<br>
<br>
Here is a snippet of my dialplan:<br>
-------------------------------------------------<br>
&lt;extension name=&quot;Doing Something&quot;&gt;<br>
&lt;condition field=&quot;caller_id_number&quot; expression=&quot;^6[0-9]$&quot; /&gt;<br>
&lt;condition field=&quot;destination_number&quot; expression=&quot;^7([0-9])$&quot; &gt;<br>
&lt;action application=&quot;set&quot; data=&quot;call_timeout=120&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=false&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;ignore_early_media=true&quot;/&gt;<br>
&lt;action application=&quot;doingSomething&quot;<br>
data=&quot;DoingSomething,5$1,${destination_number}&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
&lt;extension name=&quot;Call Voip&quot;&gt;<br>
&lt;condition field=&quot;destination_number&quot; expression=&quot;^.*$&quot; /&gt;<br>
&lt;condition field=&quot;caller_id_number&quot; expression=&quot;6([0-9])&quot;&gt;<br>
&lt;action application=&quot;bridge&quot;<br>
data=&quot;sofia/internal/${destination_number}@${amtsleitung_5$1_ip_address}:5061&quot;<br>
/&gt;<br>
&lt;action application=&quot;answer&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
-------------------------------------------------<br>
<br>
Here is a snippet of my code:<br>
---------------------------------------------------<br>
static switch_status_t doingSomething(switch_core_session_t *session,<br>
bool bWriteAudioLogfile, switch_input_args_t *args)<br>
{<br>
switch_codec_t codec = { 0 };<br>
switch_status_t status;<br>
switch_frame_t *read_frame;<br>
switch_channel_t *channel = switch_core_session_get_channel(session);<br>
<br>
if (switch_channel_pre_answer(channel) != SWITCH_STATUS_SUCCESS) {<br>
return SWITCH_STATUS_FALSE;<br>
}<br>
while (switch_channel_ready(channel) )<br>
{<br>
<br>
if (!process_read_write_frames(session,channel))<br>
break;<br>
}<br>
<br>
switch_channel_hangup(channel,SWITCH_CAUSE_NORMAL_CLEARING);<br>
switch_log_printf(SWITCH_CHANNEL_LOG,SWITCH_LOG_INFO,&quot;doingSomething\n&quot;);<br>
return SWITCH_STATUS_SUCCESS;<br>
}<br>
---------------------------------------------------<br>
<br>
<br>
<br>
---------------------------------------------------<br>
<br>
<br>
--<br>
Achim Stamm, Dipl.-Inform. (FH)<br>
<br>
<br>
Lyncker &amp; Theis GmbH<br>
Wilhelmstr. 16<br>
65185 Wiesbaden<br>
Germany<br>
<br>
Fon +49 611/9006951<br>
Fax +49 611/9406125<br>
<br>
<br>
Handelsregister: HRB 23156 Amtsgericht Wiesbaden<br>
Steuernummer: 04323897052<br>
USt-IdNr.: DE255806399<br>
<br>
Geschäftsführer:<br>
Filip Lyncker,<br>
Armin Theis,<br>
Patrick Schmidt<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>