[asterisk-users] CHANNEL(aor) CHANNEL(contact) return nothing

Joshua Colp jcolp at digium.com
Wed May 20 05:50:00 CDT 2015


Jean-Denis Girard wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi list,
>
> I'm trying to use CHANNEL(aor) and CHANNEL(contact) on PJSIP channel, on
> asterisk-13.3.2, but they don't return anything. Is this a bug, or did I
> miss something?

It looks like this is an incoming leg, in which case that information 
isn't available. There is no association of an AOR and Contact on 
incoming legs (it MAY be possible to deduce but it certainly wouldn't 
work in all cases). Since you specify one explicitly on outgoing, that's 
when it is available.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list