That is because you set that custom ringback tone in the part of the dialplan that executes for local extension calls. Determine which <condition> matches calls to the PSTN and set the ringback tone inside that <condition> block. Different parts of the dialplan will be matched and executed for different calls. But in some cases the PSTN provider might not send the necessary signaling back to FreeSWITCH to play that tone, so you might be disappointed. Nothing FS can do about that, I'm afraid. --- Bote FreeSWITCH Docs Janitor http://freeswitch.org/confluence
-----Original Message----- From: ankitdoshi Sent: Friday, 29 January, 2016 03:19 Subject: [Freeswitch-users] RingBack for PSTN call
Hello,
I want to set .wav as ringback tone for PSTN call, like caller tune. I have implemented it partially for local calls by getting idea from here, https://wiki.freeswitch.org/wiki/Custom_Ring_Back_Tones
i have set the param like this, $xml .="<action application=\"set\" data=\"ringback=/usr/local/freeswitch/sounds/en/us/callie/astpp-menu.wav\"/> "; before bridge line in dialplan.
This works with local calls , but when i dial PSTN call then i hear only ring tone and not my set .wav audio. Any suggestions are welcome.
Thanks.
----- Thanks Ankit Doshi -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/RingBack-for-PSTN-call-tp75961 99.html Sent from the freeswitch-users mailing list archive at Nabble.com.
__________________________________________________________ _______________