[Freeswitch-users] Possible problem in adding channel variables to the bridge

Anthony Minessale anthony.minessale at gmail.com
Thu Sep 25 12:58:10 EDT 2008


can i see the entire extension?
The reference to XML as scripts is what is hard to understand?
What exactly are you setting in execute_on_answer?


On Thu, Sep 25, 2008 at 11:48 AM, Jon Bruel <jbr at consiglia.dk> wrote:

>  Anthony, I think I understand this part of it, but I'll try to stay
> humble.
>
> This is what I want: I want to have several destinations in my dialstring,
> and I want to pass different variables on to the script which runs after
> answer.
>
> I also wanted to control the A-number caller ID, and that works as it
> should, by placing [originate_caller_id_number=XXXX] in front of the
> destination. So let's forget about that.
>
> I have tried:
>
> <action application="bridge"
> data="[NEWVARIABLE=AAABBBCCC]user/${custid}${dialed_ext}@
> ${caller_domain}"/>
>
> In order to pass the variable NEWVARIABLE on to the ONANSWER script.
>
> I have let the ONANSWER XML script make an "execute_extension call" to
> another XML script. For the sake of clarity, lets call it the INFO script.
> In the INFO script I check if variable in the dial string has been given a
> value. The ONANSWER script is fired off two times: when the a-leg answers
> and when the b-leg answers. Apparently that's the way "execute_on_answer"
> works, when its set using the export facility.
>
> When it is the a-leg which fires off the ONANSWER script, the NEWVARIABLE
> exists in the following INFO script fired off by the b-leg-answer event. But
> if the b-leg which fires off the ONANSWER script first, the variable has no
> value in INFO script. In some tests, I get a populated variable in 3 out of
> 10 calls.
>
> Hope this clarified the issue, if not, I may call you on the phone. /Jon
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080925/c9b234ba/attachment.html 


More information about the Freeswitch-users mailing list