Tim Connolly
2005-May-01 18:14 UTC
[Asterisk-Users] post-dial variable for whoever answered?
I'm looking for suggestions on how to use changemonitor() to modify the filename monitor() is writing to, once an extension has picked up the call. For instance, the filename is currently "accounting-${TIMESTAMP}-${CALLERIDNUM}". I'd like to do a changemonitor() to make the filename "accounting-${TIMESTAMP}-${CALLERIDNUM}-<ext>" where <ext> is the extension number of the SIP client who actually answered. Keep in mind, its dialing multiple destinations, so I don't know what number picks up beforehand. Thanks Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050501/ca86a01e/attachment.htm
Kevin P. Fleming
2005-May-01 18:44 UTC
[Asterisk-Users] post-dial variable for whoever answered?
Tim Connolly wrote:> "accounting-${TIMESTAMP}-${CALLERIDNUM}". I'd like to do a changemonitor() > to make the filename "accounting-${TIMESTAMP}-${CALLERIDNUM}-<ext>" where > <ext> is the extension number of the SIP client who actually answered. Keep > in mind, its dialing multiple destinations, so I don't know what number > picks up beforehand.From doc/README.variables: ${BRIDGEPEER} bridged peer This will contain the channel name of the channel that answered the call; it will not contain an 'extension number', as there is no such thing at point (since you could have dialed a peer that doesn't even _have_ an extension number in your dialplan).