本文介绍了asterisk和vb net拨打电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正试图通过使用星号的代码拨打电话,我想拨打的号码(522)响了但是当我拿起电话时没有什么,即使在525也没有任何事情发生,应拨打电话的号码



我想念一些东西吗?



帮助将不胜感激



Nibbio



这是代码:



  Dim  myManagerConn  As   ManagerConnection()
myManagerConn.Hostname = 192.168.0.149
myManagerConn.Username = username
myManagerConn.Password = password
myManagerConn.Port = 5038
myManagerConn.Login()


Dim oc 作为 Asterisk.NET.Manager.Action.OriginateAction()
oc.Context = default
oc.Priority = 1
oc.Channel = SIP / 522
oc.CallerId = Asterisk.NET
oc.Exten = 525
oc.Timeout = 30000
oc。 Async = True



Dim r As Asterisk.NET.Manager.Response.ManagerResponse
r = myManagerConn.SendAction(oc,oc.Timeout)


myManagerConn.Logoff()

解决方案



Hi,

I'm trying to make a call from code using asterisk, the number i want to call (522) rings but when I pickup the phone there is nothing, nothing happen even on 525, number that should be making the call

do i miss something?

help would be appreciated

Nibbio

this is the code:

Dim myManagerConn As New ManagerConnection()
myManagerConn.Hostname = "192.168.0.149"
myManagerConn.Username = "username"
myManagerConn.Password = "password"
myManagerConn.Port = 5038
myManagerConn.Login()


Dim oc As New Asterisk.NET.Manager.Action.OriginateAction()
oc.Context = "default"
oc.Priority = 1
oc.Channel = "SIP/522"
oc.CallerId = "Asterisk.NET"
oc.Exten = "525"
oc.Timeout = 30000
oc.Async = True



Dim r As Asterisk.NET.Manager.Response.ManagerResponse
r = myManagerConn.SendAction(oc, oc.Timeout)


myManagerConn.Logoff()
解决方案



这篇关于asterisk和vb net拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 18:45