[Freeswitch-users] How to call a non-user extension from "originate" [SOLVED]
Raffaele P. Guidi
raffaele.p.guidi at gmail.com
Mon Aug 3 04:43:01 PDT 2009
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>
....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090803/cb04cae0/attachment-0002.html
More information about the FreeSWITCH-users
mailing list