[Freeswitch-users] Trunk Issue

William Moore bmoore at statirasystems.com
Wed Jun 22 21:35:04 MSD 2011


Some details

/opt/freeswitch/conf/sip_profiles/bluebox_sipinterfaces.xml

        <?xml version="1.0"?>
        <include>
        <profile name="sipinterface_3">
        <settings>
        <param name="enable-timer" value="false"/>
        <param name="user-agent-string" value="Configured by 2600hz!"/>
        <param name="rtp-timer-name" value="soft"/>
        <param name="codec-prefs" value="$${global_codec_prefs}"/>
        <param name="inbound-codec-negotiation" value="generous"/>
        <param name="inbound-reg-force-matching-username" value="true"/>
        <param name="nonce-ttl" value="86400"/>
        <param name="rfc2833-pt" value="101"/>
        <param name="manage-presence" value="true"/>
        <param name="auth-calls" value="false"/>
        <param name="sip-ip" value="$${local_ip_v4}"/>
        <param name="rtp-ip" value="$${local_ip_v4}"/>
        <param name="sip-port" value="5070"/>
        <param name="ext-sip-ip" value="auto-nat"/>
        <param name="ext-rtp-ip" value="auto-nat"/>
        <param name="context" value="multitenant_routing_context"/>
        <param name="apply-nat-acl" value="nat.auto"/>
        </settings>
        </profile>
        <profile name="sipinterface_1">
        <settings>
        <param name="enable-timer" value="false"/>
        <param name="user-agent-string" value="Configured by 2600hz!"/>
        <param name="rtp-timer-name" value="soft"/>
        <param name="codec-prefs" value="$${global_codec_prefs}"/>
        <param name="inbound-codec-negotiation" value="generous"/>
        <param name="inbound-reg-force-matching-username" value="true"/>
        <param name="nonce-ttl" value="86400"/>
        <param name="rfc2833-pt" value="101"/>
        <param name="manage-presence" value="true"/>
        <param name="auth-calls" value="true"/>
        <param name="sip-ip" value="$${local_ip_v4}"/>
        <param name="rtp-ip" value="$${local_ip_v4}"/>
        <param name="sip-port" value="5060"/>
        <param name="nat-options-ping" value="true"/>
        <param name="all-reg-options-ping" value="true"/>
        <param name="ext-sip-ip" value="auto-nat"/>
        <param name="ext-rtp-ip" value="auto-nat"/>
        <param name="context" value="multitenant_routing_context"/>
        <param name="apply-nat-acl" value="nat.auto"/>
        <param name="apply-inbound-acl" value="net_list_5"/>
        <param name="aggressive-nat-detection" value="true"/>
        <param name="log-auth-failures" value="true"/>
        </settings>
        <gateways/>
        </profile>
        <profile name="sipinterface_2">
        <settings>
        <param name="enable-timer" value="false"/>
        <param name="user-agent-string" value="Configured by 2600hz!"/>
        <param name="rtp-timer-name" value="soft"/>
        <param name="codec-prefs" value="$${global_codec_prefs}"/>
        <param name="inbound-codec-negotiation" value="generous"/>
        <param name="inbound-reg-force-matching-username" value="true"/>
        <param name="nonce-ttl" value="86400"/>
        <param name="rfc2833-pt" value="101"/>
        <param name="manage-presence" value="true"/>
        <param name="auth-calls" value="true"/>
        <param name="sip-ip" value="$${local_ip_v4}"/>
        <param name="rtp-ip" value="$${local_ip_v4}"/>
        <param name="sip-port" value="5080"/>
        <param name="nat-options-ping" value="true"/>
        <param name="all-reg-options-ping" value="true"/>
        <param name="ext-sip-ip" value="auto-nat"/>
        <param name="ext-rtp-ip" value="auto-nat"/>
        <param name="context" value="multitenant_routing_context"/>
        <param name="apply-inbound-acl" value="net_list_5"/>
        <param name="apply-register-acl" value="rfc1918.auto"/>
        <param name="log-auth-failures" value="true"/>
        <param name="aggressive-nat-detection" value="true"/>
        </settings>
        <aliases>
        <alias name="$${location_1}"/>
        </aliases>
        <gateways>
        <gateway name="trunk_1">
        <param name="realm" value="jnctn.net"/>
        <param name="register-proxy" value="sip.jnctn.net"/>
        <param name="outbound-proxy" value="sip.jnctn.net"/>
        <param name="username" value="mowcow"/>
        <param name="password" value="RQcLt9ypz5DqoLz2"/>
        <param name="register" value="true"/>
        </gateway>
        </gateways>
        <domains>
        <domain name="all" alias="true" parse="false"/>
        </domains>
        </profile>
        </include>


/opt/freeswitch/conf/dialplan/bluebox_dialplan.xml

        <?xml version="1.0"?>
        <include>
        <context name="context_1">
        <extension name="conditioning_callerid" continue="true">
        <condition field="${internal_caller_id_number}" expression="^.+$">
        <action application="set"
        data="effective_caller_id_name=${internal_caller_id_name}"/>
        <action application="set"
        data="effective_caller_id_number=${internal_caller_id_number}"/>
        </condition>
        </extension>
        <extension name="postroute_global" continue="true">
        <condition>
        <action application="hash"
        data="insert/${domain_name}-spymap/${caller_id_number}/${uuid}"/>
        <action application="hash"
        data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/>
        <action application="hash"
        data="insert/${domain_name}-last_dial/global/${uuid}"/>
        <action application="set" data="RFC2822_DATE=${strftime(%a, %d
        %b %Y %T %z)}"/>
        </condition>
        </extension>
        <extension name="main_number_1" continue="true">
        <condition field="destination_number" expression="^2001$">
        <action application="set" bluebox="settingEndBridge"
        data="hangup_after_bridge=true"/>
        <action application="set" bluebox="settingFail"
        data="continue_on_fail=true"/>
        <action application="set" bluebox="autoPlay"
        data="vm_auto_play=false"/>
        <action application="set" bluebox="settingTimeout"
        data="call_timeout=20"/>
        <action application="set" bluebox="settingRing"
        data="ringback=${us-ring}"/>
        <action application="set" bluebox="settingRingXfer"
        data="transfer_ringback=${us-ring}"/>
        <action application="export" bluebox="sipCalleeIdName"
        data="sip_callee_id_name=Account Admin"/>
        <action application="export" bluebox="sipCalleeIdNumber"
        data="sip_callee_id_number=2001"/>
        <action application="bridge"
        data="user/account_admin@$${location_1}"/>
        <action application="answer"/>
        <action application="voicemail" data="default voicemail_1 2001"/>
        <action application="hangup"/>
        </condition>
        </extension>
        <extension name="main_number_3" continue="true">
        <condition field="destination_number" expression="^502$">
        <action application="set" bluebox="settingEndBridge"
        data="hangup_after_bridge=true"/>
        <action application="set" bluebox="settingFail"
        data="continue_on_fail=true"/>
        <action application="set" bluebox="autoPlay"
        data="vm_auto_play=false"/>
        <action application="set" bluebox="settingTimeout"
        data="call_timeout=30"/>
        <action application="set" bluebox="settingRing"
        data="ringback=${us-ring}"/>
        <action application="set" bluebox="settingRingXfer"
        data="transfer_ringback=${us-ring}"/>
        <action application="export" bluebox="sipCalleeIdName"
        data="sip_callee_id_name=Monkey"/>
        <action application="export" bluebox="sipCalleeIdNumber"
        data="sip_callee_id_number=502"/>
        <action application="bridge" data="user/502@$${location_1}"/>
        <action application="answer"/>
        <action application="voicemail" data="default voicemail_1 2001"/>
        <action application="hangup"/>
        </condition>
        </extension>
        <extension name="main_trunk_1_pattern_1" continue="true">
        <condition field="destination_number" break="never"
        expression="^1{0,1}([2-9][0-8][0-9][2-9][0-9]{6})$"
        bluebox="pattern_1_part_1">
        <action application="set" bluebox="prepend" data="prepend="/>
        <action application="set" bluebox="cid_name"
        data="effective_caller_id_name=Statira Systems"/>
        <action application="set" bluebox="cid_number"
        data="effective_caller_id_number=7036526678"/>
        </condition>
        <condition field="${outbound_caller_id_number}"
        expression="^.+$" break="never" bluebox="caller_id">
        <action application="set"
        data="effective_caller_id_name=${outbound_caller_id_name}"/>
        <action application="set"
        data="effective_caller_id_number=${outbound_caller_id_number}"/>
        <action application="export" bluebox="caller_id_field"
        data="sip_cid_type=rpid"/>
        </condition>
        <condition field="destination_number" break="never"
        expression="^1{0,1}([2-9][0-8][0-9][2-9][0-9]{6})$"
        bluebox="pattern_1_part_1_out">
        <action application="bridge" bluebox="out_trunk_1"
        data="sofia/gateway/trunk_1/${prepend}$1"/>
        </condition>
        </extension>
        </context>
        <context name="context_2">
        <extension name="conditioning_callerid" continue="true">
        <condition field="${internal_caller_id_number}" expression="^.+$">
        <action application="set"
        data="effective_caller_id_name=${internal_caller_id_name}"/>
        <action application="set"
        data="effective_caller_id_number=${internal_caller_id_number}"/>
        </condition>
        </extension>
        <extension name="postroute_global" continue="true">
        <condition>
        <action application="hash"
        data="insert/${domain_name}-spymap/${caller_id_number}/${uuid}"/>
        <action application="hash"
        data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/>
        <action application="hash"
        data="insert/${domain_name}-last_dial/global/${uuid}"/>
        <action application="set" data="RFC2822_DATE=${strftime(%a, %d
        %b %Y %T %z)}"/>
        </condition>
        </extension>
        <extension name="main_number_3" continue="true">
        <condition field="destination_number" expression="^502$">
        <action application="set" bluebox="settingEndBridge"
        data="hangup_after_bridge=true"/>
        <action application="set" bluebox="settingFail"
        data="continue_on_fail=true"/>
        <action application="set" bluebox="autoPlay"
        data="vm_auto_play=false"/>
        <action application="set" bluebox="settingTimeout"
        data="call_timeout=30"/>
        <action application="set" bluebox="settingRing"
        data="ringback=${us-ring}"/>
        <action application="set" bluebox="settingRingXfer"
        data="transfer_ringback=${us-ring}"/>
        <action application="export" bluebox="sipCalleeIdName"
        data="sip_callee_id_name=Monkey"/>
        <action application="export" bluebox="sipCalleeIdNumber"
        data="sip_callee_id_number=502"/>
        <action application="bridge" data="user/502@$${location_1}"/>
        <action application="answer"/>
        <action application="voicemail" data="default voicemail_1 2001"/>
        <action application="hangup"/>
        </condition>
        </extension>
        <extension name="main_number_4" continue="true">
        <condition field="destination_number" expression="^17036526678$">
        <action application="set" bluebox="settingTimeout"
        data="call_timeout=30"/>
        <action application="set" bluebox="settingRing"
        data="ringback=${us-ring}"/>
        <action application="set" bluebox="settingRingXfer"
        data="transfer_ringback=${us-ring}"/>
        <action application="export" bluebox="sipCalleeIdName"
        data="sip_callee_id_name=Account Admin"/>
        <action application="export" bluebox="sipCalleeIdNumber"
        data="sip_callee_id_number=17036526678"/>
        <action application="bridge"
        data="user/account_admin@$${location_1}"/>
        <action application="hangup"/>
        </condition>
        </extension>
        <extension name="main_trunk_1_pattern_1" continue="true">
        <condition field="destination_number" break="never"
        expression="^1{0,1}([2-9][0-8][0-9][2-9][0-9]{6})$"
        bluebox="pattern_1_part_1">
        <action application="set" bluebox="prepend" data="prepend="/>
        <action application="set" bluebox="cid_name"
        data="effective_caller_id_name=Statira Systems"/>
        <action application="set" bluebox="cid_number"
        data="effective_caller_id_number=7036526678"/>
        </condition>
        <condition field="${outbound_caller_id_number}"
        expression="^.+$" break="never" bluebox="caller_id">
        <action application="set"
        data="effective_caller_id_name=${outbound_caller_id_name}"/>
        <action application="set"
        data="effective_caller_id_number=${outbound_caller_id_number}"/>
        <action application="export" bluebox="caller_id_field"
        data="sip_cid_type=rpid"/>
        </condition>
        <condition field="destination_number" break="never"
        expression="^1{0,1}([2-9][0-8][0-9][2-9][0-9]{6})$"
        bluebox="pattern_1_part_1_out">
        <action application="bridge" bluebox="out_trunk_1"
        data="sofia/gateway/trunk_1/${prepend}$1"/>
        </condition>
        </extension>
        </context>
        </include>

/opt/freeswitch/conf/dialplan/bluebox_routes.xml

        <?xml version="1.0"?>
        <include>
        <context name="multitenant_routing_context">
        <extension name="route_number_4" continue="true">
        <condition field="destination_number" expression="^17036526678$">
        <action application="set" data="vm-operator-extension=17036526678"/>
        <action application="set" data="force_transfer_context=context_2"/>
        <action application="transfer" data="17036526678 XML context_2"/>
        </condition>
        </extension>
        </context>
        </include>

William J. Moore
Owner
Statira Systems
611 Caroline St
Fredericksburg, VA 22401
540.693.0579
www.statirasystems.com


On 6/22/2011 12:34 PM, William Moore wrote:
> I can't get any incoming nor outgoing calls. The trunk is through 
> Junction Networks and registers fine. I though I had the dial plan 
> correct but there is obviously something I am missing.
>
> I am running Blue.Box GUI with FreeSwitch. It is in CentOS 5.5. I am 
> using Verizon FiOS internet and the firewall is properly configured. 
> This is a test environment so I would be happy to let someone in to 
> take a look. I have SSH setup and web access via 
> phone.statirasystems.com. Other wise it is a lot of configuration info 
> to post.
>
> I have checked with Junction Networks and everything is fine on there 
> end. My server is not responding to the requests.
>
> I am fairly green with freeswitch and would appreciate any help.
>
> Please note: I have sought assistance via the 2600hz community to no 
> avail.
>
> Thank you,
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110622/f5c7b79f/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bmoore.vcf
Type: text/x-vcard
Size: 245 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110622/f5c7b79f/attachment-0001.vcf 


More information about the FreeSWITCH-users mailing list