[asterisk-users] Determining picked up line from multiple line ring

asterisk-users at enlai.net asterisk-users at enlai.net
Wed Jun 24 16:28:15 CDT 2009


I think I got it. ${DIALEDPEERNUMBER} contains the leg that connected
(just what I need).
FYI I used DumpChan() to get all the available variables and found it.

Thanks!
Enlai


On Wed, 24 Jun 2009 14:19:46 -0700, asterisk-users at lists.digium.com
said:
> Thanks Danny.
> 
> I tried accessing ${CHANNEL} and ${DNID} or ${CALLERID{dnid)} in the h
> (hangup) context, which is invoked after either party hangs up. 
> 
> However, the ${CHANNEL} contains the original channel the call came in
> on and not the outbound channel that connected. The ${CALLERID(dnid)}
> contains the caller's phone number and not the one that connected on the
> outbound leg.
> 
> Any other ideas? Should I put the ${CHANNEL} and ${CALLERID(dnid)}
> somewhere else?
> 
> Thanks,
> Enlai
> 
> 
> On Wed, 24 Jun 2009 15:51:18 -0500, "Danny Nicholas" <danny at debsinc.com>
> said:
> > ${CHANNEL} or ${DNID} should do the trick.
> > 
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com
> > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> > asterisk-users at 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 [5558280000 at inbound:52] Dial("SIP/proxy3-05ac9180",
> >  "SIP/15551111111 at proxy1&SIP/15552222222 at proxy1|18|r") in new stack
> >     -- Called 15551111111 at proxy1
> >     -- Called 15552222222 at 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



More information about the asterisk-users mailing list