[Asterisk-Users] Manager cmd: originate without picking up the
fone?!
Ravi Shankar
rbalakri at netd.com
Mon Feb 13 21:49:00 MST 2006
Here is what you have to do with the call files. I think similar thing
can be done with manager API "originate" command just translate/format
into corresponding manager API option.
The .call file should appear something like this and it has to be placed
in /var/spool/asterisk/outgoing of asterisk-1,
Channel: local/3001 at sip ; Any extension can be called using
local/<extension>@<context>
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: sip
Extension: 2001
Priority: 1
In asterisk we should have the following entries in extensions.conf file,
[sip]
exten => 3001,1,MyOriginateScript()
exten => 3001,2,Hangup
2001 is the called party and as soon as he answers MyOriginateScript()
will pick up the call. Hope this helps.
regards,
Ravi
Arnd Vehling wrote:
> Hi There,
>
> we are developing a dialer application using the java lib
> to interface with the asterisk manager protocol. It works
> fine so far. The only problem we have is that if we use
> the "originate" command the user is required to pick up
> the fone _bevore_ asterisk will originate the call to
> the desired destination.
>
> What we would like to do is to place the call, check if
> the other end is available (ringing event) and only then
> let the user pickup the fone. Otherwise we would only display
> a text message "Destination 'Busy' etc.
>
> Does anyone know if/how this is possible?
>
> cheers,
>
> Arnd
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list