Detection if SIP Client is unreachable

aststar2010
Joined: Mon 31 of May, 2010

Re: Detection if SIP Client is unreachable

Posted:Tue 01 of Jun, 2010 (11:24 UTC)
Hi again.

I think I found a nice way to get this running. I used the SIPPEER command for it:

exten => s,n,GotoIf($["${SIPPEER(test01,status)}" == "UNREACHABLE"]?elmeg_mobile)
exten => s,n,Goto(elmeg_sip)
exten => s,n(elmeg_mobile),Dial(${ACCOUNT02}&DAHDI/g1/${MOBILE})
exten => s,n(elmeg_sip),Dial(${ACCOUNT01}&{ACCOUNT02})

Thanks anyway if someone thought about it.

Regards
aststar2010
Joined: Mon 31 of May, 2010

Detection if SIP Client is unreachable

Posted:Tue 01 of Jun, 2010 (08:05 UTC)
Hi there.

I'm trying to get something into my dialplan like "If the sip client is unreachable, try the other phone". But I'm not sure, if it's possible with the build-in tools of asterisk 1.6. I already tried ChanIsAvail in my dialplan but that can only detect if a client is unavailable and that is - in fact - not the thing I want to have. Unavailability can be set via the SIP client itself (an Elmeg IP190). But I want to have something like checking for physical connection. In my case: is the phone connected to the network and asterisk or not.

I hope someone has already done something like that. Any tip would be very nice :)

Regards