<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV><FONT face=Arial size=2><FONT size=2>
<H1>Auto Callback on Busy </H1>
<P><BR> </P>
<H1>Register on Busy </H1>
<P><BR>I have implemented it as <BR><BR>1- I store Caller and Called party
numbers in database when Called part is busy <BR><BR>2- I retrieve it from
database and Caller is called by called party when Called party hangs up
<BR><BR>It is working fine with all kind of SIP phones I have with me
<BR><BR>basic configuration for extensions.conf is given and can be accommodated
according to requirements <BR></P>
<P>[default]<BR> <BR><BR>;Store Called Number in DB if he is Busy
<BR><BR>exten => _XXXX.,1,Dial(SIP/${EXTEN},20,Ttr) <BR><BR>exten =>
_XXXX.,2,Congestion() <BR><BR>exten =>
_XXXX.,102,DBPut(CallBack/${EXTEN}=${CALLERIDNUM}) <BR><BR>exten =>
_XXXX.,103,Busy() <BR><BR><BR><BR>;Auto CallBack Caller on hang up of dialed
party <BR><BR>exten => H,1,Goto(h,1) <BR><BR>exten =>
h,1,DBget(temp=CallBack/${CALLERIDNUM}) <BR><BR>exten =>
h,2,DBdel(CallBack/${CALLERIDNUM}) <BR><BR>exten =>
h,3,Dial(SIP/${temp},20,tr) <BR><BR>exten => h,4,Congestion() <BR><BR>exten
=> h,102,NoOp(Not Registered for CallBack) <BR><BR>exten => h,104,Busy()
<BR><BR>Enjoy <BR><BR>Abdul Ghafoor <BR><BR>abdul__ghafoor@hotmail.com
<BR><BR></P></FONT></FONT></DIV></BODY></HTML>