Guys,<div><br></div><div>I see that Lua and Python both have a mod_xxx_conjure_session method. If I understand correctly this method is necessary for session_in_hangup_hook to work (please correct me if I'm wrong). I'd like to see mod_perl have the ability to do session_in_hangup_hook stuff. Right now when you set session_in_hangup_hook=true and run a perl script from a hook you get this error:</div>
<div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">2011-08-25 20:09:57.881203 [DEBUG] switch_ivr_originate.c:1879 Parsing global variables</font></div><div><font class="Apple-style-span" face="'courier new', monospace">2011-08-25 20:09:57.881203 [ERR] switch_core_session.c:413 Could not locate channel type e0ff8d18-cf90-11e0-a42e-474e765f4808</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><b>2011-08-25 20:09:57.881203 [NOTICE] switch_ivr_originate.c:2453 Cannot create outgoing channel of type [e0ff8d18-cf90-11e0-a42e-474e765f4808] cause: [CHAN_NOT_IMPLEMENTED]</b></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">2011-08-25 20:09:57.881203 [DEBUG] switch_ivr_originate.c:3318 Originate Resulted in Error Cause: 66 [CHAN_NOT_IMPLEMENTED]</font></div><div><font class="Apple-style-span" face="'courier new', monospace">2011-08-25 20:09:57.881203 [DEBUG] switch_core_state_machine.c:507 Hangup Command with Session perl(<a href="http://hook.pl">hook.pl</a> e0ff4b1e-cf90-11e0-a42d-474e765f4808):</font></div>
</div><div><br></div><div>Dialplan snippet for the above:</div><div><div><font class="Apple-style-span" face="'courier new', monospace"> <extension name="perl test"></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <condition field="destination_number" expression="^9902$"></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <action application="answer"/></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <action application="set" data="session_in_hangup_hook=1"/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <action application="set" data="api_hangup_hook=perl <a href="http://hook.pl">hook.pl</a> ${uuid}"/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <action application="log" data="WARNING Do the hook!"/></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <action application="hangup"/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> </condition></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> </extension></font></div></div>
<div><br></div><div>If you comment out the session_in_hangup_hook=true then the script runs just fine. (nothing interesting in the script, just dumps ${uuid} to a text file.)</div><div><br></div><div>Anyway, I'm assuming we need the conjure_session method in mod_perl.c. For those familiar with the SWIG'd languages - can you hum a few bars and let me know what's involved in enabling this method?</div>
<div><br></div><div>Thanks</div><div>MC</div>