Dmitry Ivanov
2006-Nov-06 02:36 UTC
[asterisk-users] Fast detection of unreachable SIP clients?
Hello! I have this in my dialplan: Dial(SIP/${ext}, 300); switch(${DIALSTATUS}) { case BUSY: Busy(); break; default: Hangup(); }; This means that SIP phone will ring for max. five minutes if phone can be contacted. When SIP phone is turned off or there is no connectivity, calling party hears many many seconds of silence. I want Dial() to return CHANUNAVAIL if there was no SIP response from the phone within 1 or 2 seconds. In this case, calling party will hear "out of range" message similar to mobile networks. Is this possible? -- Dmitry Ivanov Network engineer Telecentrs Riga, Latvia dimss@telecentrs.lv (+371) 7160235 Weather at Riga Intl (EVRA/RIX): Monday 06 November 2006 10:50,29 km/h SSE,-4?C,1004 hPa,Broken clouds at 396 meters;Overcast clouds at 640 meters,, Snow; Snow;Heavy Snow
This should work.. please make sure you have qualify=yes on in your sip.conf file for each of your sip entries. On 11/6/06, Dmitry Ivanov <dimss@telecentrs.lv> wrote:> Hello! > > I have this in my dialplan: > > Dial(SIP/${ext}, 300); > switch(${DIALSTATUS}) { > case BUSY: > Busy(); > break; > default: > Hangup(); > }; > > This means that SIP phone will ring for max. five minutes if > phone can be contacted. When SIP phone is turned off or there is > no connectivity, calling party hears many many seconds of > silence. I want Dial() to return CHANUNAVAIL if there was no SIP > response from the phone within 1 or 2 seconds. In this case, > calling party will hear "out of range" message similar to mobile > networks. Is this possible? > > -- > Dmitry Ivanov > Network engineer > Telecentrs Riga, Latvia > dimss@telecentrs.lv > (+371) 7160235 > > Weather at Riga Intl (EVRA/RIX): Monday 06 November 2006 10:50,29 > km/h SSE,-4?C,1004 hPa,Broken clouds at 396 meters;Overcast > clouds at 640 meters,, Snow; Snow;Heavy Snow > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Dmitry Ivanov
2006-Nov-07 01:42 UTC
[asterisk-users] Fast detection of unreachable SIP clients?
On Monday 06 November 2006 16:41, Matt wrote:> This should work.. please make sure you have qualify=yes on in > your sip.conf file for each of your sip entries.Now it works. Thank you!> > On 11/6/06, Dmitry Ivanov <dimss@telecentrs.lv> wrote: > > Hello! > > > > I have this in my dialplan: > > > > Dial(SIP/${ext}, 300); > > switch(${DIALSTATUS}) { > > case BUSY: > > Busy(); > > break; > > default: > > Hangup(); > > }; > > > > This means that SIP phone will ring for max. five minutes if > > phone can be contacted. When SIP phone is turned off or > > there is no connectivity, calling party hears many many > > seconds of silence. I want Dial() to return CHANUNAVAIL if > > there was no SIP response from the phone within 1 or 2 > > seconds. In this case, calling party will hear "out of > > range" message similar to mobile networks. Is this possible?-- Dmitry Ivanov Network engineer Telecentrs Riga, Latvia dimss@telecentrs.lv (+371) 7160235 Weather at Riga Intl (EVRA/RIX): Tuesday 07 November 2006 09:50,9 km/h S,2?C,1003 hPa,,,