[asterisk-users] Accessing a 'user' variable via. dialplan.
Andrew Thomas
andy at datavox.co.uk
Thu Jan 20 10:25:46 CST 2011
Hi,
I know you can access various sip variables via
'Set(sstatus=${SIPPEER(201,status)})' (for example) to get the status of
the sip user - but what about variables?
I have a user that has setvar=123456 in their users.conf (sip.conf if
you prefer). I can read it with a 'sip show peer 201' - but that gives
everything and parsing that isn't really an option.
Anyone know how to access 'variables' (and maybe the contents) directly?
Thanks
If you have received this communication in error we would appreciate
you advising us either by telephone or return of e-mail. The contents
of this message, and any attachments, are the property of DataVox,
and are intended for the confidential use of the named recipient only.
If you are not the intended recipient, employee or agent responsible
for delivery of this message to the intended recipient, take note that
any dissemination, distribution or copying of this communication and
its attachments is strictly prohibited, and may be subject to civil or
criminal action for which you may be liable.
Every effort has been made to ensure that this e-mail or any attachments
are free from viruses. While the company has taken every reasonable
precaution to minimise this risk, neither company, nor the sender can
accept liability for any damage which you sustain as a result of viruses.
It is recommended that you should carry out your own virus checks
before opening any attachments.
Registered in England. No. 27459085.
More information about the asterisk-users
mailing list