ims.conf.xml 2.26 KB
<?xml version="1.0"?>
<document type="ims/xml">
	<section type="service" description="ims basic run config">
		<service type="main"    ip="127.0.0.1" port="9527"/>
		<service type="monitor" ip="127.0.0.1" port="9011"/>
		<service type="config"  ip="127.0.0.1" port="9012"/>
    </section>

    <section type="param" description="run core param">
		<param name="max-session" value="1000"/>
		<param name="bgcc-poolsize" value="500"/>
	</section>
	
	<section type="client" description="allow/deny connect to ims">
		<client type="ivr">
			<allow data="127.0.0.0/24" />
		</client>
		
		<client type="config">
			<allow data="127.0.0.0/24" />
		</client>

		<client type="acd">
			<allow data="127.0.0.0/24" />
		</client>

		<client type="monitor">
			<allow data="127.0.0.0/24" />
		</client>
	</section>
	
	<section type="gateway" description="gateway info" log="true">
		<gateway type="freeswitch" id="0" ip="127.0.0.1" port="8022" pswd="ClueCon" user="" max_conn="10" dtmf="inband"/>
	</section>

    <section type="route" description="outbound route info">
        
		<route name="route5" type="outbound">
                        <condition field="callerno " expression="^(9999)$">
                                <set disp_callerno="$1"/>
                                <set call_callerno="user/$1"/>
                                <set call_calledno="sofia/internal/${CALLED}@127.0.0.1:5060"/>
                        </condition>
        </route>

        <route name="route4" type="outbound">
                        <condition field="callerno " expression="^agt(.*)">
                                <set disp_callerno="$1"/>
                                <set call_callerno="sofia/internal/$1@127.0.0.1:5060"/>
                                <set call_calledno="sofia/internal/${CALLED}@127.0.0.1:5060"/>
                        </condition>
        </route>

        <route name="route3" type="outbound">
                        <condition field="callerno " expression="^(.*)$">
                                <set disp_callerno="$1"/>
                                <set call_callerno="sofia/internal/${DN}@127.0.0.1:5060"/>
                                <set call_calledno="sofia/internal/${CALLED}@127.0.0.1:5060"/>
                        </condition>
        </route>

	</section>
</document>