<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EL link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>I wand to achieve to incoming calls from did numbers to an extension<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>So this is what I have with no success.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>In the default.xml<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> <extension name="test_did"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <condition field="destination_number" expression="^(2281118003)$"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <action application="set" data="dialed_ext=$1"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </condition><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <condition field="destination_number" expression="^${caller_id_number}$"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <action application="set" data="voicemail_authorized=${sip_authorized}"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <action application="answer"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <action application="sleep" data="1000"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <action application="voicemail" data="check default $${domain} ${dialed_ext}"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <anti-action application="ring_ready"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <anti-action application="set" data="call_timeout=10"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <anti-action application="set" data="hangup_after_bridge=true"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <anti-action application="set" data="continue_on_fail=true"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <anti-action application="bridge" data="user/1002@$${domain}"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <anti-action application="answer"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <anti-action application="sleep" data="1002"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <anti-action application="voicemail" data="default $${domain} ${dialed_ext}"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </condition><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </extension><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>In the public.xml<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><extension name="test_did"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <condition field="destination_number" expression="^(2281118003)$"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <action application="transfer" data="1002 XML default"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </condition><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </extension><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>And last I created a test.did.xml <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>In freeswitch/conf/directory/default<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>With the following <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <include><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <user id="test_did"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <params><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <param name="password" value="$${default_password}"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <param name="vm-password" value="test_did"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </params><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <variables><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <variable name="toll_allow" value="domestic,international,local"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <variable name="accountcode" value="test_did"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <variable name="user_context" value="default"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <variable name="effective_caller_id_name" value="Extension test_did"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <variable name="effective_caller_id_number" value="2281118003"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <variable name="callgroup" value="techsupport"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </variables><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </user><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US></include><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> My log is the following <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2013-12-20 12:12:56.376409 [NOTICE] switch_channel.c:968 New Channel sofia/internal/302281081619@109.68.164.21 [f80ee77e-6999-11e3-8083-11b99fb2bf0d]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2013-12-20 12:13:06.436421 [WARNING] switch_core_state_machine.c:514 f80ee77e-6999-11e3-8083-11b99fb2bf0d sofia/internal/302281081619@109.68.164.21 Abandoned<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2013-12-20 12:13:06.436421 [NOTICE] switch_core_state_machine.c:517 Hangup sofia/internal/302281081619@109.68.164.21 [CS_NEW] [WRONG_CALL_STATE]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2013-12-20 12:13:06.436421 [NOTICE] switch_core_session.c:1506 Session 9 (sofia/internal/302281081619@109.68.164.21) Ended<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2013-12-20 12:13:06.436421 [NOTICE] switch_core_session.c:1510 Close Channel sofia/internal/302281081619@109.68.164.21 [CS_DESTROY]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I was excepting a ring to my extension 1002 normally when someone calls the did number.. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The did number should be mapped normally to the gateway account .. and not to my freeswitch server with extension 1002…. I am little confused here.. but I have left it normal setup for did number.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Best regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>