?
Solved

Asterisk .Net make a call vb code

Posted on 2011-09-30
2
Medium Priority
?
1,465 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
2 Comments
 
LVL 25

Accepted Solution

by:
kode99 earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Transferring data across the virtual world became simpler but protecting it is becoming a real security challenge.  How to approach cyber security  in today's business world!
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
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, fr…
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…
Suggested Courses

850 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