Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] How to call a non-user extension from "originate" [SOLVED]


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
raffaele.p.guidi at gm...
Guest





PostPosted: Mon Aug 03, 2009 6:54 am    Post subject: [Freeswitch-users] How to call a non-user extension from &qu Reply with quote

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 


Quote:
originate user/1001 1000


works perfectly


with:


Quote:
originate user/fakecall 1000


I have an error:


Quote:
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>
....
Back to top
msc at freeswitch.org
Guest





PostPosted: Mon Aug 03, 2009 8:06 am    Post subject: [Freeswitch-users] How to call a non-user extension from &qu Reply with quote

On Mon, Aug 3, 2009 at 4:43 AM, Raffaele P. Guidi <raffaele.p.guidi@gmail.com (raffaele.p.guidi@gmail.com)> wrote:
Quote:
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
Back to top
raffaele.p.guidi at gm...
Guest





PostPosted: Mon Aug 03, 2009 2:48 pm    Post subject: [Freeswitch-users] How to call a non-user extension from &qu Reply with quote

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=&aqi=


http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+cli+&aq=f&oq=&aqi= [/url][url=http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+esl&aq=f&oq=&aqi=]http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+esl&aq=f&oq=&aqi=


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! Wink


Many thanks and regards,
   Raffaele

On Mon, Aug 3, 2009 at 14:59, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
Quote:


On Mon, Aug 3, 2009 at 4:43 AM, Raffaele P. Guidi <raffaele.p.guidi@gmail.com (raffaele.p.guidi@gmail.com)> wrote:
Quote:
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 (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

Back to top
dule.maillist at gmail...
Guest





PostPosted: Mon Aug 03, 2009 5:11 pm    Post subject: [Freeswitch-users] How to call a non-user extension from &qu Reply with quote

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 (raffaele.p.guidi@gmail.com)> wrote:
Quote:
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=&aqi=


http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+cli+&aq=f&oq=&aqi= [/url][url=http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+esl&aq=f&oq=&aqi=]http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+esl&aq=f&oq=&aqi=


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! Wink


Many thanks and regards,
   Raffaele


On Mon, Aug 3, 2009 at 14:59, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:


Quote:



On Mon, Aug 3, 2009 at 4:43 AM, Raffaele P. Guidi <raffaele.p.guidi@gmail.com (raffaele.p.guidi@gmail.com)> wrote:
Quote:
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 (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 (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

Back to top
raffaele.p.guidi at gm...
Guest





PostPosted: Mon Aug 03, 2009 5:49 pm    Post subject: [Freeswitch-users] How to call a non-user extension from &qu Reply with quote

uhm... does it?


Quote:
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 Wink?


Regards,
    Raffaele

On Tue, Aug 4, 2009 at 00:06, Dan Le <dule.maillist@gmail.com (dule.maillist@gmail.com)> wrote:
Quote:
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 (raffaele.p.guidi@gmail.com)> wrote:
Quote:
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=&aqi=


http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+cli+&aq=f&oq=&aqi= [/url][url=http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+esl&aq=f&oq=&aqi=]http://www.google.com/search?hl=en&safe=off&q=freeswitch+execute+non+user+extension+from+the+esl&aq=f&oq=&aqi=


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! Wink


Many thanks and regards,
   Raffaele


On Mon, Aug 3, 2009 at 14:59, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:


Quote:



On Mon, Aug 3, 2009 at 4:43 AM, Raffaele P. Guidi <raffaele.p.guidi@gmail.com (raffaele.p.guidi@gmail.com)> wrote:
Quote:
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 (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 (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 (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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services