[Freeswitch-users] How to play custom ringback using outbound ES.

Post my.post at hotmail.com
Thu Dec 11 22:25:42 MSK 2014


Hi everyone,

     This is probably very simple, but I am stuck. I am using simple 
perl script to listen for incoming connection from freeswitch. I am 
willing to learn how to send a custom ringback to legA user. So far I 
managed to play some wav file in the following way:

   $con->execute("pre_answer", "", $uuid);
   $con->execute("playback", "somefile.wav", $uuid);

So this works ok.

Now I am trying to send a custom ringback (here are my guesses):

1)
   $con->execute("set", "ringback=\$\${ru-ring}", $uuid);
   $con->execute("pre_answer", "", $uuid);

doesn't work (hear silence on legA user, see 183 with SDP in fs_cli 
sofia trace)



2)
   $con->execute("set", "ringback=\$\${ru-ring}", $uuid);
   $con->execute("ring_ready", "", $uuid);

doesn't work either (hear RBT, pre-programmed in endpoint, see 180 w/o 
SDP in fs_cli sofia trace).

Please give some advice.

Regards,

Pavel.





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