hard to tell its not a complete log, is $1 not the same as what you captured with the parens?<div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 11, 2012 at 11:19 AM, Alex Crow <span dir="ltr">&lt;<a href="mailto:acrow@integrafin.co.uk" target="_blank">acrow@integrafin.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Please see the below log snippet. I am accepting faxes from an ISDN<br>
gateway on sequential numbers and attempting to route them into distinct<br>
freeswitch modems by taking the last two digits of the called number thusly:<br>
<br>
    &lt;condition field=&quot;destination_number&quot;<br>
expression=&quot;^12([1-2][0-9]|3[0-6])$&quot;&gt;<br>
         &lt;!--&lt;action application=&quot;set&quot; data=&quot;ignore_early_media=true&quot;/&gt;--&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;sip_ignore_reinvites=true&quot;/&gt;<br>
         &lt;action application=&quot;set&quot;<br>
data=&quot;absolute_codec_string=&#39;PCMA,PCMU&#39;&quot;/&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;jitterbuffer_msec=600:600:60&quot;/&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;sip_jitter_buffer_plc=false&quot;/&gt;<br>
         &lt;action application=&quot;bridge&quot; data=&quot;modem/$1/a&quot;/&gt;<br>
    &lt;/condition&gt;<br>
<br>
And then have Hylafax email them on depending on which modem they<br>
arrived on (via FaxDispatch).<br>
<br>
However as you can see from the below log snippets, it seems that FS is<br>
quite happy to change the modem device from what is actually delivered<br>
via the dialplan. Consequently a number of my faxes are now being routed<br>
to the wrong people.<br>
<br>
Is my bridge dest wrong? Should it be something like modem/$1/0 instead<br>
of &quot;a&quot;?<br>
<br>
Thanks<br>
<br>
Alex<br>
<br>
Dialplan: sofia/internal/anonymous@anonymous.invalid Action<br>
set(sip_ignore_reinvites=true)<br>
Dialplan: sofia/internal/anonymous@anonymous.invalid Action<br>
set(absolute_codec_string=&#39;PCMA,PCMU&#39;)<br>
Dialplan: sofia/internal/anonymous@anonymous.invalid Action<br>
set(jitterbuffer_msec=600:600:60)<br>
Dialplan: sofia/internal/anonymous@anonymous.invalid Action<br>
set(sip_jitter_buffer_plc=false)<br>
Dialplan: sofia/internal/anonymous@anonymous.invalid Action<br>
bridge(modem/13/a)<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_core_state_machine.c:167<br>
(sofia/internal/anonymous@anonymous.invalid) State Change CS_ROUTING -&gt;<br>
CS_EXECUTE<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_core_session.c:1283 Send<br>
signal sofia/internal/anonymous@anonymous.invalid [BREAK]<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_core_state_machine.c:470<br>
(sofia/internal/anonymous@anonymous.invalid) State ROUTING going to sleep<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_core_state_machine.c:415<br>
(sofia/internal/anonymous@anonymous.invalid) Running State Change CS_EXECUTE<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_core_state_machine.c:477<br>
(sofia/internal/anonymous@anonymous.invalid) State EXECUTE<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_sofia.c:242<br>
sofia/internal/anonymous@anonymous.invalid SOFIA EXECUTE<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_core_state_machine.c:209<br>
sofia/internal/anonymous@anonymous.invalid Standard EXECUTE<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid set(call_direction=local)<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_dptools.c:1344<br>
sofia/internal/anonymous@anonymous.invalid SET [call_direction]=[local]<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid set(open=true)<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_dptools.c:1344<br>
sofia/internal/anonymous@anonymous.invalid SET [open]=[true]<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid<br>
hash(insert/192.168.20.245-spymap/anonymous/4e5c4699-aa22-4998-b7fa-b50a52c940fb)<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid<br>
hash(insert/192.168.20.245-last_dial/anonymous/1213)<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid<br>
hash(insert/192.168.20.245-last_dial/global/4e5c4699-aa22-4998-b7fa-b50a52c940fb)<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid set(RFC2822_DATE=Tue,<br>
11 Dec 2012 14:43:18 +0000)<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_dptools.c:1344<br>
sofia/internal/anonymous@anonymous.invalid SET [RFC2822_DATE]=[Tue, 11<br>
Dec 2012 14:43:18 +0000]<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid<br>
set(sip_ignore_reinvites=true)<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_dptools.c:1344<br>
sofia/internal/anonymous@anonymous.invalid SET [sip_ignore_reinvites]=[true]<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid<br>
set(absolute_codec_string=&#39;PCMA,PCMU&#39;)<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_dptools.c:1344<br>
sofia/internal/anonymous@anonymous.invalid SET<br>
[absolute_codec_string]=[&#39;PCMA,PCMU&#39;]<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid<br>
set(jitterbuffer_msec=600:600:60)<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_dptools.c:1344<br>
sofia/internal/anonymous@anonymous.invalid SET<br>
[jitterbuffer_msec]=[600:600:60]<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid<br>
set(sip_jitter_buffer_plc=false)<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_dptools.c:1344<br>
sofia/internal/anonymous@anonymous.invalid SET<br>
[sip_jitter_buffer_plc]=[false]<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid bridge(modem/13/a)<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_channel.c:1089<br>
sofia/internal/anonymous@anonymous.invalid EXPORTING[export_vars]<br>
[domain_name]=[192.168.20.245] to event<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_ivr_originate.c:2022 Parsing<br>
global variables<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_spandsp_modem.c:1417 Modem<br>
/dev/FS/FS10 [ONHOOK] - Changing state to ACQUIRED<br>
2012-12-11 14:43:18.873181 [NOTICE] switch_channel.c:968 New Channel<br>
modem/10/a [a202aef1-1628-45e8-b720-9f5368aa4565]<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_spandsp_modem.c:769 modem/10/a<br>
setup codec L16/8000/20<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_channel.c:1135 EXPORT<br>
(export_vars) [rtp_autoflush_during_bridge]=[false]<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_spandsp_modem.c:896 (modem/10/a)<br>
State Change CS_NEW -&gt; CS_INIT<br>
2012-12-11 14:43:18.873181 [DEBUG] switch_core_session.c:1283 Send<br>
signal modem/10/a [BREAK]<br>
2012-12-11 14:43:18.873181 [DEBUG] mod_spandsp_modem.c:581 modem/10/a<br>
CHANNEL KILL<br>
2012-12-11 14:43:18.893118 [DEBUG] switch_core_state_machine.c:415<br>
(modem/10/a) Running State Change CS_INIT<br>
2012-12-11 14:43:18.893118 [DEBUG] switch_core_state_machine.c:454<br>
(modem/10/a) State INIT<br>
2012-12-11 14:43:18.893118 [DEBUG] mod_spandsp_modem.c:461 Modem<br>
/dev/FS/FS10 [ACQUIRED] - Changing state to RINGING<br>
2012-12-11 14:43:18.893118 [DEBUG] mod_spandsp_modem.c:1131 Modem<br>
/dev/FS/FS10 [RINGING] - RNG 1<br>
<br>
<br>
And another one:<br>
<br>
<br>
EXECUTE sofia/internal/anonymous@anonymous.invalid bridge(modem/23/a)<br>
2012-12-11 13:42:20.813107 [DEBUG] switch_channel.c:1089<br>
sofia/internal/anonymous@anonymous.invalid EXPORTING[export_vars]<br>
[domain_name]=[192.168.20.245] to event<br>
2012-12-11 13:42:20.813107 [DEBUG] switch_ivr_originate.c:2022 Parsing<br>
global variables<br>
2012-12-11 13:42:20.813107 [DEBUG] mod_spandsp_modem.c:1417 Modem<br>
/dev/FS/FS26 [ONHOOK] - Changing state to ACQUIRED<br>
2012-12-11 13:42:20.813107 [NOTICE] switch_channel.c:968 New Channel<br>
modem/26/a [32872ae9-6f78-45b0-af56-4b18c9de7160]<br>
2012-12-11 13:42:20.813107 [DEBUG] mod_spandsp_modem.c:769 modem/26/a<br>
setup codec L16/8000/20<br>
2012-12-11 13:42:20.813107 [DEBUG] switch_channel.c:1135 EXPORT<br>
(export_vars) [rtp_autoflush_during_bridge]=[false]<br>
2012-12-11 13:42:20.813107 [DEBUG] mod_spandsp_modem.c:896 (modem/26/a)<br>
State Change CS_NEW -&gt; CS_INIT<br>
2012-12-11 13:42:20.813107 [DEBUG] switch_core_session.c:1283 Send<br>
signal modem/26/a [BREAK]<br>
2012-12-11 13:42:20.813107 [DEBUG] mod_spandsp_modem.c:581 modem/26/a<br>
CHANNEL KILL<br>
2012-12-11 13:42:20.813107 [DEBUG] switch_core_state_machine.c:415<br>
(modem/26/a) Running State Change CS_INIT<br>
2012-12-11 13:42:20.813107 [DEBUG] switch_core_state_machine.c:454<br>
(modem/26/a) State INIT<br>
2012-12-11 13:42:20.813107 [DEBUG] mod_spandsp_modem.c:461 Modem<br>
/dev/FS/FS26 [ACQUIRED] - Changing state to RINGING<br>
2012-12-11 13:42:20.813107 [DEBUG] mod_spandsp_modem.c:1131 Modem<br>
/dev/FS/FS26 [RINGING] - RNG 1<br>
2012-12-11 13:42:20.833137 [DEBUG] mod_spandsp_modem.c:1038 Modem<br>
/dev/FS/FS26 [RINGING] - Answering<br>
2012-12-11 13:42:20.833137 [DEBUG] mod_spandsp_modem.c:1040 Modem<br>
/dev/FS/FS26 [RINGING] - Changing state to ANSWERED<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>