Woof!

On Tue, 29 Sep 2009 14:44:41 -0400, Robert Joly <[email protected]> wrote:

> I have a feeling that this is not the best way to
> achieve this for a person 'skilled in the art' and is why I'm turning to
> the list.  What is the correct way of creating a Velocity template such
> the the generated output will be <action application="set"
> data="supplied_pin=${sip_h_X-ConfPin}"/>?

No way I'm "skilled in the art", but after sacrificing a chicken or two to  
the Velocity gods, (hmm, perhaps I'm "skilleted in the art?"), I ran  
across a trick sipXconfig uses every now and then:

#set($dollar = '$')

Then do

<action application="set"> data="supplied_pin=${dollar}{sip_h_X-ConfPin}"/


--Woof!
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to