[Freeswitch-users] [ringback] problems with dingaling

kriko kristjan.ugrin at gmail.com
Thu Jan 8 06:19:09 PST 2009


Nope.
Currently only gtalk → sip ringback works, sip → gtalk doesn't.

If soemone needs, I'm pasting my extensions used.


sip → gtalk (ringback not working):
    <extension name="sip2jingle">
      <condition field="source" expression="mod_sofia"/>
      <condition field="destination_number" expression="^gmail\+([^\@]+)\@?(.*)$">
	<action application="set" data="continue_on_fail=true"/>
	<action application="set" data="ringback=tone_stream://path=${base_dir}/conf/tetris.ttml;loops=10"/>
	<action application="set" data="hangup_after_bridge=true"/>
<!-- 	<action application="bridge" data="dingaling/gmail.com/$1 at gmail.com"/> -->
	<action application="bridge" data="{ignore_early_media=true}dingaling/gmail.com/$1 at gmail.com"/>
      </condition>
    </extension>

gtalk → sip:
  <extension name="gmail2sip">
  <condition field="caller_id_number" expression="^([^@]+)" break="never">
    <!--Nokia bug - problems with @ in caller_id -->
    <action application="set" data="effective_caller_id_number=$1"/>
    <action application="set" data="effective_caller_id_name=$1 at gmail.com"/>
    <action application="set" data="continue_on_fail=true"/>
    <action application="set" data="ringback=tone_stream://path=${base_dir}/conf/tetris.ttml;loops=10"/>
    <action application="set" data="hangup_after_bridge=true"/>
    <action application="bridge" data="sofia/$${domain}/${destination_number}"/>
  </condition>
  </extension>

    
Thanks for your help!

On Thu, 08 Jan 2009 15:09:41 +0100, Anthony Minessale <anthony.minessale at gmail.com> wrote:

> you may want to try
>
> <action application="bridge" data="{ignore_early_media=true}dingaling/
> gmail.com/$1 at gmail.com"/>
>
> jingle has no concept of telephony early media waiting for answer and all
> that so it's not an exact fit into sip.
>
>
> On Thu, Jan 8, 2009 at 7:32 AM, kriko <kristjan.ugrin at gmail.com> wrote:
>
>> Now I've made a small dialplan to call from sip phone directly to gtalk:
>>
>>    <extension name="sip2jingle">
>>      <condition field="source" expression="mod_sofia"/>
>>      <condition field="destination_number"
>> expression="^gmail\+([^\@]+)\@?(.*)$">
>> <!--    <action application="answer"/> -->
>> <!--     <action application="playback"
>> data="tone_stream://path=${base_dir}/conf/tetris.ttml;loops=10"/>  -->
>>        <action application="set" data="continue_on_fail=true"/>
>>        <action application="set"  
>> data="ringback=%(2000,4000,440.0,480.0)"/>
>>        <action application="set" data="hangup_after_bridge=true"/>
>>        <action application="bridge"  
>> data="dingaling/gmail.com/$1 at gmail.com
>> "/>
>>      </condition>
>>    </extension>
>>
>> Simple, calling works. However still can't get ringback to work. In this
>> case the first leg is not yet aswered.
>> If I apply same stuff onto SIP to SIP call then ringback works.  
>> Dingaling
>> problem?
>>
>> Log:
>> http://pastebin.com/m37354677
>>
>> This is all that
>> 2009-01-08 14:25:56 [NOTICE] mod_dingaling.c:1110 negotiate_media()
>> Ring-Ready dingaling/gmail.com/atomic.devterium at gmail.com!
>> 2009-01-08 14:25:56 [DEBUG] mod_dingaling.c:1058 do_describe() Don't  
>> have
>> my codec yet here's one
>>
>>
>>
>>
>> --
>> kriko
>>
>>
>>
>> _______________________________________________
>> Freeswitch-users mailing list
>> Freeswitch-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>



-- 
kriko






More information about the FreeSWITCH-users mailing list