Solved

Asterisk .Net make a call vb code

Posted on 2011-09-30
2
1,396 Views
Last Modified: 2013-11-12
My attached code works...but...

It dials the outside number but the extension doesn't ring until the outside number called gets picked up.

Tested this with my cell number
Dim outnumber As String = 9998887777
        Dim extension As String = 1026
        Dim action As Asterisk.NET.Manager.Action.OriginateAction = New Asterisk.NET.Manager.Action.OriginateAction
        action.Exten = extension
        action.Channel = "Local/" & outnumber & "@from-internal"
        action.Context = "from-internal"

        action.Priority = 1
        action.CallerId = ""
        action.Timeout = 30000

Open in new window

0
Comment
Question by:lrbrister
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
kode99 earned 500 total points
ID: 36895101
The channel is where the call is being placed from and the extension is where it will be placed to.  

If you flip around your extension and outnumber it will do it reverse of what you have now.  Then you should have the internal extension ring first and when you pick it up the call will be dialed out to the outside number and you will hear the ringing.

I would imagine this is what you are looking for.  Originate always dials the channel first then connects it to the extension.  As you have found out it works both directions.

First time I used the AMI I had the same issue.
0
 

Author Closing Comment

by:lrbrister
ID: 36902882
Perfect.  Thanks
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
Healthcare providers, insurance companies and other covered entities trust eFax Corporate to transmit their most sensitive documents. eFax Corporate can help your organization implement a HIPAA compliant cloud faxing solution.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question