David L. West
2006-May-05  08:07 UTC
[Asterisk-Users] Access to sip.conf username field from dialplan
I have two SIP clients defined in sip.conf, as follows:
    [dave]
    username=dave
    type=friend
    secret=dave
    host=dynamic
    context=local
    accountcode=deskoptional
    [dave-laptop]
    username=dave
    type=friend
    secret=dave
    host=dynamic
    context=local
    accountcode=deskoptional
I want to refer to the username field in extensions.conf, but cannot find a
function to do it.  I know Asterisk can see this value, because both "SIP
SHOW PEER dave" and "SIP SHOW PEER dave-laptop" display the
desired value under "Def. Username".
PS: I am new to Asterisk and this newsgroup, so a cc to my email address (nntp
at deskoptional.com) would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060505/8b278fa8/attachment.htm