On Thu, Aug 23, 2012 at 11:36 PM, Tim Bock <span dir="ltr"><<a href="mailto:jtbock@synacktics.com" target="_blank">jtbock@synacktics.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hello,<br>
<br>
I'm rather new with FreeSWITCH, migrating over from an asterisk setup.<br>
<br>
I have a Digium TDM card, with 3 fxo ports and 1 fxs port. I have<br>
everything mostly working, but I'm having an issue with incoming fxo<br>
calls. I've found examples where people have used destination_number in<br>
their condition, but this doesn't seem to work for me. I can<br>
successfully use<br>
> <condition field="${channel_name}" expression="^(FreeTDM/2:3/)"><br>
<br>
but not<br>
<br>
> <condition field="destination_number" expression="(7832889)$"/><br>
The issue seems to be that destination_number is set to 2 early on, somehow:<br>
> 012-08-23 20:40:43.213780 [DEBUG] ftmod_analog.c:646 [s2c3][1:3]<br>
> Executing stat<br>
> e handler on 2:3 for RING<br>
> 2012-08-23 20:40:43.213780 [DEBUG] mod_freetdm.c:1992 got FXO sig 2:3<br>
> [START]<br>
> 2012-08-23 20:40:43.213780 [DEBUG] ftdm_io.c:3131 [s2c3][1:3] Enabled<br>
> software D<br>
> TMF detector<br>
> 2012-08-23 20:40:43.213780 [DEBUG] mod_freetdm.c:407 Set codec PCMU 20ms<br>
> 2012-08-23 20:40:43.213780 [DEBUG] mod_freetdm.c:1740 Connect inbound<br>
> channel Fr<br>
> eeTDM/2:3/2<br>
so that later:<br>
> Dialplan: FreeTDM/2:3/2 Regex (FAIL) [fxo_incoming]<br>
> destination_number(2) =~ /(78328<br>
> 89)$/ break=on-false<br>
Any ideas on what I am doing wrong? I can make it work using the<br>
channel_name variable, but using destination_number would be much more<br>
convenient.<br>
<br>
</blockquote><div><br>The problem is that fxo lines do not receive a destination number, they just "ring". You can set a fixed destination number though, just use the "number => " configuration in freetdm.conf<br>
<br>ie<br><br>[span zt myspan]<br>number => 1234<br>fxo-channel => 1<br><br><br clear="all"><table style="width:486.3pt;border-collapse:collapse" border="0" cellpadding="0" cellspacing="0" width="648"><tbody><tr style="height:60.55pt">
<td style="border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;height:60.55pt">
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><b><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)" lang="PT-BR">Moises Silva<br>
</span></b><b><i><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="EN-CA">Manager, Software Engineering</span></i></b><b><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)" lang="PT-BR"></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA"><a href="mailto:msilva@sangoma.com" target="_blank">msilva@sangoma.com</a></span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA">Sangoma Technologies</span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA">100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada</span><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(255,192,0)" lang="EN-CA"></span></p>
</td><td style="width:140.45pt;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;height:60.55pt" width="187">
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA"><br>t. +1 800 388 2475 (N. America)</span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA">t. +1 905 474 1990 x128</span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)" lang="EN-CA">f. +1 905 474 9223</span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(31,73,125)" lang="EN-CA"> </span></p></td><td rowspan="2" style="width:111.55pt;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:dotted;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;border-right-style:none;border-right-width:initial;border-right-color:initial;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;height:60.55pt" width="149">
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><a href="http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures" target="_blank"><b><span style="color:rgb(31,73,125);text-decoration:none"><img src="https://mail.google.com/mail/u/0/?ui=2&view=bsp&ver=ohhl4rw8mbn4" height="15" border="0" width="96"></span></b></a><span style="color:rgb(31,73,125)"></span></p>
</td></tr><tr><td colspan="2" style="width:374.75pt;border-top-style:none;border-right-style:none;border-left-style:none;border-width:initial;border-color:initial;border-bottom-style:dotted;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt" width="500">
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><a href="http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Products</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Solutions</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Events</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Contact</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Wiki</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Facebook</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR"> | </span><a href="http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">Twitter</span></a><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">`| | </span><a href="http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)" lang="PT-BR">YouTube</span></a><span style="font-size:8pt;line-height:12px;color:rgb(31,73,125)"></span></p>
</td></tr></tbody></table><br></div></div>