[Users] IMPORT from bridged Local channels not importing.
Ethy H. Brito
ethy.brito at inexo.com.br
Tue Nov 15 15:16:50 CET 2016
Hi.
I apologize for the noise.
This went to the WRONG list.
Please ignore.
Cheers
Ethy
On Tue, 15 Nov 2016 12:11:02 -0200
"Ethy H. Brito" <ethy.brito at inexo.com.br> wrote:
>
> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.claws-mail.org
> http://lists.claws-mail.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list