jezzzz .
2006-Nov-23 11:55 UTC
[asterisk-users] When does voicemail authentication take place?
I have a rather technical question here. I'm looking at the code in app/app_voicemail.c, I'm wondering when the vmauthenticate() function is called. Aside from being called by load_module() as follows: res |= ast_register_application(app4, vmauthenticate, synopsis_vmauthenticate, descrip_vmauthenticate); I can't see any other calls to it. Can someone explain to me at what point in the program vmauthenticate() is called? Thanks so much jez ____________________________________________________________________________________ Sponsored Link Rates near 39yr lows. $510,000 Loan for $1698/mo. Calcuate new payment. www.LowerMyBills.com/lre
Luki
2006-Nov-24 16:33 UTC
[asterisk-users] When does voicemail authentication take place?
> res |= ast_register_application(app4, vmauthenticate, > synopsis_vmauthenticate, descrip_vmauthenticate);You need to look more closely at the code. This snippet registers the dial plan application VMAuthenticate so vmauthenticate is called wherever you use that function in your dial plan. static char *app4 = "VMAuthenticate"; static char *synopsis_vmauthenticate "Authenticate with Voicemail passwords"; static char *descrip_vmauthenticate " VMAuthenticate([mailbox][@context][|options]): This application behaves the\n" "same way as the Authenticate application, but the passwords are taken from\n" "voicemail.conf.\n" " If the mailbox is specified, only that mailbox's password will be considered\n" "valid. If the mailbox is not specified, the channel variable AUTH_MAILBOX will\n" "be set with the authenticated mailbox.\n\n" " Options:\n" " s - Skip playing the initial prompts.\n"; --Luki