[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Asterisk .Net make a call vb code

Posted on 2011-09-30
2
Medium Priority
?
1,445 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 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
Not everyone has adapted to a rapid advancement in technology; there are people who are reluctant or afraid to delve into this brave new world of IT. If you have a friend or a family member who suffers from the so-called technophobia, here is how yo…
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…

656 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