0

If I dial someone and put them on hold, asterisk will hang up after few minutes. I'm thinking there is a setting somewhere that I'm not finding. Ideas? i think change this setting

freepbx => tools => asterisk sip setting => MEDIA & RTP Settings

Log excerpt:

[Mar  9 09:49:16] VERBOSE[19807] pbx.c:     -- Executing [788787636@Local-route:1] Macro("SIP/100-000804aa", "user-callerid,SKIPTTL,") in new stack
[Mar  9 09:49:16] VERBOSE[19807] pbx.c:     -- Executing [788787636@Local-route:2] NoOp("SIP/100-000804aa", "Calling Out Route: to-outside") in new stack
[Mar  9 09:49:16] VERBOSE[19807] pbx.c:     -- Executing [788787636@Local-route:3] Set("SIP/100-000804aa", "MOHCLASS=ros-moh") in new stack
[Mar  9 09:49:16] VERBOSE[19807] pbx.c:     -- Executing [788787636@Local-route:4] Set("SIP/100-000804aa", "_NODEST=") in new stack
[Mar  9 09:49:16] VERBOSE[19807] pbx.c:     -- Executing [788787636@Local-route:5] Macro("SIP/100-000804aa", "record-enable,100,OUT,") in new stack
[Mar  9 09:49:16] VERBOSE[19807] pbx.c:     -- Executing [788787636@Local-route:6] Macro("SIP/100-000804aa", "dialout-trunk,1,88787636,") in new stack
[Mar  9 09:50:11] VERBOSE[19807] res_agi.c: <SIP/100-000804aa>AGI Tx >> agi_dnid: 788787636
[Mar  9 09:50:11] VERBOSE[19807] res_agi.c: <SIP/100-000804aa>AGI Tx >> 200 result=1 (788787636)
[Mar  9 09:50:11] VERBOSE[19807] pbx.c:   == Spawn extension (Local-route, 788787636, 6) exited non-zero on 'SIP/100-000804aa'
4

2 回答 2

0

正如@arheops 所说,您正在寻找的参数是rtpholdtimeout.

默认情况下,它配置在/etc/asterisk/sip.conf. 但是您不应该在该文件上设置值,而应该通过 Elastix Web GUI(实际上是 FreePBX Web GUI)进行设置。PBX -> Unembedded FreePBX -> Tools -> Asterisk SIP settings -> Media & RTP settings, 或 on/etc/asterisk/sip_general_custom.conf因为sip.conf由 FreePBX 自动生成,不应手动修改。

于 2014-08-27T12:12:22.137 回答
0

很可能你使用 sip。它在 sip.conf 中有参数

rtpholdtimeout=300             ; Terminate call if 300 seconds of no RTP or RTCP activity
                                ; on the audio channel
                                ; when we're on hold (must be > rtptimeout)
于 2014-03-10T11:09:27.023 回答