Setup: asterisk 1.8 on CentoOS 5.5
Problem: if I place an outbound call to a disconnected landline number, phone will ring indefinitely or till specified timeout value.
If I call the same number from a regular landline or a cell phone, it will play a specific sound and then a per-recorded message “Number is not in service”.
This is a real life scenario when I was trying to reach someone for 3 days. The person already moved and got his phone disconnected. Co-incidentally, I called him from my cell only to find out that “number is not in service”
[Aug 26 13:48:28] VERBOSE netsock2.c: == Using SIP RTP TOS bits 184
[Aug 26 13:48:28] VERBOSE netsock2.c: == Using SIP RTP CoS mark 5
[Aug 26 13:48:28] VERBOSE app_dial.c: -- Called SIP/my_trunk/XXX9964941
[Aug 26 13:48:30] VERBOSE app_dial.c: -- SIP/my_trunk-00000008 is making progress passing it to Local/XXX9964941@from-internal-561c;2
[Aug 26 13:49:13] VERBOSE app_macro.c: == Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'Local/XXX996494@from-internal-561c;2' in macro 'dialout-trunk'
From the logs, it looks like just waits to connect, but never connects. So why cell phone connects?
Is there a way to identify using maybe a dialplan or AGI script if the number is disconnected or not?