[Asterisk-Dev] IAX2 call variable passing between servers
Dave Weis
djweis at sjdjweis.com
Wed Dec 3 13:00:05 MST 2003
On Wed, 3 Dec 2003, Linus Surguy wrote:
> > > Two new applications are created to 'Set' these new variables, and
> 'Read'
> > > these new variables.
> >
> > Don't forget 'Delete' as sometimes you might want to strip something
> > out of the call state before handing off the call.
> I knew after I posted I should have mentioned it in the posting! I was
> thinking that:
> To Set:
> SetCallVar(BEARERCODE=${DATATYPE}) /* set callvar BEARERCODE to the *
> variable DATATYPE */
> To Read:
> GetCallVar(BEARERCODE,DATATYPE) /* read callvar BEARERCODE into the *
> variable DATATYPE */
> To Delete:
> SetCallVar(BEARERCODE=) /* unset and delete callvar BEARERCODE */
Is there a difference between a non-existant variable and a zero-length
variable?
--
Dave Weis "I believe there are more instances of the abridgment
djweis at sjdjweis.com of the freedom of the people by gradual and silent
encroachments of those in power than by violent
and sudden usurpations."- James Madison
More information about the asterisk-dev
mailing list