LesD
Member
- Joined
- Nov 8, 2009
- Messages
- 408
- Reaction score
- 15
I have tried the script and only changed the email address. The email I get shows:
A call from channel [SIP/210-00001b91] With CID : [unknown] - [020xxxxxxxx] has failed on host [pbx.local] at 09-16-2014 21:23 Number that was dialed : [07968yyyyyy] on trunk [VITELITY] with error : [] and hangup cause is : []
So it is much better but the error details do not come through for me.
In my original post, the log showed codes for the failure which would be useful if they could be captured.
"Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21"
"Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 19"
The first relates to authentication failure while the second to an invalid number, which should really be ignored as far as sending an email goes.
A call from channel [SIP/210-00001b91] With CID : [unknown] - [020xxxxxxxx] has failed on host [pbx.local] at 09-16-2014 21:23 Number that was dialed : [07968yyyyyy] on trunk [VITELITY] with error : [] and hangup cause is : []
So it is much better but the error details do not come through for me.
In my original post, the log showed codes for the failure which would be useful if they could be captured.
"Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21"
"Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 19"
The first relates to authentication failure while the second to an invalid number, which should really be ignored as far as sending an email goes.