?
Solved

Asterisk .Net make a call vb code

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

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

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

There are no good configuration guides for HP-H3C router to LYNC on the web. :( Big statement, but we havent been able to find one yet. We did find the following document useful, but the information was not enough to use H3C router for use as a L…
What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
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…

765 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