Bill Seddon
2005-Feb-28 10:47 UTC
[Asterisk-Users] Manager "Message: Originate failed" beinggenerated when callee does not pick up
<<I am getting "Message: Originate failed" even the 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 ________________________________ From: asterisk-users-bounces@lists.digium.com on behalf of Thomas Miller Sent: Mon 28/02/2005 17:33 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Manager "Message: Originate failed" beinggenerated when callee does not pick up I am using the Manager to originate calls. I am getting "Message: Originate failed" even the phone is ringing on the other end of the line. How can I reliably know if the phone on the other end of the line is receiving the call? Thanks, Tom ________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. <http://us.rd.yahoo.com/evt=29915/*http://info.mail.yahoo.com/mail_250> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050228/a577b294/attachment.htm
Thomas Miller
2005-Feb-28 11:33 UTC
[Asterisk-Users] Manager "Message: Originate failed" beinggenerated when callee does not pick up
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 => _1XXXXXXXXXX,1,DIAL(IAX2/username@provider/${EXTEN},10,S(0)) exten => _1XXXXXXXXXX,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 <bill.seddon@lyquidity.com> wrote:> <<I am getting "Message: Originate failed" even the > 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