Similar to https://issues.asterisk.org/jira/browse/ASTERISK-12817 I am seeking a way to take variables applied a SIP peer performing a blind transfer and apply them to the newly opened channel.
The variables of importance are stored using setvar for each peer inside sip.conf. Adding a _ or __ prefix to each variable doesn’t seem to provide any satisfaction. Of course, like it says in the issue tracker an attended transfer works just fine because it seems the outbound call is treated like any other call generated from that sip peer. It’s just the blind transfer that plays funny because it appears to simply toss it into my outbound context without allowing me to set any variables prior.
Running the latest stable 1.8 but am more than willing to explore 10 betas if needed. At this point the only simple fix to this appears to be stashing the needed information within a database using a predictable id to retrieve it. Then upon every outbound call check the database for the record to retrieve and set the needed variables. But really, there must be a more streamlined way to do this… right?
Any and all advice greatly appreciated. Thank you in advance