AMI / PAMI Use


(France) #1

Hello,

Does anybody use / know how to use PAMI or something similar?

I looking for a way to send to my ERP the event of a phone conversation when it finishes in real time.
Today, I just forward a D+1 recap but it is not good enough.

Thanks !!


(Dave Burgess) #2

This is one of the features of the SangomaCRM module, but as I recall, you decided that wasn’t going to work for you.

Short of custom AMI code, I can’t think of any other ways.


(France) #3

Ok, thanks Dave.

Custom code it will be then…


(Dave Burgess) #4

http://asteriskdocs.org/en/2nd_Edition/asterisk-book-html-chunk/asterisk-CHP-9-SECT-2.html
is the definitive guide for writing AGI scripts. It explains the asynch nature of AMI and how to use it to do a lot of stuff.

https://github.com/Motiejus/Asterisk-perl-AMI is a PERL implementation of an interface to AMI that I’ve used in the past. There are plenty of others - I recommend you grab two or three and look at how they approach the interface.