Hi Ben, wow - that's a quick and proficient answer - thank you for
that!
Indeed we try to let our rails process mirror the frontend users as
sip users to provide them conference calls (via ConfBridge e.g.).
I'll dig into the resources you mentioned!
--Frank
On 6 Jul., 18:57, Ben Klang <
bkl...@mojolingo.com> wrote:
> On Jul 6, 2011, at 12:50 PM, fwoeck wrote:
>
>
>
>
>
> > Hi, fromt what I read, I think it should be possible to create sip
> > users like this
>
> > [002]
> > encryption=yes
> > transport=tls
> > type=friend
> > ...
>
> > on the fly via the Asterisk Manager Interface. I connected my asterisk
> > server and see
>
> > INFO ami: Successful AMI actions-only connection into
> >
ahn_...@127.0.0.1
> > INFO ami: Successful AMI events-only connection into
ahn_...@127.0.0.1
>
> That is the Adhearsion process booting up and establishing the configured connections. You will need to create some code that sends instructions to Asterisk.
>
> The first thing you need to do is write code to tell Asterisk what to do. Specifically, you need to tell Asterisk to update its configuration with the SIP information you pasted. The AMI command you want is UpdateConfig and some docs on it can be found here:
https://wiki.asterisk.org/wiki/display/AST/ManagerAction_UpdateConfig
>
> The next question: how are you wanting to trigger such an action? I'll assume you want to use a web interface to manage these settings. If you are using Rails, I would point you to Ben Langfeld'shttps://
github.com/benlangfeld/ahn-railswhich provides helper methods for calling Adhearsion methods from Rails via DRb.
> Mojo Lingo -- Voice applications that work like magichttp://
mojolingo.com