I'm not sure about 1.4 and 1.6, but this functionality is already in
trunk.  I just tested it.

[Apr 19 18:30:57] VERBOSE[9949] pbx.c:     -- Executing
[...@from-sip:1] Set("SIP/3003-00000000",
"TRANSFER_CONTEXT=transfer_context") in new stack
[Apr 19 18:30:57] VERBOSE[9949] pbx.c:     -- Executing
[...@from-sip:2] Set("SIP/3003-00000000", "_myvar=foo") in new stack
[Apr 19 18:30:57] VERBOSE[9949] pbx.c:     -- Executing
[...@from-sip:3] Dial("SIP/3003-00000000", "SIP/3002,,Tt") in new
stack
...
[Apr 19 18:31:29] VERBOSE[9952] pbx.c:     -- Executing
[3...@transfer_context:1] NoOp("SIP/3002-00000003", "foo") in new
stack
[Apr 19 18:31:29] VERBOSE[9952] pbx.c:     -- Executing
[3...@transfer_context:2] Playback("SIP/3002-00000003", "tt-monkeys")
in new stack

extensions.conf
---
exten => 559,1,Set(TRANSFER_CONTEXT=transfer_context)
same => n,Set(_myvar=foo)
same => n,Dial(SIP/3002,,Tt)

[transfer_context]
exten => _.,1,Noop(${myvar})
same => n,Playback(tt-monkeys)

Send the $200 to Digium.

-- 
Paul Belanger
Polybeacon | Consultant
Jabber: [email protected] | IRC: pabelanger (Freenode)
blog.polybeacon.com

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-biz mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-biz

Reply via email to