<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_1518598387192_7307"><span id="yui_3_16_0_ym19_1_1518598387192_7313"></span></div><div></div><div id="yui_3_16_0_ym19_1_1518598387192_7309"> </div><div class="signature" id="yui_3_16_0_ym19_1_1518598387192_7302"><div id="yui_3_16_0_ym19_1_1518598387192_7301"><div id="yui_3_16_0_ym19_1_1518598387192_7243">Hello,</div><div id="yui_3_16_0_ym19_1_1518598387192_7244"><br id="yui_3_16_0_ym19_1_1518598387192_7245"></div><div id="yui_3_16_0_ym19_1_1518598387192_7246">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_1518598387192_7247"><br id="yui_3_16_0_ym19_1_1518598387192_7248"></div><div id="yui_3_16_0_ym19_1_1518598387192_7249"><include></div><div id="yui_3_16_0_ym19_1_1518598387192_7250"> <user id="1000"></div><div id="yui_3_16_0_ym19_1_1518598387192_7251"> <!-- CGRateS config sample. </div><div id="yui_3_16_0_ym19_1_1518598387192_7252"> Make default 1000 user prepaid by adding cgr_reqtype variable to your user --></div><div id="yui_3_16_0_ym19_1_1518598387192_7253"> <params></div><div id="yui_3_16_0_ym19_1_1518598387192_7254"> <param name="password" value="$${default_password}"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7255"> <param name="vm-password" value="1000"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7256"> </params></div><div id="yui_3_16_0_ym19_1_1518598387192_7257"> <variables></div><div id="yui_3_16_0_ym19_1_1518598387192_7258"> <variable name="toll_allow" value="domestic,international,local"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7259"> <variable name="accountcode" value="1000"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7260"> <variable name="user_context" value="default"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7261"> <variable name="effective_caller_id_name" value="Extension 1000"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7262"> <variable name="effective_caller_id_number" value="1000"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7263"> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7264"> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7265"> <variable name="callgroup" value="techsupport"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7266"> <variable name="cgr_reqtype" value="*prepaid"/></div><div id="yui_3_16_0_ym19_1_1518598387192_7267"> </variables></div><div id="yui_3_16_0_ym19_1_1518598387192_7268"> </user></div><div id="yui_3_16_0_ym19_1_1518598387192_7269"></include></div><div id="yui_3_16_0_ym19_1_1518598387192_7270"><br id="yui_3_16_0_ym19_1_1518598387192_7271"></div><div id="yui_3_16_0_ym19_1_1518598387192_7272">and then in the default dialplan, i have this</div><div id="yui_3_16_0_ym19_1_1518598387192_7273"><br id="yui_3_16_0_ym19_1_1518598387192_7274"></div><div id="yui_3_16_0_ym19_1_1518598387192_7275"> <!--- CGRateS related extensions --></div><div id="yui_3_16_0_ym19_1_1518598387192_7276"> <!-- 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_1518598387192_7277"> <extension name="CGRateS_Auth"></div><div id="yui_3_16_0_ym19_1_1518598387192_7278"> <condition field="${cgr_notify}" expression="^$"></div><div id="yui_3_16_0_ym19_1_1518598387192_7279"> <!---<action application="set" data="cgr_computelcr=true" />--></div><div id="yui_3_16_0_ym19_1_1518598387192_7280"> <action application="park" /></div><div id="yui_3_16_0_ym19_1_1518598387192_7281"> </condition></div><div id="yui_3_16_0_ym19_1_1518598387192_7282"> </extension></div><div id="yui_3_16_0_ym19_1_1518598387192_7283"><br id="yui_3_16_0_ym19_1_1518598387192_7284"></div><div id="yui_3_16_0_ym19_1_1518598387192_7285">Now, i would love to send a call out with the originate command </div><div id="yui_3_16_0_ym19_1_1518598387192_7286">I've tried this - </div><div id="yui_3_16_0_ym19_1_1518598387192_7287">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_1518598387192_7288"><br id="yui_3_16_0_ym19_1_1518598387192_7289"></div><div id="yui_3_16_0_ym19_1_1518598387192_7290">That sends the call out and then hangs it up(expectedly)</div><div id="yui_3_16_0_ym19_1_1518598387192_7291"><br id="yui_3_16_0_ym19_1_1518598387192_7292"></div><div id="yui_3_16_0_ym19_1_1518598387192_7293"><br id="yui_3_16_0_ym19_1_1518598387192_7294"></div><div id="yui_3_16_0_ym19_1_1518598387192_7295">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_1518598387192_7296"><br id="yui_3_16_0_ym19_1_1518598387192_7297"></div><div id="yui_3_16_0_ym19_1_1518598387192_7298"><br id="yui_3_16_0_ym19_1_1518598387192_7299"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1518598387192_7300">Please pardon me if the answers are obvious.</div></div></div></div></body></html>