How to call a non-user extension from "originate" [SOLVED]
I found the answer by myself while I had finished writing the e-mail. The correct call url is loopback/<extension> (in this case the command is originate loopback/fakecall 1000 ). I'm sending the e-mail anyway for future reference (can't find any example of that anywhere). Is the project wiki accesible for anyone to contribute or do I have to ask for an authorization? Regards, Raffaele *********** ORIGINAL QUESTION ************* Hi, I'm trying to call an extension wich is not associated to a user from the ESL (or the CLI as well) using the "ORIGINATE" command. Now, while originate user/1001 1000 works perfectly with: originate user/fakecall 1000 I have an error: 2009-08-03 13:21:19.406250 [ERR] switch_ivr_originate.c:1494 Cannot create outgoing channel of type [user] cause: [SUBSCRIBER_ABSENT] ...this is not surprising ("fakecall" of course is not an user), but I cannot figure out what is the correct CALL URL for this extension. Same error is reported using sofia/internal/fakecall. It seems that the EXECUTE_EXTENSION method could do for the magic (it works when issued from an other extension in the dialplan) but it is not available from the CLI nor the event socket (I'm using a binary version for windows - freeswitch.msi - dated jul, 11th 2009). PS: Calling "fakecall" from a registered phone (or from portaudio) works as expected. PPS: the configuration of fakecall in dialplan/default.xml ... <context name="default"> <extension name="fakecall"> <condition field="destination_number" expression="^fakecall$"> <action application="lua" data="lua/helloworld.lua test $1"/> </condition> </extension> ....
On Mon, Aug 3, 2009 at 4:43 AM, Raffaele P. Guidi < raffaele.p.guidi@gmail.com> wrote:
I found the answer by myself while I had finished writing the e-mail. The correct call url is loopback/<extension> (in this case the command is originate loopback/fakecall 1000 ). I'm sending the e-mail anyway for future reference (can't find any example of that anywhere). Is the project wiki accesible for anyone to contribute or do I have to ask for an authorization?
All you need to do is sign up for a free account on the wiki and you can start editing. It's a community resource and all FS users are invited to add their respective knowledge. As for not finding what you were looking for, does this page not have it? http://wiki.freeswitch.org/wiki/Loopback If not then please feel free to add to this page whatever your specific scenario entails and give some examples. -MC
Yeah, it's there but, as you can see it from the google queries below it's not easy to find that page - unless you know what exactly you are looking for and search for "loopback". A simple example (i.e. in Sofia Syntax) would fill the gap (I'll be happy to do it ASAP) http://www.google.com/search?hl=en&safe=off&q=freeswitch+call+url&aq=f&oq=&a... http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+cli+&aq=f&oq=&aqi=<http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+cli+&aq=f&oq=&aqi=> http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+ex... Also, this email now shows up first in googling for "non user extension freeswitch" (which were the keywords I was looking for). I think this has been useful! ;) Many thanks and regards, Raffaele On Mon, Aug 3, 2009 at 14:59, Michael Collins <msc@freeswitch.org> wrote:
On Mon, Aug 3, 2009 at 4:43 AM, Raffaele P. Guidi < raffaele.p.guidi@gmail.com> wrote:
I found the answer by myself while I had finished writing the e-mail. The correct call url is loopback/<extension> (in this case the command is originate loopback/fakecall 1000 ). I'm sending the e-mail anyway for future reference (can't find any example of that anywhere). Is the project wiki accesible for anyone to contribute or do I have to ask for an authorization?
All you need to do is sign up for a free account on the wiki and you can start editing. It's a community resource and all FS users are invited to add their respective knowledge.
As for not finding what you were looking for, does this page not have it? http://wiki.freeswitch.org/wiki/Loopback
If not then please feel free to add to this page whatever your specific scenario entails and give some examples.
-MC
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Technically, loopback is not meant to specifically allow you to call non-user extensions, it simply allows you to hit the dialplan. For example, originate sofia/gw/gwname/fakecall 1000 (where gwname is the gateway routing your calls out, and 'fakecall' the non-user extension) will also allow you to dial to non-user extensions. This information would be on any of the wiki pages detailing the originate command. Dan On Mon, Aug 3, 2009 at 3:13 PM, Raffaele P. Guidi < raffaele.p.guidi@gmail.com> wrote:
Yeah, it's there but, as you can see it from the google queries below it's not easy to find that page - unless you know what exactly you are looking for and search for "loopback". A simple example (i.e. in Sofia Syntax) would fill the gap (I'll be happy to do it ASAP)
http://www.google.com/search?hl=en&safe=off&q=freeswitch+call+url&aq=f&oq=&a...
http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+ex... <http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+cli+&aq=f&oq=&aqi=> http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+ex...
Also, this email now shows up first in googling for "non user extension freeswitch" (which were the keywords I was looking for). I think this has been useful! ;)
Many thanks and regards, Raffaele
On Mon, Aug 3, 2009 at 14:59, Michael Collins <msc@freeswitch.org> wrote:
On Mon, Aug 3, 2009 at 4:43 AM, Raffaele P. Guidi < raffaele.p.guidi@gmail.com> wrote:
I found the answer by myself while I had finished writing the e-mail. The correct call url is loopback/<extension> (in this case the command is originate loopback/fakecall 1000 ). I'm sending the e-mail anyway for future reference (can't find any example of that anywhere). Is the project wiki accesible for anyone to contribute or do I have to ask for an authorization?
All you need to do is sign up for a free account on the wiki and you can start editing. It's a community resource and all FS users are invited to add their respective knowledge.
As for not finding what you were looking for, does this page not have it? http://wiki.freeswitch.org/wiki/Loopback
If not then please feel free to add to this page whatever your specific scenario entails and give some examples.
-MC
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
uhm... does it? freeswitch@W2GZ8VNR01> originate sofia/gateway/callwithus.com/fakecall 1001 .... API CALL [originate(sofia/gateway/callwithus.com/fakecall 1001)] output: -ERR CALL_REJECTED Anyway, I clearly understand that loopback allows to "hit the dialplan", maybe I couldn't find it before because of my poor english (but googling for "freeswitch hit the dialplan" doesn't help either). Really, I simply had problems finding it - the information was there (is it a matter of SEO - Search Engine Optimization ;)? Regards, Raffaele On Tue, Aug 4, 2009 at 00:06, Dan Le <dule.maillist@gmail.com> wrote:
Technically, loopback is not meant to specifically allow you to call non-user extensions, it simply allows you to hit the dialplan. For example,
originate sofia/gw/gwname/fakecall 1000
(where gwname is the gateway routing your calls out, and 'fakecall' the non-user extension)
will also allow you to dial to non-user extensions. This information would be on any of the wiki pages detailing the originate command.
Dan
On Mon, Aug 3, 2009 at 3:13 PM, Raffaele P. Guidi < raffaele.p.guidi@gmail.com> wrote:
Yeah, it's there but, as you can see it from the google queries below it's not easy to find that page - unless you know what exactly you are looking for and search for "loopback". A simple example (i.e. in Sofia Syntax) would fill the gap (I'll be happy to do it ASAP)
http://www.google.com/search?hl=en&safe=off&q=freeswitch+call+url&aq=f&oq=&a...
http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+ex... <http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+cli+&aq=f&oq=&aqi=> http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+ex...
Also, this email now shows up first in googling for "non user extension freeswitch" (which were the keywords I was looking for). I think this has been useful! ;)
Many thanks and regards, Raffaele
On Mon, Aug 3, 2009 at 14:59, Michael Collins <msc@freeswitch.org> wrote:
On Mon, Aug 3, 2009 at 4:43 AM, Raffaele P. Guidi < raffaele.p.guidi@gmail.com> wrote:
I found the answer by myself while I had finished writing the e-mail. The correct call url is loopback/<extension> (in this case the command is originate loopback/fakecall 1000 ). I'm sending the e-mail anyway for future reference (can't find any example of that anywhere). Is the project wiki accesible for anyone to contribute or do I have to ask for an authorization?
All you need to do is sign up for a free account on the wiki and you can start editing. It's a community resource and all FS users are invited to add their respective knowledge.
As for not finding what you were looking for, does this page not have it? http://wiki.freeswitch.org/wiki/Loopback
If not then please feel free to add to this page whatever your specific scenario entails and give some examples.
-MC
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Dan Le
-
Michael Collins
-
Raffaele P. Guidi