[Users] IMPORT from bridged Local channels not importing.
Ethy H. Brito
ethy.brito at inexo.com.br
Tue Nov 15 15:11:02 CET 2016
Hi All
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
and
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:
${RTPAUDIOQOS}
to grab the origin leg stats and
Set(MyDESTCH=${CUT(CDR(dstchannel),\;,1)}\;2)
Set(DESTCH=${IMPORT(${MyDESTCH},BRIDGEPEER)})
Set(STATS=${IMPORT(${DESTCH},CHANNEL(rtpqos,audio,all))})
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)?
Thanx for your time.
Cheers
Ethy
More information about the Users
mailing list