<html><head></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1518533441841_14120"><span></span></div><div></div><div id="yui_3_16_0_ym19_1_1518533441841_14116"> </div><div class="signature" id="yui_3_16_0_ym19_1_1518533441841_14150"><div dir="ltr" id="yui_3_16_0_ym19_1_1518533441841_14149"><div id="yui_3_16_0_ym19_1_1518533441841_15001">I have a somewhat newbie question </div><div id="yui_3_16_0_ym19_1_1518533441841_15002"><br id="yui_3_16_0_ym19_1_1518533441841_15003"></div><div id="yui_3_16_0_ym19_1_1518533441841_15004">I have a current scenerio were a user registers with freeswitch and makes a call out - Works Perfect!</div><div id="yui_3_16_0_ym19_1_1518533441841_15005"><br id="yui_3_16_0_ym19_1_1518533441841_15006"></div><div id="yui_3_16_0_ym19_1_1518533441841_15007"><include></div><div id="yui_3_16_0_ym19_1_1518533441841_15008">  <user id="1000"></div><div id="yui_3_16_0_ym19_1_1518533441841_15009">    <!-- CGRateS config sample. </div><div id="yui_3_16_0_ym19_1_1518533441841_15010">    Make default 1000 user prepaid by adding cgr_reqtype variable to your user --></div><div id="yui_3_16_0_ym19_1_1518533441841_15011">    <params></div><div id="yui_3_16_0_ym19_1_1518533441841_15012">      <param name="password" value="$${default_password}"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15013">      <param name="vm-password" value="1000"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15014">    </params></div><div id="yui_3_16_0_ym19_1_1518533441841_15015">    <variables></div><div id="yui_3_16_0_ym19_1_1518533441841_15016">      <variable name="toll_allow" value="domestic,international,local"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15017">      <variable name="accountcode" value="1000"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15018">      <variable name="user_context" value="default"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15019">      <variable name="effective_caller_id_name" value="Extension 1000"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15020">      <variable name="effective_caller_id_number" value="1000"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15021">      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15022">      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15023">      <variable name="callgroup" value="techsupport"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15024">      <variable name="cgr_reqtype" value="*prepaid"/></div><div id="yui_3_16_0_ym19_1_1518533441841_15025">    </variables></div><div id="yui_3_16_0_ym19_1_1518533441841_15026">  </user></div><div id="yui_3_16_0_ym19_1_1518533441841_15027"></include></div><div id="yui_3_16_0_ym19_1_1518533441841_15028"><br id="yui_3_16_0_ym19_1_1518533441841_15029"></div><div id="yui_3_16_0_ym19_1_1518533441841_15030">and then in the default dialplan, i have this</div><div id="yui_3_16_0_ym19_1_1518533441841_15031"><br id="yui_3_16_0_ym19_1_1518533441841_15032"></div><div id="yui_3_16_0_ym19_1_1518533441841_15033">    <!--- CGRateS related extensions --></div><div id="yui_3_16_0_ym19_1_1518533441841_15034">    <!-- Place all requests into park app. Notify must be empty so we do not loop. Order Lcr computation --></div><div id="yui_3_16_0_ym19_1_1518533441841_15035">    <extension name="CGRateS_Auth"></div><div id="yui_3_16_0_ym19_1_1518533441841_15036">      <condition field="${cgr_notify}" expression="^$"></div><div id="yui_3_16_0_ym19_1_1518533441841_15037">        <!---<action application="set" data="cgr_computelcr=true" />--></div><div id="yui_3_16_0_ym19_1_1518533441841_15038">        <action application="park" /></div><div id="yui_3_16_0_ym19_1_1518533441841_15039">      </condition></div><div id="yui_3_16_0_ym19_1_1518533441841_15040">    </extension></div><div id="yui_3_16_0_ym19_1_1518533441841_15041"><br id="yui_3_16_0_ym19_1_1518533441841_15042"></div><div id="yui_3_16_0_ym19_1_1518533441841_15043">Now, i would love to send a call out with the  originate command </div><div id="yui_3_16_0_ym19_1_1518533441841_15044">I've tried this - </div><div id="yui_3_16_0_ym19_1_1518533441841_15045">originate {origination_caller_id_number='123456789',ignore_early_media=true,originate_timeout=45}sofia/gateway/provider_one/7774262712 &playback(/usr/share/freeswitch/sounds/en/us/callie/voicemail/8000/vm-hello.wav) default CGRates_Auth</div><div id="yui_3_16_0_ym19_1_1518533441841_15046"><br id="yui_3_16_0_ym19_1_1518533441841_15047"></div><div id="yui_3_16_0_ym19_1_1518533441841_15048">That sends the call out and then hangs it up(expectedly)</div><div id="yui_3_16_0_ym19_1_1518533441841_15049"><br id="yui_3_16_0_ym19_1_1518533441841_15050"></div><div id="yui_3_16_0_ym19_1_1518533441841_15051"><br id="yui_3_16_0_ym19_1_1518533441841_15052"></div><div id="yui_3_16_0_ym19_1_1518533441841_15053">Is there a way i can replicate my working scenerio(maybe pass in those channel variable) but with the originate command? I'm naively thinking, maybe sending the call to a dialplan first before sending it to a gateway?</div><div id="yui_3_16_0_ym19_1_1518533441841_15054"><br id="yui_3_16_0_ym19_1_1518533441841_15055"></div><div id="yui_3_16_0_ym19_1_1518533441841_15056"><br id="yui_3_16_0_ym19_1_1518533441841_15057"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1518533441841_15058">Please pardon me if the answers are obvious.</div></div></div></div></body></html>