<div dir="ltr"><div style><font face="arial, helvetica, sans-serif">Hello everyone,</font></div><div style><font face="arial, helvetica, sans-serif"><br></font></div><div style><font face="arial, helvetica, sans-serif">When a call leaves mod_fifo (and it gets bridged) if I do a <i>fifo list <myqueue></i>, I get:</font></div>
<div style><font face="courier new, monospace"><br></font></div><div style><font face="courier new, monospace"><div><bridges></div><div> <bridge fifo_name="emergency" bridge_start="2013-06-12 07:45:03" bridge_start_epoch="1371023103"></div>
<div> <caller uuid="a16767af-e252-43b5-ad33-cbd38a42bc64" caller_id_name=<b>"Outbound%20Call"</b> caller_id_number=<b>"XML"</b>></caller></div><div> <consumer></div>
<div> <uuid>4b84ab5e-f2a2-4d87-8295-7726663abeed</uuid></div><div> <outgoing_uuid>0b9fa586387efe4014e010bada4da9cc</outgoing_uuid></div><div> </consumer></div><div> </bridge></div>
<div></bridges></div></font></div><div style><font face="courier new, monospace"><br></font></div><div style><font face="arial, helvetica, sans-serif">However I need to get the <i>caller_id_name</i> and the <i>caller_id_number</i> of the entity that initiated the call and not "<b>Outbound Call</b>" or <b>"XML"</b>.</font></div>
<div style><font face="arial, helvetica, sans-serif"><br></font></div><div style><font face="arial, helvetica, sans-serif">I read in a thread that I should set <i>origination_callee_id_name</i> and <i>origination_callee_num</i> but how do I do that?</font></div>
<div style><font face="arial, helvetica, sans-serif"><br></font></div><div style><font face="arial, helvetica, sans-serif">I tried to set a variable in my dialplan and use it in <i>fifo.conf.xml </i>but I get the following error:</font></div>
<div style><font face="arial, helvetica, sans-serif"><br></font></div><div style><font face="arial, helvetica, sans-serif"><i>[CRIT] switch_channel.c:1364 Invalid data (${origination_callee_id_name} contains a variable)</i><br>
</font></div><div style><font face="arial, helvetica, sans-serif"><br></font></div><div style><font face="arial, helvetica, sans-serif"><br></font></div><div style><span style="font-family:arial,helvetica,sans-serif">Here's my <u>original</u> </span><span style="font-family:arial,helvetica,sans-serif">fifo.conf.xml:</span><br>
</div><div style><font face="arial, helvetica, sans-serif"><br></font></div><div style><font face="arial, helvetica, sans-serif"><div><span style="font-family:'courier new',monospace"><fifos></span><br></div>
</font></div><div style><font face="courier new, monospace"><div> <fifo name="emergency" importance="0"></div><div> <member timeout="60" simo="1" lag="0">{member_wait=nowait}loopback/dequeue_emergency/default/XML</member></div>
<div> </fifo></div><div></fifos></div></font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"><br></font></div><div><span style="font-family:arial,helvetica,sans-serif">Here's part of my <u>original</u> dialplan:</span><font face="courier new, monospace"><br>
</font></div><div><b style="font-family:arial,helvetica,sans-serif"><br></b></div><div><font face="courier new, monospace"><extension name="queue_emergency"></font></div><div><span style="font-family:'courier new',monospace"> <action application="set" data="fifo_music=$${hold_ringing}"/></span><br>
</div><div><font face="courier new, monospace"> <action application="set" data="fifo_orbit_exten=timeout_emergency:$${emergency_queue_timeout}"/></font></div><div><font face="courier new, monospace"> <action application="answer"/></font></div>
<div><font face="courier new, monospace"> <action application="fifo" data="emergency in"/></font></div><div><span style="font-family:'courier new',monospace"></extension></span><br>
</div><div><span style="font-family:'courier new',monospace"><br></span></div><div style><br></div><div style><br></div><div><span style="font-family:arial,helvetica,sans-serif">Here's my <u>modified</u> </span><span style="font-family:arial,helvetica,sans-serif">fifo.conf.xml:</span><br>
</div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-family:'courier new',monospace"><fifos></span><br></font></div><div><font face="courier new, monospace"><div>
<fifo name="emergency" importance="0"></div><div> <member timeout="60" simo="1" lag="0">{member_wait=nowait,origination_callee_id_name=${some_var_set in_the_dialplan}}loopback/dequeue_emergency/default/XML</member></div>
<div> </fifo></div><div></fifos></div></font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"><br></font></div><div style>If I set to a fixed value instead of a variable, it works fine. But that's useless to me.</div>
<div style><br></div><div style>Any help would be greatly appreciated.</div><div style><br></div><div style>Regards,</div><div style><br></div><div style>Thierry Panthier</div></div>