[asterisk-users] how to join 2 channels using AGI/AMI

Steve Edwards asterisk.org at sedwards.com
Thu Jun 30 21:25:09 CDT 2016


On Fri, 1 Jul 2016, nik600 wrote:

> i've tried rfc2833,inband and info having the same behaviour in all situation.
> 
> 2016-06-30 23:53 GMT+02:00 nik600 <nik600 at gmail.com>:
>       sorry for top-posting, the two topics started with 2 different reason subject, but then we finished on the same problem.
> btw,the 2 show channel are reported above:
> 
> the channel with DTMF working
> 
> kcenter*CLI> core show channel SIP/pbx2-000004b9 
>  -- General --
>            Name: SIP/pbx2-000004b9
>            Type: SIP
>        UniqueID: 1467323106.1275
>       Caller ID: xxxx
>  Caller ID Name: xxxx
>     DNID Digits: yyyy
>        Language: en
>           State: Up (6)
>           Rings: 0
>   NativeFormats: 0x4 (ulaw)
>     WriteFormat: 0x4 (ulaw)
>      ReadFormat: 0x4 (ulaw)
>  WriteTranscode: No
>   ReadTranscode: No
> 1st File Descriptor: 29
>       Frames in: 325
>      Frames out: 44
>  Time to Hangup: 0
>    Elapsed Time: 0h0m6s
>   Direct Bridge: <none>
> Indirect Bridge: <none>
>  --   PBX   --
>         Context: c_Queues
>       Extension: 01
>        Priority: 1
>      Call Group: 0
>    Pickup Group: 0
>     Application: Read
>            Data: RESPONSE,beep,1,s,3,5
>     Blocking in: ast_waitfor_nandfds
> 
> 
> the channel with DTMF not working:
> 
> kcenter*CLI> core show channel Local/user1 at c_Queues-5d47;1 
>  -- General --
>            Name: Local/user1 at c_Queues-5d47;1 
>            Type: Local
>        UniqueID: 1467323176.1277
>       Caller ID: zzz
>  Caller ID Name: zzz
>     DNID Digits: (N/A)
>        Language: en
>           State: Ringing (5)
>           Rings: 0
>   NativeFormats: 0x4 (ulaw)
>     WriteFormat: 0x4 (ulaw)
>      ReadFormat: 0x4 (ulaw)
>  WriteTranscode: No
>   ReadTranscode: No
> 1st File Descriptor: -1
>       Frames in: 1
>      Frames out: 0
>  Time to Hangup: 0
>    Elapsed Time: 0h0m13s
>   Direct Bridge: <none>
> Indirect Bridge: <none>
>  --   PBX   --
>         Context: c_Queues
>       Extension: 01
>        Priority: 1
>      Call Group: 0
>    Pickup Group: 0
>     Application: AppQueue
>            Data: (Outgoing Line)
>     Blocking in: ast_waitfor_nandfds
> 
> the only difference i see is the "1st File Descriptor" pointing to -1

1) The 'frames' counts look odd to me.

2) Does a comparison of 'sip show channel' yield any clues?

3) Can you use 'sipdtmfmode()' to set a mode that works?

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
             https://www.linkedin.com/in/steve-edwards-4244281


More information about the asterisk-users mailing list