[Freeswitch-users] Newbie -- Help Needed Transferring Inbound Caller ID to external SIP Gateway URI

Sina Owolabi notify.sina at gmail.com
Wed Dec 31 11:39:11 MSK 2014


Avi

Thanks for all your assistance. I found out why I wasnt hearing anything.
For some reason I had to put the full path to the wav file before I
would hear anything played.
I am also not transferring to another extension now, thanks to more
help I got in irc.
Everything happens in the public inbound extension like so:

<extension name="transfer2external">
    <condition field="${caller_id_number}" expression="^01234(\d{6})$"
require-nested="false">
       <action application="set" data="effective_caller_id_number=01234${1}"/>
       <action application="set" data="effective_caller_id_name=01234${1}"/>
    </condition>
    <condition field="destination_number"
expression="^012345(?!85|90|91|92)(\d)(\d)$">
      <action application="ring_ready" />
      <action application="sleep" data="5000"/>
      <action application="set" data="ringback=%(2000, 4000, 440.0, 480.0)"/>
      <action application="bridge"
data="sofia/external/sip:username at sip.othersipgw.com;${effective_caller_id_number}"/>
    </condition>
  </extension>

I get a ring and the call is transferred.
Thanks again!

On Wed, Dec 10, 2014 at 12:13 PM, Avi Marcus <avi at avimarcus.net> wrote:
> Your log still shows: Action set(exec_after_bridge_arg=1213)
>
> ... and if they set a 180, then you can set the ringback.
> -Avi



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list