[asterisk-users] Get the extension dailed
ABBAS SHAKEEL
shakeel.abbas.qau at gmail.com
Mon Nov 23 04:58:13 CST 2009
Thanks Alex
Thats just a test code
>>exten => _.,1,Answer
>>exten => _.,n,NoOp(${EXTEN})
This also have the same output as that of previous.
On Mon, Nov 23, 2009 at 3:46 PM, Alex Balashov <abalashov at evaristesys.com>wrote:
> I am curious what happens if you do the following instead:
>
> [abc]
>
> exten => _.,1,Answer
> exten => _.,n,NoOp(${EXTEN})
>
> ABBAS SHAKEEL wrote:
>
> > Thanks Alex,
> >
> > suppose this is the context
> >
> > [abc]
> > exten => s,1,Answer();
> > exten => s,n,Noop(${EXTEN});
> > exten => s,n,Noop(${CALLERID(dnid)});
> >
> > I get the following out put
> >
> >
> > Answer("DAHDI/2-1", "")
> > NoOp("DAHDI/2-1", "s") in new stack
> > NoOp("DAHDI/2-1", "")
> >
> > But i need the number that the user is dialing not the "s";
> >
> >
> >
> >
> > On Mon, Nov 23, 2009 at 3:24 PM, Alex Balashov
> > <abalashov at evaristesys.com <mailto:abalashov at evaristesys.com>> wrote:
> >
> > ABBAS SHAKEEL wrote:
> >
> > > I am facing problem while getting the number dialed. if the user
> is
> > > using SIP phone then we can get the number dialed. but if it
> > using PSTN
> > > then we are unable to get the number dialed using CALLERID(dnid).
> > Do any
> > > other way exists to find out? Or this is some thing wrong with
> > the PSTN.
> >
> > DNID breakage is a long-standing Asterisk problem.
> >
> > If this is taking place in the context of the dial plan, why not just
> > use ${EXTEN}?
> >
> > --
> > Alex Balashov - Principal
> > Evariste Systems
> > Web : http://www.evaristesys.com/
> > Tel : (+1) (678) 954-0670
> > Direct : (+1) (678) 954-0671
> >
> > _______________________________________________
> > -- 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
> >
> >
> >
> >
> > --
> > Kind Regards
> > Shakeel Abbas
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > -- 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
>
>
> --
> Alex Balashov - Principal
> Evariste Systems
> Web : http://www.evaristesys.com/
> Tel : (+1) (678) 954-0670
> Direct : (+1) (678) 954-0671
>
> _______________________________________________
> -- 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
>
--
Kind Regards
Shakeel Abbas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091123/25fb3321/attachment.htm
More information about the asterisk-users
mailing list