<div dir="ltr"><div dir="ltr"><div dir="ltr">verto_h_ is only for incoming verto invites. why not generate filename at client side as you got any needed data at it anyway<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">ср, 21 нояб. 2018 г. в 18:17, Nuno Bessa <<a href="mailto:nunoferreirabessa@gmail.com">nunoferreirabessa@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I'm using mod_verto with the javascript library and it's working great except for one thing I haven't quite figured out yet.</div><div>95% of our calls are outbound, from mod_verto to PSTN and my outbound dialplan is set to record all sessions.</div><div>Before mod_verto, we used a desktop app developed by me, wich in turn received a variable from the dialplan on A-leg set like this:</div><div><br></div><div><div><action application="set" data="sip_rh_X-RecordingFilename=${strftime(%Y)}/${strftime(%m)}/${strftime(%d)}/${strftime(%H)}/${strftime(%M)}/${destination_number}_${caller_id_number}.wav"/></div></div><div><br></div><div>My application would store that variable along with all client details, for later supervision. Recordings are stored using YYYY/MM/DD/HH/MM/LEG-B-NUMBER_LEG-A-EXTENSION.WAV format, and I need to acess this variable, because client's clock may slightly differ from freeswitch server, and the path to the recording would be wrong when stored in MySQL.</div><div><br></div><div>With mod_verto and the javascript library, I can't read custom variables and get them on the javascript dialog object, more specifically on dialog.params, which is the place to read them I believe.</div><div><br></div><div>This is my complete dialplan:</div><div><br></div><div><div><include></div><div><span style="white-space:pre-wrap"> </span><extension name="Call_Verto"></div><div><span style="white-space:pre-wrap"> </span><condition field="source" expression="mod_verto"></div><div><span style="white-space:pre-wrap"> </span><condition field="destination_number" expression="(^\d{9,14}$)"></div><div><span style="white-space:pre-wrap"> </span><action application="set" data="absolute_codec_string=^^:PCMA:PCMU"/></div><div><span style="white-space:pre-wrap"> </span><action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/></div><div><span style="white-space:pre-wrap"> </span><action application="set" data="RECORD_STEREO=false"/></div><div><span style="white-space:pre-wrap"> </span><action application="record_session" data="$${basedir}/Program Files/FreeSWITCH/recordings/archive/outbound/${strftime(%Y)}/${strftime(%m)}/${strftime(%d)}/${strftime(%H)}/${strftime(%M)}/${destination_number}_${caller_id_number}.wav"/></div><div><span style="white-space:pre-wrap"> </span><action application="set" data="verto_h_recording_filename=${strftime(%Y)}/${strftime(%m)}/${strftime(%d)}/${strftime(%H)}/${strftime(%M)}/${destination_number}_${caller_id_number}.wav"/></div><div><span style="white-space:pre-wrap"> </span><action application="bridge" data="sofia/gateway/IPPBX/$1"/></div><div><span style="white-space:pre-wrap"> </span></condition></div><div><span style="white-space:pre-wrap"> </span></condition></div><div><span style="white-space:pre-wrap"> </span></extension></div><div></include></div></div><div><br></div><div>How can I set the verto_h_recording_filename variable in order to acess it with verto javascript client being the A-leg a mod_verto client?</div><div><br></div><div>I searched all over but couldn't find a solution to my specific case, and documention is still a little sparse unfortunatelly.</div><div><br></div><div>Thanks in advance for your help!</div></div>
_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>