<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><a href="https://wiki.freeswitch.org/wiki/Loopback">https://wiki.freeswitch.org/wiki/Loopback</a><div><br><div style=""><div>On Aug 2, 2014, at 11:19 PM, Clive Lansink <<a href="mailto:clive@lansink.co.nz">clive@lansink.co.nz</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello Freeswitch users.<br><br>Currently when I originate a call in my IVR application, I execute the API originate command like this:<br>api originate {variable1=data,variable2=data}sofia/gateway/outbound/<number> &park() xml default<br>So yes I have a gateway called outbound and this originates a call by dialling the specified number on that gateway and parking it. I get the UUID and can then do stuff with it.<br><br>But what I really want to do is originate a call by putting the specified phone number through the dialplan so Freeswitch can work out which endpoint to use. I am sure this must be possible but I can't figure out how to do it.<br><br>Just to summarise, I want to originate a call to a number which might be a local extension or it might be a number that is reached through a gateway. Why can't I do something like:<br>api originate {variable1=data,variable2=data}<number> &park() xml default<br>I want Freeswitch to work out which Sofia profile and endpoint to use. I want Freeswitch to park the call in the same way as above and give me the UUID. Is this possible?<br><br>Can anyone help with this please?<br><br></blockquote></div><br></div></body></html>