<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Thanks a ton, Michael. Your
clarification was key in resolving this issue. The carrier is
sending only the last three digits. I configured the dialplan as
you had mentioned in the mail mapping for the last three digits,
and I am able to successfully receive calls. I am having some
issues with the outbound calls, but I will post that in a separate
thread. <br>
<br>
Thanks again !!<br>
Ravi<br>
<br>
<br>
On 13/08/13 11:59 PM, Michael Collins wrote:<br>
</div>
<blockquote
cite="mid:CAKzWOxWFeL83ymLVhWHyRjgjSY8WDOxjOGokXNQwq0xZK_uSMg@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Aug 13, 2013 at 11:00 AM,
Ravi <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sravi123@yahoo.com" target="_blank">sravi123@yahoo.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div alink="#EE0000" bgcolor="#ffffff" link="#0000EE"
text="#000000" vlink="#551A8B"> Hello Everyone,<br>
<br>
I am trying to configure a PRI connection. When I call
from my mobile number to the PRI landline number, I get
the following log: The call has never connected, I hear
an engaged tone and it disconnects.<br>
<br>
Question 1: In the fourth line that is marked in red,
the message says Called No:[000]. The number that I
actually dialed from my mobile (7502029000) is <a
moz-do-not-send="true" href="tel:%2B914274302000"
value="+914274302000" target="_blank">+914274302000</a>.
I am not able to figure out what only three digits are
displayed. <br>
</div>
</blockquote>
<div>It looks like the carrier is only sending you the last
3 digits of the called DID.<br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div alink="#EE0000" bgcolor="#ffffff" link="#0000EE"
text="#000000" vlink="#551A8B"> <br>
Question 2: When freeswitch receives an inbound call -
in what sequence is the call processed ? What dialplans
should I be looking at?<br>
</div>
</blockquote>
<div>Once mod_freetdm figures out what the called number is
it will try to route it in whatever context is specified
in your freetdm.conf.xml file. In your case it goes to
default as you can see by this log line:<br>
<br>
2013-08-13 11:08:45.145709 [INFO] mod_dialplan_xml.c:558
Processing <7502029000>->000 in context default<br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div alink="#EE0000" bgcolor="#ffffff" link="#0000EE"
text="#000000" vlink="#551A8B"> Question 3: How do I or
where do I find the number that is being called in
freeswitch ?<br>
</div>
</blockquote>
<div>See my answer to question #2. Basically you need an
extension with a condition that matches 000, something
like:<br>
</div>
<div><condition field="destination_number"
expression="^000$><br>
<br>
</div>
<div>-MC<br>
</div>
<div> <br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div alink="#EE0000" bgcolor="#ffffff" link="#0000EE"
text="#000000" vlink="#551A8B"> <br>
<br>
Any pointers or advise on how to go about this, is much
appreciated. <br>
<br>
Thanks.<br>
Ravi<br>
<br>
<br>
2013-08-13 11:08:45.145709 [DEBUG] ftmod_wanpipe.c:1400
[s1c31][1:16] Link status is 1<br>
2013-08-13 11:08:45.145709 [INFO]
ftmod_sangoma_isdn_stack_rcv.c:96 [s1c9][1:9] Received
SETUP (suId:1 suInstId:0 spInstId:9)<br>
2013-08-13 11:08:45.145709 [DEBUG]
ftmod_sangoma_isdn_stack_hndl.c:57 [s1c9][1:9]
Processing SETUP (suId:1 suInstId:0 spInstId:9)<br>
2013-08-13 11:08:45.145709 [INFO] <b><font
color="#cc0000">ftmod_sangoma_isdn_stack_hndl.c:153
[s1c9][1:9] Incoming call: Called No:[000] Calling
No:[7502029000]</font></b><br>
2013-08-13 11:08:45.145709 [DEBUG]
ftmod_sangoma_isdn_stack_hndl.c:209 [s1c9][1:9] Changed
state from DOWN to RING<br>
2013-08-13 11:08:45.145709 [DEBUG] ftdm_state.c:541
[s1c9][1:9] Executing state processor for RING<br>
2013-08-13 11:08:45.145709 [DEBUG]
ftmod_sangoma_isdn.c:655 [s1c9][1:9] processing state
change to RING<br>
2013-08-13 11:08:45.145709 [DEBUG]
ftmod_sangoma_isdn.c:676 [s1c9][1:9] Sending incoming
call from 7502029000 to 000 to FTDM core<br>
2013-08-13 11:08:45.145709 [DEBUG]
ftmod_sangoma_isdn.c:923 [s1c9][1:9] Completed state
change from DOWN to RING in 0 ms<br>
2013-08-13 11:08:45.145709 [DEBUG] mod_freetdm.c:2657
got clear channel sig [START]<br>
2013-08-13 11:08:45.145709 [DEBUG] ftmod_wanpipe.c:749
[s1c9][1:9] Enabled DTMF events<br>
2013-08-13 11:08:45.145709 [DEBUG] mod_freetdm.c:403 Set
codec PCMA 20ms<br>
2013-08-13 11:08:45.145709 [DEBUG] mod_freetdm.c:1890
Connect inbound channel FreeTDM/1:9/000<br>
2013-08-13 11:08:45.145709 [NOTICE]
switch_channel.c:1030 New Channel FreeTDM/1:9/000
[9eb4ce34-03da-11e3-8bc5-0b625c405e53]<br>
2013-08-13 11:08:45.145709 [DEBUG] mod_freetdm.c:2093
(FreeTDM/1:9/000) State Change CS_NEW -> CS_INIT<br>
2013-08-13 11:08:45.145709 [DEBUG]
switch_core_session.c:1341 Send signal FreeTDM/1:9/000
[BREAK]<br>
2013-08-13 11:08:45.145709 [DEBUG]
switch_core_state_machine.c:416 (FreeTDM/1:9/000)
Running State Change CS_INIT<br>
2013-08-13 11:08:45.145709 [DEBUG]
switch_core_state_machine.c:455 (FreeTDM/1:9/000) State
INIT<br>
2013-08-13 11:08:45.145709 [DEBUG] mod_freetdm.c:430
(FreeTDM/1:9/000) State Change CS_INIT -> CS_ROUTING<br>
2013-08-13 11:08:45.145709 [DEBUG]
switch_core_session.c:1341 Send signal FreeTDM/1:9/000
[BREAK]<br>
2013-08-13 11:08:45.145709 [DEBUG]
switch_core_state_machine.c:455 (FreeTDM/1:9/000) State
INIT going to sleep<br>
2013-08-13 11:08:45.145709 [DEBUG]
switch_core_state_machine.c:416 (FreeTDM/1:9/000)
Running State Change CS_ROUTING<br>
2013-08-13 11:08:45.145709 [DEBUG] switch_channel.c:2116
(FreeTDM/1:9/000) Callstate Change DOWN -> RINGING<br>
2013-08-13 11:08:45.145709 [DEBUG]
switch_core_state_machine.c:471 (FreeTDM/1:9/000) State
ROUTING<br>
2013-08-13 11:08:45.145709 [DEBUG] mod_freetdm.c:453
FreeTDM/1:9/000 CHANNEL ROUTING<br>
2013-08-13 11:08:45.145709 [DEBUG] mod_freetdm.c:456
[s1c9][1:9] Indicating PROCEED in state RING<br>
2013-08-13 11:08:45.145709 [DEBUG] mod_freetdm.c:456
[s1c9][1:9] Changed state from RING to PROCEED<br>
2013-08-13 11:08:45.145709 [DEBUG] ftdm_state.c:541
[s1c9][1:9] Executing state processor for PROCEED<br>
2013-08-13 11:08:45.145709 [DEBUG]
ftmod_sangoma_isdn.c:655 [s1c9][1:9] processing state
change to PROCEED<br>
2013-08-13 11:08:45.145709 [INFO]
ftmod_sangoma_isdn_stack_out.c:175 [s1c9][1:9] Sending
PROCEED (suId:1 suInstId:9 spInstId:9 dchan:1 ces:0)<br>
2013-08-13 11:08:45.145709 [DEBUG]
ftmod_sangoma_isdn.c:923 [s1c9][1:9] Completed state
change from RING to PROCEED in 0 ms<br>
2013-08-13 11:08:45.145709 [DEBUG]
switch_core_state_machine.c:117 FreeTDM/1:9/000 Standard
ROUTING<br>
2013-08-13 11:08:45.145709 [INFO] mod_dialplan_xml.c:558
Processing <7502029000>->000 in context
default<br>
Dialplan: FreeTDM/1:9/000 parsing [default->unloop]
continue=false<br>
Dialplan: FreeTDM/1:9/000 Regex (PASS) [unloop]
${unroll_loops}(true) =~ /^true$/ break=on-false<br>
Dialplan: FreeTDM/1:9/000 Regex (FAIL) [unloop]
${sip_looped_call}() =~ /^true$/ break=on-false<br>
Dialplan: FreeTDM/1:9/000 parsing
[default->tod_example] continue=true<br>
Dialplan: FreeTDM/1:9/000 Date/Time Match (PASS)
[tod_example] break=on-false<br>
Dialplan: FreeTDM/1:9/000 Action set(open=true) <br>
Dialplan: FreeTDM/1:9/000 parsing
[default->holiday_example] continue=true<br>
Dialplan: FreeTDM/1:9/000 Date/TimeMatch (FAIL)
[holiday_example] break=on-false<br>
Dialplan: FreeTDM/1:9/000 parsing
[default->global-intercept] continue=false<br>
Dialplan: FreeTDM/1:9/000 Regex (FAIL)
[global-intercept] destination_number(000) =~ /^886$/
break=on-false<br>
Dialplan: FreeTDM/1:9/000 parsing
[default->group-intercept] continue=false<br>
<br>
<br>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication
Server<br>
<a moz-do-not-send="true" href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Michael S Collins<br>
Twitter: @mercutioviz<br>
<a moz-do-not-send="true" href="http://www.FreeSWITCH.org"
target="_blank">http://www.FreeSWITCH.org</a><br>
<a moz-do-not-send="true" href="http://www.ClueCon.com"
target="_blank">http://www.ClueCon.com</a><br>
<a moz-do-not-send="true" href="http://www.OSTAG.org"
target="_blank">http://www.OSTAG.org</a><br>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>