[Asterisk-Dev] Adding a dial option to update the DB on bridge

Steve Rodgers hwstar at rodgers.sdcoxmail.com
Mon Jun 7 20:25:50 MST 2004


After analyzing the code, I figured it out: 

Action: Command
command: database put x y.

Thanks, 

The wiki has been updated with this example.

Steve.


On Monday 07 June 2004 08:36, hwstar at rodgers.sdcoxmail.com wrote:
> Looking throgh the code for manager.c and pbx.c I don't see how to access
> the subset commands.  Hints?
>
> Steve.
>
> > From: Tilghman Lesher <tilghman at mail.jeffandtilghman.com>
> > Date: 2004/06/07 Mon AM 12:37:58 EDT
> > To: asterisk-dev at lists.digium.com
> > Subject: Re: [Asterisk-Dev] Adding a dial option to update the DB on
> > bridge
> >
> > On Sunday 06 June 2004 23:12, Steve Rodgers wrote:
> > > Note to self: It turns out the manager interface will tell you when
> > > a call is picked up and what extension was picked up. All that
> > > needs to be done is to patch manager.c to support DBGet and DBput
> > > so that the caller info can be saved in a namespace outside of the
> > > channel variables. A patch has been submitted to bugs.digium.com
> > > for approval.
> >
> > Don't need to.  You can already send the commands "Database Get x y"
> > and "Database Put x y z" (via the command subset).
> >
> > --
> > Tilghman
> > _______________________________________________
> > Asterisk-Dev mailing list
> > Asterisk-Dev at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-dev
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list