Delay in DVSwitch connection to ASL3 Solved

I notice when connecting to ASL3 with DVSwitch things work just as before, except there is a 10 second delay in the connection. I simply use the existing iaxclient entry and update the password in iax.conf. Then configure DVSwitch as usual and everything works great except the 10 second delay is not expected. There is a wait delay in the dialplan. I changed it to 1 and connections happen faster as expected:

/etc/asterisk/extensions.conf around line 47

[iax-client] ; for IAX VoIP clients.
exten => ${NODE},1,Ringing()
same => n,Wait(1) ; <— changed from 10 to 1
same => n,Answer()
same => n,Set(CALLSIGN=${CALLERID(name)})
same => n,NoOp(Caller ID name is ${CALLSIGN})
same => n,NoOp(Caller ID number is ${CALLERID(number)})
same => n,GotoIf(${ISNULL(${CALLSIGN})}?hangit)
same => n,Playback(rpt/connected)
; same => n,Playback(rpt/connected-to&rpt/node)
; same => n,SayDigits(${NODE})
same => n,rpt(${NODE}|P|${CALLSIGN}-P)
same => n(hangit),NoOp(No Caller ID Name)
same => n,Playback(connection-failed)

2 Likes

Thank you for the useful information. I think, it should be set to (1) in the installation package.

After using it a while yesterday, I settled on 2 seconds and might end up setting it at 3. 1 second is a little abrupt with the connected message, 2 better. Either way, I agree. I will put something about this in github.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.