Hi everyone, I ran the test manually. Just setup a single endpoint and using AMI I originanted a call to an extension which dials to another extension and send DTMF sequence using SendDTMF application.
When I setup the endpoint with rfc4733 the dtmf is identified, but when I setup the endpoint with inband it is not identified. Using rtp debug I see that the rtp is sent and received. I did the same scenario with regular sip channel and the same happened. If anyone has a clue please get back to me. I will try to make the test with sipp. Yaron On Wed, Apr 1, 2015 at 6:34 PM, Yaron Nachum <[email protected]> wrote: > Hi Everyone, > Sorry for all the questions. > > Well I managed to understand the 488 issue - I had to add some codec > capabilities. Now the test works but only if I setup the dtmfmode to > rfc4733. If I set it to inband it fails - the Read on the receiver side > doesn't receive DTMF. > > The following is the scenario: > > testinfo: > summary: 'Tests the PJSIP auto dtmf option' > description: | > 'Tests that dtmf settings is detected and setup according to the > capabilities of the peer when auto dtmf is set' > > test-modules: > test-object: > config-section: test-object-config > typename: 'test_case.SimpleTestCase' > modules: > - > config-section: ami-config > typename: 'ami.AMIEventModule' > > > test-object-config: > spawn-after-hangup: True > test-iterations: > - > channel: 'PJSIP/dtmf_inband@dtmf_inband' > context: 'default' > exten: 'senddtmf' > priority: '1' > > ami-config: > - > type: 'headermatch' > conditions: > match: > Event: 'DTMFEnd' > Channel: 'PJSIP/receiver-.*' > Exten: 'receiver' > requirements: > match: > Digit: '1' > count: '1' > > properties: > minversion: '13.4.0' > dependencies: > - python: 'twisted' > - python: 'starpy' > - asterisk: 'app_dial' > - asterisk: 'app_echo' > - asterisk: 'func_callerid' > - asterisk: 'chan_pjsip' > - asterisk: 'res_pjsip' > - asterisk: 'res_pjsip_caller_id' > - asterisk: 'res_pjsip_endpoint_identifier_user' > - asterisk: 'res_pjsip_sdp_rtp' > - asterisk: 'res_pjsip_session' > tags: > - pjsip > > ######################## > > The following is the extensions.conf: > > [default] > exten => senddtmf,1,NoOp(YARON Is HERE SENDDTMF > dtmfmode=${PJSIP_ENDPOINT(dtmf_inband,dtmf_mode)}) > same => n,Dumpchan() > ;same => n,SendDTMF(1) > same => n,Wait(5) > same => n,Hangup() > > exten => dtmf_inband,1,NoOp(YARON Is HERE DIAL) > same => n,Dial(PJSIP/receiver@dtmf_inband) > same => n,Hangup() > > > exten => receiver,1,NoOp(YARON Is HERE RECEIVER dtmfmode = > ${PJSIP_ENDPOINT(receiver,dtmf_mode)}) > same => n,Dumpchan() > same => n,Answer() > same => n,Read(var,,1,,1,4) > same => n,NoOp(YARON Is HERE var=${var}) > same => n,Hangup() > >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
