[Asterisk-Users] Re: Re: Code parsing error?
David L. West
nntp at deskoptional.com
Fri May 5 21:19:28 MST 2006
Re: [Asterisk-Users] Re: Code parsing error?>It looks like you didn¹t end the parenthesis for SIPPEER(). Maybe?
Yup, edited to look like this and it works w/o generating an error:
; Send to the user's vmail box by looking up the "mailbox" setting in sip.conf
exten => 1,1,Set(target=${CHANNEL:4}-)
exten => 1,n,Set(target=${CUT(target,,1)}:mailbox})
exten => 1,n,VoiceMailMain(${target})
I'm doing some tricky things in the dialplan and sip.conf so that I can have sip devices "dave" and "dave-laptop" point to the same voicemail box. Also rigging the "local" dialplan context to force calls to "dave" or "dave-laptop" to go to "dave", so that if dave-laptop calls somebody who then returns the call after dave-laptop has signed off it actually gets routed back to "dave". The idea is to abstract devices and users as separate layers rather than rely on the assumption that one user = one device.
"A.J. Paxson" <aj at thepaxson5.org> wrote in message news:C0818A1E.584%aj at thepaxson5.org...
On 5/5/06 10:45 PM, "David L. West" wisely said:
exten => 1,n,Set(target=${SIPPEER(${CUT(target,,1)}:mailbox})
Well:
Exten => 1,n,Set(target=${SIPPEER(${CUT(target,,1)}):mailbox})
It looks like you didn't end the parenthesis for SIPPEER(). Maybe?
~~Aaron
------------------------------------------------------------------------------
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060505/4df78131/attachment.htm
More information about the asterisk-users
mailing list