Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch-contrib
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch-contrib
Commits
9caeb1ce
提交
9caeb1ce
authored
12月 11, 2012
作者:
Christopher Rienzo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added SIPp scenario and some documentation
上级
c1a3bce0
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
127845 行增加
和
4 行删除
+127845
-4
README
crienzo/mod_simple_lcr/README
+29
-0
simple_lcr.conf.xml
.../mod_simple_lcr/conf/autoload_configs/simple_lcr.conf.xml
+10
-4
callerid
crienzo/mod_simple_lcr/sipp/callerid
+433
-0
genload.xml
crienzo/mod_simple_lcr/sipp/genload.xml
+64
-0
numbers
crienzo/mod_simple_lcr/sipp/numbers
+127309
-0
没有找到文件。
crienzo/mod_simple_lcr/README
0 → 100644
浏览文件 @
9caeb1ce
mod_simple_lcr
Simple in-memory LCR 300/302 redirect server. No MySQL/PostgreSQL required!
I use this module to perform LCR across 6 or so carriers. Ratedecks are either flat rate or intra/interstate rated. Some carriers
treat toll-free caller ID as interstate calling while others do not, so this module handles either scenario.
This module probably isn't too useful if you are a telco, but for a predictive dialer / call center, it works fine.
Features:
Hot reload of ratedecks without call interruption
Small memory footprint
Lookups only limited by mod_sofia performance
Performance:
4 CPU VM w/ 4 GB memory
300 CPS @ 75% CPU utilization
120 MB memory
dialplan routing < 100 nanoseconds
call processing < 500 milliseconds
Notes:
This performs best with FreeSWITCH from stable branch: version 94664868a8f5bb84b0873e87a5130e39163ccf2d
I noticed some performance degradation with newer stable/master builds of FreeSWITCH
Testing:
SIPp load testing scenario is located in sipp
route_trie test tool is located in test
crienzo/mod_simple_lcr/conf/autoload_configs/simple_lcr.conf.xml
浏览文件 @
9caeb1ce
<!-- configuration for simple 300/302 LCR redirect server -->
<!-- Use "simple_lcr_redirect" as the dialplan in your sip profile -->
<configuration
name=
"simple_lcr.conf"
description=
"fast and simple in-memory LCR"
>
<settings>
<!-- number of routes to reply with on queries -->
...
...
@@ -11,11 +13,15 @@
<param
name=
"areas-dest-prefix"
value=
""
/>
</settings>
<!-- routes -->
<carrier
name=
"A"
ratedeck=
"$${base_dir}/conf/ratedecks/ratedeck1.csv"
>
<gateway
prefix=
"sip:"
suffix=
"@127.0.0.1"
/>
<!-- treats US toll-free as interstate -->
<carrier
name=
"A"
ratedeck=
"$${base_dir}/conf/ratedecks/ratedeck1.csv"
interAreas=
"800,855,866,877,888"
>
<gateway
prefix=
"sip:1"
suffix=
"@127.0.0.1"
/>
<gateway
prefix=
"sip:1"
suffix=
"@127.0.0.2"
/>
<gateway
prefix=
"sip:1"
suffix=
"@127.0.0.3"
/>
</carrier>
<!-- treats US toll-free as intrastate -->
<carrier
name=
"B"
ratedeck=
"$${base_dir}/conf/ratedecks/ratedeck2.csv"
>
<gateway
prefix=
"sip:
"
suffix=
"@127.0.0.2
"
/>
<gateway
prefix=
"sip:
99012"
suffix=
"@127.0.1.1
"
/>
</carrier>
</configuration>
crienzo/mod_simple_lcr/sipp/callerid
0 → 100644
浏览文件 @
9caeb1ce
RANDOM
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8000000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8880000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8770000000
8660000000
8660000000
8660000000
8660000000
8660000000
8660000000
8660000000
8660000000
8660000000
8660000000
8660000000
8550000000
8550000000
8550000000
8550000000
8550000000
8550000000
2010000000
2020000000
2030000000
2050000000
2060000000
2070000000
2080000000
2090000000
2100000000
2120000000
2130000000
2140000000
2150000000
2160000000
2170000000
2180000000
2190000000
2240000000
2250000000
2280000000
2290000000
2310000000
2340000000
2390000000
2400000000
2480000000
2510000000
2520000000
2530000000
2540000000
2560000000
2600000000
2620000000
2670000000
2690000000
2700000000
2760000000
2810000000
2890000000
3010000000
3020000000
3030000000
3040000000
3050000000
3070000000
3080000000
3090000000
3100000000
3120000000
3130000000
3140000000
3150000000
3160000000
3170000000
3180000000
3190000000
3200000000
3210000000
3230000000
3250000000
3300000000
3310000000
3340000000
3360000000
3370000000
3390000000
3400000000
3470000000
3510000000
3520000000
3600000000
3610000000
3860000000
4010000000
4020000000
4040000000
4050000000
4060000000
4070000000
4080000000
4090000000
4100000000
4120000000
4130000000
4140000000
4150000000
4170000000
4190000000
4230000000
4240000000
4250000000
4300000000
4320000000
4340000000
4350000000
4400000000
4430000000
4640000000
4690000000
4700000000
4750000000
4780000000
4790000000
4800000000
4840000000
5010000000
5020000000
5030000000
5040000000
5050000000
5070000000
5080000000
5090000000
5100000000
5120000000
5130000000
5150000000
5160000000
5170000000
5180000000
5200000000
5300000000
5400000000
5410000000
5510000000
5590000000
5610000000
5620000000
5630000000
5670000000
5700000000
5710000000
5730000000
5740000000
5800000000
5850000000
5860000000
6010000000
6020000000
6030000000
6050000000
6060000000
6070000000
6080000000
6090000000
6100000000
6120000000
6140000000
6150000000
6160000000
6170000000
6180000000
6190000000
6200000000
6230000000
6260000000
6300000000
6310000000
6360000000
6410000000
6460000000
6500000000
6510000000
6600000000
6610000000
6620000000
6700000000
6710000000
6780000000
6790000000
6820000000
6840000000
7010000000
7020000000
7030000000
7040000000
7060000000
7070000000
7080000000
7120000000
7130000000
7140000000
7150000000
7160000000
7170000000
7180000000
7190000000
7200000000
7240000000
7270000000
7310000000
7320000000
7340000000
7400000000
7470000000
7540000000
7570000000
7600000000
7620000000
7630000000
7650000000
7690000000
7700000000
7720000000
7730000000
7740000000
7750000000
7790000000
7810000000
7850000000
7860000000
7870000000
8010000000
8020000000
8030000000
8040000000
8050000000
8060000000
8080000000
8100000000
8120000000
8130000000
8140000000
8150000000
8160000000
8170000000
8180000000
8190000000
8280000000
8300000000
8310000000
8320000000
8430000000
8450000000
8470000000
8480000000
8500000000
8560000000
8570000000
8580000000
8590000000
8600000000
8620000000
8630000000
8640000000
8650000000
8700000000
8720000000
8780000000
9010000000
9030000000
9040000000
9050000000
9060000000
9070000000
9080000000
9090000000
9100000000
9120000000
9130000000
9140000000
9150000000
9160000000
9170000000
9180000000
9190000000
9200000000
9250000000
9280000000
9310000000
9360000000
9370000000
9390000000
9400000000
9410000000
9470000000
9490000000
9510000000
9520000000
9540000000
9560000000
9590000000
9700000000
9710000000
9720000000
9730000000
9780000000
9790000000
9800000000
9850000000
9890000000
5750000000
crienzo/mod_simple_lcr/sipp/genload.xml
0 → 100644
浏览文件 @
9caeb1ce
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<!-- author Chris Rienzo -->
<!-- Sends INVITE to a LCR redirect server -->
<!-- 300 CPS, max 10000 calls, stop after 30000 calls -->
<!-- sudo ./sipp -sf genload.xml -inf numbers -inf callerid -i 10.10.54.128 -mi 10.10.54.128 -r 300 -l 2000 -m 30000 10.10.54.20:5060 -->
<scenario
name=
"genload"
>
<send
retrans=
"500"
>
<![CDATA[
INVITE sip:[field0 file="numbers"]@[remote_ip]:[remote_port] SIP/2.0
Call-ID: [call_id]
CSeq: 1 INVITE
From: <sip:[field0 file="callerid"]@[local_ip]>
;tag=[call_number]
To:
<sip:
[field0
file=
"numbers"
]@[remote_ip]
>
Via: SIP/2.0/[transport] [local_ip]:[local_port]
Max-Forwards: 70
P-Asserted-Identity:
<sip:
[field0
file=
"callerid"
]@[local_ip]
>
Contact:
<sip:
[field0
file=
"callerid"
]@[local_ip]:[local_port]
>
Allow: INVITE,BYE,CANCEL,ACK
Content-Type: application/sdp
Content-Length: [len]
v=0
o=- 10 10 IN IP[local_ip_type] [local_ip]
s=sip call
c=IN IP4 [local_ip]
t=0 0
m=audio [media_port] RTP/AVP 0
a=sendrecv
]]>
</send>
<recv
response=
"100"
/>
<!-- received 404 No route -->
<recv
response=
"404"
optional=
"true"
next=
"1"
/>
<!-- received 302 Temporarily Moved (only 1 carrier) -->
<recv
response=
"302"
optional=
"true"
next=
"1"
/>
<!-- received 300 Multiple Choices -->
<recv
response=
"300"
timeout=
"20000"
/>
<label
id=
"1"
/>
<send>
<![CDATA[
ACK sip:[field0 file="numbers"]@[remote_ip]:[remote_port] SIP/2.0
[last_Call-ID:]
CSeq: 1 ACK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
Max-Forwards: 70
Content-Length: 0
]]>
</send>
<ResponseTimeRepartition
value=
"10, 50, 100, 500, 1000, 5000, 10000"
/>
<CallLengthRepartition
value=
"10, 50, 100, 500, 1000, 5000, 10000"
/>
</scenario>
crienzo/mod_simple_lcr/sipp/numbers
0 → 100644
浏览文件 @
9caeb1ce
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论