[asterisk-biz] Bounty: Transfer Channel/Context to properly Inherit Channel Variables

Paul Belanger paul.belanger at polybeacon.com
Mon Apr 19 13:36:53 CDT 2010


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
[559 at from-sip:1] Set("SIP/3003-00000000",
"TRANSFER_CONTEXT=transfer_context") in new stack
[Apr 19 18:30:57] VERBOSE[9949] pbx.c:     -- Executing
[559 at from-sip:2] Set("SIP/3003-00000000", "_myvar=foo") in new stack
[Apr 19 18:30:57] VERBOSE[9949] pbx.c:     -- Executing
[559 at from-sip:3] Dial("SIP/3003-00000000", "SIP/3002,,Tt") in new
stack
...
[Apr 19 18:31:29] VERBOSE[9952] pbx.c:     -- Executing
[3002 at transfer_context:1] NoOp("SIP/3002-00000003", "foo") in new
stack
[Apr 19 18:31:29] VERBOSE[9952] pbx.c:     -- Executing
[3002 at 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: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode)
blog.polybeacon.com



More information about the asterisk-biz mailing list