博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
asterisk RTP透传相关参数整理
阅读量:6112 次
发布时间:2019-06-21

本文共 3791 字,大约阅读时间需要 12 分钟。

hot3.png

1 directmedia/canreinvite

The "canreinvite" option has changed. canreinvite=yes used to disable re-invites if you had NAT=yes. In 1.4, you need to set canreinvite=nonat to disable re-invites when NAT=yes. This is propably what you want. The settings are now: "yes", "no", "nonat", "update".Please consult sip.conf.sample for detailed information.

canreinvite= was renamed to directmedia= in Asterisk 1.6.2 to more accurately describe what this setting does.See also the closely related setting directrtpsetup.

canreinvite = yes "allow RTP media direct"

canreinvite = no "deny re-invites"

canreinvite = nonat "allow reinvite when local, deny reinvite when NAT"

canreinvite = update "use UPDATE instead of INVITE"

canreinvite = update,nonat "use UPDATE when local, deny when NAT"

2 directmediapermit/directmediadeny

Asterisk 1.8 added directmediapermit and directmediadeny to limit which peers can send direct media to each other.

3 directrtpsetup=yes

directrtpsetup=yes is similar to directmedia=, except the audio is redirected in the initial INVITEs rather than reinviting the media a few RTP packets in. Note: canreinvite= was renamed to directmedia= in Asterisk 1.6.2 to more accurately describe what this setting does

4 media_address

configuration option which can be used to explicitly specify the IP address to use in the SDP for media (audio, video, and text) streams.

5 NOTICE

If one of the clients is configured with canreinvite=NO, Asterisk will not issue a re-invite at all.

If the clients use different codecs, Asterisk will not issue a re-invite.

If the Dial() command contains ''t'', ''T", "h", "H", "w", "W" or "L" (with multiple arguments)

Asterisk will not issue a re-invite.

6 DIAL()

T: Allow the calling user to transfer the call by hitting the blind xfer keys (features.conf). Does not affect transfers initiated through other methods.

    If you have set the variable GOTO_ON_BLINDXFR then the transferrer will be sent to the context|exten|pri (you can use ^ to represent | to avoid escapes), example: SetVar(GOTO_ON_BLINDXFR=woohoo^s^1); works with both t and T

t: Allow the called user to transfer the call by hitting the blind xfer keys (features.conf) Does not affect transfers initiated through other methods.

    If you have set the variable GOTO_ON_BLINDXFR then the transferrer will be sent to the context|exten|pri (you can use ^ to represent | to avoid escapes), example: SetVar(GOTO_ON_BLINDXFR=woohoo^s^1); works with both t and T

H: Allow the caller to hang up by dialing * ( * is defined in features.conf -> featuremap -> disconnect )

h: Allow the callee to hang up by dialing * ( * is defined in features.conf -> featuremap -> disconnect )

W: Allow the calling user to start recording after pressing *1 or what defined in features.conf (Asterisk v1.2.x); requires Set(DYNAMIC_FEATURES=automon)

w: Allow the called user to start recording after pressing *1 or what defined in features.conf (Asterisk v1.2.x); requires Set(DYNAMIC_FEATURES=automon)

L(x[:y][:z]): Limit the call to 'x' ms, warning when 'y' ms are left, repeated every 'z' ms) Only 'x' is required, 'y' and 'z' are optional. Numbers must be integers- beware of AGI scripts that may return long integers in scientific notation (esp PHP 5.2.5&6) The following special variables are optional for limit calls: (pasted from app_dial.c)

    LIMIT_PLAYAUDIO_CALLER - yes|no (default yes) - Play sounds to the caller.

    LIMIT_PLAYAUDIO_CALLEE - yes|no - Play sounds to the callee.

    LIMIT_TIMEOUT_FILE - File to play when time is up.

    LIMIT_CONNECT_FILE - File to play when call begins.

    LIMIT_WARNING_FILE - File to play as warning if 'y' is defined. If LIMIT_WARNING_FILE is not defined, then the default behaviour is to announce ("You have [XX minutes] YY seconds").

转载于:https://my.oschina.net/u/1537782/blog/266467

你可能感兴趣的文章
Oracle 如何提交手册Cluster Table事务
查看>>
BeagleBone Black第八课板:建立Eclipse编程环境
查看>>
在服务器上用Fiddler抓取HTTPS流量
查看>>
文件类似的推理 -- 超级本征值(super feature)
查看>>
【XCode7+iOS9】http网路连接请求、MKPinAnnotationView自定义图片和BitCode相关错误--备用...
查看>>
各大公司容器云的技术栈对比
查看>>
记一次eclipse无法启动的排查过程
查看>>
【转】jmeter 进行java request测试
查看>>
读书笔记--MapReduce 适用场景 及 常见应用
查看>>
SignalR在Xamarin Android中的使用
查看>>
走过电竞之路的程序员
查看>>
Eclipse和MyEclipse使用技巧--Eclipse中使用Git-让版本管理更简单
查看>>
[转]响应式表格jQuery插件 – Responsive tables
查看>>
8个3D视觉效果的HTML5动画欣赏
查看>>
C#如何在DataGridViewCell中自定义脚本编辑器
查看>>
【linux】crontab定时命令
查看>>
Android UI优化——include、merge 、ViewStub
查看>>
Office WORD如何取消开始工作右侧栏
查看>>
Android Jni调用浅述
查看>>
CodeCombat森林关卡Python代码
查看>>