i was trying to modify chan_oss to show the called extension,
and expected to find it in cid.cid_dnid, but failed to see it.

Upon inspection (with the "show channel ..." CLI command) i
notice that this information is present in the incoming
channel, but not on the destination.
E.g. below i receive a call through chan_sip from 050098xxxx to 050098yyyy,
the incoming channel SIP/6969020704-cb3b gets bridged to OSS/dsp,
and this is what i see:

        CLI> show channel SIP/6969020704-cb3b
         -- General --
                   Name: SIP/6969020704-cb3b
                   Type: SIP
               UniqueID: 1132864876.0
              Caller ID: 050098xxxx     <---- the caller id
         Caller ID Name: 050098xxxx     <---- the caller id
            DNID Digits: 050098yyyy     <---- the called extension
                  State: Up (6)
        ...more stuff

        CLI> show channel OSS/dsp
         -- General --
                   Name: OSS/dsp
                   Type: Console
               UniqueID: 1132864876.2
              Caller ID: 050098yyyy     <--- the called extension
         Caller ID Name: (N/A)
            DNID Digits: (N/A)
                  State: Up (6)
        ... more stuff

I am a bit confused whether cid_dnid should be set by
the code in channel.c, pbx.c or apps/app_dial.c
Any ideas ?

        thanks
        luigi


_______________________________________________
Asterisk-Dev mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to