[asterisk-users] IMPORT from bridged Local channels not importing.
Ethy H. Brito
ethy.brito at inexo.com.br
Tue Nov 15 08:21:31 CST 2016
I have some users that can access outside world telephone number.
They have external numbers to be reached as well.
Due to internal policy restrictions, they are not allowed to dial
each other internal numbers. I Can't change that.
When an internal user dials the external number for another internal user,
I Dial(Local/...) the second user.
So I end up with two channels:
SIP/origin to Local/dest_ext_num;1
Local/dest_ext_num;2 to SIP/destination
When the call is hung up (h extension), I need to grab the stats of both
legs (SIP/origin and SIP/destination) of the call, so I use:
to grab the origin leg stats and
to grab the stats for destination leg.
MyDESTCH is correctly set to "Local/dest_ext_num;2"
DESTCH receives "SIP/destination"
But STATS is ""
What am I missing here?
Is there a smarter way for grabbing these?
Another questions: when the call is hung, in which context is "h extension" run?
Always originator? Always destination? Depends on what?
What about in this scenario I describe (four contexts involved)?
Environment is: asterisk -V
Asterisk 11.7.0~dfsg-1ubuntu1 running on Ubuntu 14.04.5 LTS
Thanx for your time.
More information about the asterisk-users