${CHANNEL} or ${DNID} should do the trick.

-----Original Message-----
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of
asterisk-us...@enlai.net
Sent: Wednesday, June 24, 2009 3:41 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Determining picked up line from multiple line ring

Hi all,

I've looked at the various variables but can't seem to find a way to
determine which line was picked up in a multi-line ring.

For example, in this excerpt from my asterisk logging:

 -- Executing [5558280...@inbound:52] Dial("SIP/proxy3-05ac9180",
 "SIP/15551111...@proxy1&SIP/15552222...@proxy1|18|r") in new stack
    -- Called 15551111...@proxy1
    -- Called 15552222...@proxy1
    -- SIP/proxy1-05af5ca0 is making progress passing it to
    SIP/proxy3-05ac9180
    -- SIP/proxy1-05acaae0 is making progress passing it to
    SIP/proxy3-05ac9180
    -- SIP/proxy1-05acaae0 answered SIP/proxy3-05ac9180
    -- Packet2Packet bridging SIP/proxy3-05ac9180 and
    SIP/proxy1-05acaae0

When someone dials in to 5558280000, I call two phone numbers,
15551111111 and 15552222222 simultaneously.

The logging shows when one of those numbers is picked up, but I don't
know which one. I'd like to be able to determine which phone number was
picked up. How do I do that? Is there a variable somewhere I can tap in
real time? The CDRs don't show which number was picked up either.

Thanks!

Enlai


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to