asterisk user events not detected

Jeet

We have our application that we are trying to connect to our asterisk using below code and look for AMI events such as Caller ID, Unique Id, Hangup, Answered, etc. We get successful login but there is no event that is transferred.

        callsList = new Dictionary<string, string>();
        activeAgents = new Dictionary<string, string>();
        manager = new ManagerConnection(credentials.Address, credentials.Port, credentials.UserName, credentials.Password);
        manager.NewCallerId += new NewCallerIdEventHandler(manager_NewCallerId);
        manager.Link += new LinkEventHandler(manager_Link);
        manager.Unlink += new UnlinkEventHandler(manager_Unlink);
        manager.NewState += new NewStateEventHandler(manager_NewState);
        manager.Hangup += new HangupEventHandler(manager_Hangup);
        manager.Login();

Our dial plan has following line

       exten => s,n,UserEvent(NewCallerId, ${CALLERID(num)})
       exten => s,n,UserEvent(NewState, ${CALLERID(num)})
       exten => s,n,UserEvent(Hangup, ${UNIQUEID})

The manager user we are using has all rights for read and write. Would appreciate any help.

:)

arheops

Use tcpdump or other similar utility to check what exactly send to your AMI interface.

for tcpdump line have be like this

tcpdump -i eth0 -v -s0 -nn port 5038

Note, you have enabled events in case if you need it.

http://www.voip-info.org/wiki/view/Asterisk+manager+API

http://www.voip-info.org/wiki/view/asterisk+manager+events

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Are any events generated when stylus proximity is detected?

分類Dev

asterisk - run a dial plan when a user joins a confbridge

分類Dev

Microsoft Graph: as Admin, create events in user calendar

分類Dev

Cannot get permission for user_events facebook

分類Dev

Count the occurrences of how many events user hasn't responded

分類Dev

Matching string that contains asterisk

分類Dev

What is asterisk doing here?

分類Dev

Find and replace with asterisk (*) in vim

分類Dev

Find and replace with asterisk (*) in vim

分類Dev

Asterisk - AMI Event logging

分類Dev

Get content of wildcard/asterisk

分類Dev

Asterisk SIP registration is slow

分類Dev

asterisk wildcard not working

分類Dev

In iOS 13, what events do I get when the user swipes my app up in the app switcher?

分類Dev

In iOS 13, what events do I get when the user swipes my app up in the app switcher?

分類Dev

Catch user error and re-enable application.events after error

分類Dev

In Angular 5 , How should group number of click events and emit once only when user stop clicking

分類Dev

What does the asterisk do in "Go"?

分類Dev

PHP replace all characters with asterisk

分類Dev

Add an asterisk to a label if field is required

分類Dev

How to use * (asterisk) in NuxtJs route?

分類Dev

Updateconfig Asterisk extensions.conf

分類Dev

change only the asterisk in placeholder to red

分類Dev

How to display asterisk rectangle with content?

分類Dev

Bash capturing asterisk inside a file

分類Dev

Does asterisk has default database?

分類Dev

How to build Asterisk 1.8 on Xenial?

分類Dev

Redirect loop detected Dart

分類Dev

play sound if object is detected

Related 関連記事

ホットタグ

アーカイブ