We have a PRI and whenever something goes wrong at the other side (like “number has changed”, “number out of service”, etc.) asterisk returns the DIALSTATUS and hangs up. is there a way to make asterisk actually play those original messages from the telco side?
priindication=inband is the default behaviour of asterisk. Just for testing i tried to set it to priindication=outofband. Neither setting changed the asterisk behaviour.
I know that i can read DIALSTATUS and play the appropiate message bymyself, but there is a problem. There are more possible causes of a failed call than DIALSTAUSes. For example:
You get a CHANUNAVAIL if a number doesn’t exist at all.
You get a CHANUNAVAIL also if you call a cellphone that has been switched off.
We really need to get the “real” messages from the telco-side.
Ok, I tried progrssinband=yes and it didn’t change the way asterisk behaves.
I am wondering if it’s possible at all to make this work.
Could it be a problem at the configuration of the line at telco-side?
I re-checked HANGUPCAUSE and got an idea what messages to record bymyself, but then I’d still need the external anouncements for changed numbers
“The number has changed. The new number is 0123456789”
Another thing i found was:
;inbanddisconnect=yes
; Allow inband audio (progress) when a call is RELEASEd by the far end of a PRI
I am not sure if that option could do what i want. The problem is, that it isn’t available in our quiet old Asterisk setup from the Debian Stable Repos (1.2.13). I don’t want to setup a new system with the latest Asterisk without being sure, that it would solve my problems, because everything else is working perfectly for us.