Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] UNALLOCATED_NUMBER handling


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
Jerry.Kendall at Fiber...
Guest





PostPosted: Fri Feb 19, 2016 2:35 pm    Post subject: [Freeswitch-users] UNALLOCATED_NUMBER handling Reply with quote

Hello all....

I'm trying to add code to the dialplan to handle the UNALLOCATED_NUMBER error.

I'm in Canada, when I call a US based 800 number I should, and now am getting UNALLOCATED_NUMBER
error from the Canadian based ITSP.
However, I want to handle it in the DialPlan. I want to tell the users, via audio file playback,
that the number is not assigned/allocated.

I have looked in lots of places and found references to transfer_on_fail and a few other ideas and
have tried many but, I just can't seem to make this work.

Not sure if this is the best way to handle this.

my 'default' dialplan has this-------------
<include>
<!--
North American Outbound call:
DID: 1NxxNxxXXXX
GW: GW-0
-->
<extension name="public_did_11234567890" continue="true">
<condition field="${caller_id_number}" expression="^11234567890$"/>
<condition field="${destination_number}" expression="^1?([2-9]\d{2}[2-9]\d{2}\d{4})$">

<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="transfer_on_fail=UNALLOCATED_NUMBER
UNALLOCATED_NUMBER xml error"/>

<action application="bridge" data="sofia/gateway/GW-0/1$1"/>

</condition>

</extension>
</include>

and I have the following in for UNALLOCATED_NUMBER extension----
<include>
<extension name="UNALLOCATED_NUMBER" continue="true">
<condition field="destination_number" expression="UNALLOCATED_NUMBER"
continue="false" break="on-true">
<action application="sleep" data="1000"/>
<action application="playback"
data="$${conf_dir}/sounds/unallocated_number.wav"/>
<action application="hangup" data="NORMAL_CLEARING"/>
</condition>
</extension>
</include>



Jerry

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
royj at yandex.ru
Guest





PostPosted: Sat Feb 20, 2016 1:28 am    Post subject: [Freeswitch-users] UNALLOCATED_NUMBER handling Reply with quote

I think it should work without that 'continue="true"' in 'extension name="public_did_11234567890"' and without 'hangup_after_bridge=true'

19.02.2016, 22:38, "Jerry Kendall" <jerry.kendall@fiberconx.com>:
Quote:
Hello all....

I'm trying to add code to the dialplan to handle the UNALLOCATED_NUMBER error.

I'm in Canada, when I call a US based 800 number I should, and now am getting UNALLOCATED_NUMBER
error from the Canadian based ITSP.
However, I want to handle it in the DialPlan. I want to tell the users, via audio file playback,
that the number is not assigned/allocated.

I have looked in lots of places and found references to transfer_on_fail and a few other ideas and
have tried many but, I just can't seem to make this work.

Not sure if this is the best way to handle this.

my 'default' dialplan has this-------------
<include>
ššššššššš<!--
šššššššššššššššššNorth American Outbound call:
šššššššššššššššššDID: 1NxxNxxXXXX
šššššššššššššššššGW: GW-0
ššššššššš-->
ššššššššš<extension name="public_did_11234567890" continue="true">
ššššššššššššššššš<condition field="${caller_id_number}" expression="^11234567890$"/>
ššššššššššššššššš<condition field="${destination_number}" expression="^1?([2-9]\d{2}[2-9]\d{2}\d{4})$">

ššššššššššššššššššššš<action application="set" data="hangup_after_bridge=true"/>
ššššššššššššššššššššš<action application="set" data="continue_on_fail=true"/>
ššššššššššššššššššššš<action application="set" data="transfer_on_fail=UNALLOCATED_NUMBER
UNALLOCATED_NUMBER xml error"/>

ššššššššššššššššššššš<action application="bridge" data="sofia/gateway/GW-0/1$1"/>

ššššššššššššššššš</condition>

ššššššššš</extension>
</include>

and I have the following in for UNALLOCATED_NUMBER extension----
<include>
ššššššššš<extension name="UNALLOCATED_NUMBER" continue="true">
ššššššššššššššššš<condition field="destination_number" expression="UNALLOCATED_NUMBER"
continue="false" break="on-true">
ššššššššššššššššššššššššš<action application="sleep" data="1000"/>
ššššššššššššššššššššššššš<action application="playback"
data="$${conf_dir}/sounds/unallocated_number.wav"/>
ššššššššššššššššššššššššš<action application="hangup" data="NORMAL_CLEARING"/>
ššššššššššššššššš</condition>
ššššššššš</extension>
</include>

Jerry

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services