|
@ -253,6 +253,13 @@ class asterisk_server(orm.Model): |
|
|
_logger.debug("Found a matching Event in 'Ring' state") |
|
|
_logger.debug("Found a matching Event in 'Ring' state") |
|
|
calling_party_number = chan.get('CallerIDNum') |
|
|
calling_party_number = chan.get('CallerIDNum') |
|
|
break |
|
|
break |
|
|
|
|
|
# Compatibility with Asterisk 1.4 |
|
|
|
|
|
if ( |
|
|
|
|
|
chan.get('State') == 'Ringing' and |
|
|
|
|
|
chan.get('ConnectedLineNum') == user.internal_number): |
|
|
|
|
|
_logger.debug("Found a matching Event in 'Ring' state") |
|
|
|
|
|
calling_party_number = chan.get('CallerIDNum') |
|
|
|
|
|
break |
|
|
# 6 = Up |
|
|
# 6 = Up |
|
|
if ( |
|
|
if ( |
|
|
chan.get('ChannelState') == '6' |
|
|
chan.get('ChannelState') == '6' |
|
|