we are using asterisk as gateway for connecting two ISDN channel (mobile phone) . we are using Dialogic Diva V-4PRI/E1/T1-120 PCI v1 - with asterisk. when someone (mobile no xxxxxxxxxxx) calls to our ISDN mobile number yyyyyyyyyy in our asterisk box we do connect him by dialing mobile no zzzzzzzzzzz from our asterisk . please check the dialplan where xxxxxxxxxxx the caller number. yyyyyyyyyy is our ISDN number and zzzzzzzzzz is the called party number .
exten => yyyyyyyyyyy,1,Answer()
same => n,Dial(CAPI/ISDN1/xxxxxxxxxxx:zzzzzzzzzzz,30,Tt)
everything is ok. the only problem is we are getting wrong ${DIALSTATUS} . when the zzzzzzzzzzz mobile got busy or offline sometimes we are getting BUSY and sometimes NO ANSWER status no matter the mobile is busy or offline.
the function device_state() is always showing Unknown
how can i get the real dial status so that i can do further dialplan based on the device is busy or offline status