Thanks for your help. From what you said it looks like
I should not use Originate, but there is no
alternative to the "Originate" action if I just want
to make an outgoing call is there?
This is what my code is sending to the Manager API:
clientSocket.Send(Encoding.ASCII.GetBytes("Action:
Originate\r\nChannel: " + asteriskVoipChannel + "/" +
PhoneNumber + "\r\nContext: justring\r\nCallerID: " +
callerId + "\r\nExtension: justring\r\nPriority:
1\r\n\r\nAction: Logoff\r\nActionId: 1\r\n\r\n"));
Here is the extension:
[justring]
exten =>
_1XX,1,DIAL(IAX2/[EMAIL PROTECTED]/${EXTEN},10,S(0))
exten => _1XX,2,Hangup
exten => s,1,Hangup
How do I use the Manager API to place an outgoing call
and reliably get a status code indicating the the call
was placed successfully?
--- Bill Seddon <[EMAIL PROTECTED]> wrote:
> < phone is ringing on the other end of the line.>>
>
> Originate will ring your own extension first and
> when you pick up, call the other number. If you
> don't pick up your extension, you will receive the
> message you see.
>
> Bill Seddon
__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users