<div dir="ltr">It's probably because the call hasn't been answered yet, which means codec negotiation hasn't completed yet. They have sent you their supported codecs in the INVITE, FreeSWITCH is configured with which ones it supports but you haven't yet decided which codec to actually use for the call and therefore you haven't picked a rate yet.</div><div class="gmail_extra"><br><div class="gmail_quote">On 15 June 2015 at 15:06, Dmitry Mordovin <span dir="ltr"><<a href="mailto:dm@dwide.com" target="_blank">dm@dwide.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
Don't understand why ${rate} is null while one user call another...<br>
<br>
<section name="dialplan" description="Local call"><br>
<context name="public"><br>
<extension name="local"><br>
<condition field="destination_number" expression="^(\d{3})$"><br>
<action application="set" data="effective_caller_id_number=105"/><br>
<br>
<action application="set" data="rrr=${rate}"/><br>
<br>
<action application="export"<br>
data="hold_music=/opt/sharefs/moh/0/${rate}/1_1.wav" /><br>
<action application="bridge"<br>
data="sofia/internal/00294539100%${domain_name}"/><br>
</condition><br>
</extension><br>
</context><br>
</section><br>
<br>
${rate} is empty<br>
<br>
May I can use rate after answer only?<br>
<br>
Best regards<br>
Dmitry<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>