atefsaeed2010 / datacard

Automatically exported from code.google.com/p/datacard
Other
0 stars 1 forks source link

no early media #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call any phone
2.
3.

What is the expected output? What do you see instead?

datcard rev175 -> I can hear early media, now cannot

arthem rev175:
Called datacard1/699889560
    -- Datacard/datacard1-0100000000 is making progress passing it to SIP/234-00000005

r46:
Called datacard1/699889560
    -- Datacard/datacard1-0100000000 is making progress passing it to SIP/234-00000005
    -- Datacard/datacard1-0100000000 is ringing

What version of the product are you using? On what operating system?

r46 on centos 5.5 64 bits

I think you are sending sip 180 ringing but theres is no ring audio. I think it 
should be removed to hear early media from operator  

Original issue reported on code.google.com by pag...@gmail.com on 27 Nov 2010 at 11:13

GoogleCodeExporter commented 9 years ago
using originate, I can only fake ringings:

originate sip/234 application dial datacard/datacard0/687123123

This way, after pick up 234, I can hear fake rings... Anyway, I think this 
should be avoided to hear early media from operator..

Original comment by pag...@gmail.com on 27 Nov 2010 at 11:17

GoogleCodeExporter commented 9 years ago
New features added into current branch.

Now we track 
^ORIG:idx,y
and 
^CONF:idx
responses from modem after 
ATDnum;

and do 

                        case CALL_STATE_DIALING:
                                /* from ^ORIG:idx,y */
                                channel_queue_control (cpvt, AST_CONTROL_PROGRESS);
                                ast_setstate (cpvt->channel, AST_STATE_DIALING);
                                break;

                        case CALL_STATE_ALERTING:
                                /* from ^CONF:idx */
                                channel_queue_control (cpvt, AST_CONTROL_RINGING);
                                ast_setstate (cpvt->channel, AST_STATE_RINGING);
                                break;

at ^CONF: URC called party no actually ringing yet, and also no voice before 
^CONN: URC reading from device.

I should comment AST_CONTROL_RINGING and AST_STATE_RINGING lines ?

Original comment by bg_...@mail.ru on 28 Nov 2010 at 6:11

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 28 Nov 2010 at 7:23

GoogleCodeExporter commented 9 years ago
I try dial not exists number and got 'is ringing' message.
It is sure incorrect.

^CONF: URC not a 'ringing on called party' // i still has't description of 
^CONF URC.
Fixed in r49

Currently no voice read from device before CONN event (answer).
I research this behaviour with call holding, because in this case device 
voice output switched between asterisk's channels

Thanks for your bug report.

Original comment by bg_...@mail.ru on 28 Nov 2010 at 7:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

now with r49 there is no

   -- Datacard/datacard1-0100000000 is ringing

but still not getting early media. The channel is muted until answer (then 2 
way voice).

Also, trying 

originate sip/234 application dial datacard/datacard0/687123123

still getting

Called datacard1/687123123
    -- Datacard/datacard1-0100000000 is making progress passing it to SIP/234-00000005
    -- Datacard/datacard1-0100000000 is ringing

But now with correct fake ringings....

Original comment by pag...@gmail.com on 28 Nov 2010 at 10:11

GoogleCodeExporter commented 9 years ago
Yes I know channels muted until answer, bugfixing  scheduled.
Expected time to solve 48 hours.

Original comment by bg_...@mail.ru on 28 Nov 2010 at 2:30

GoogleCodeExporter commented 9 years ago
r58 fix this bug, please check and I close this bug.

Original comment by bg_...@mail.ru on 30 Nov 2010 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 30 Nov 2010 at 6:41

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 30 Nov 2010 at 6:42

GoogleCodeExporter commented 9 years ago
nice... fixed!!!

thanks

Original comment by pag...@gmail.com on 30 Nov 2010 at 7:35

GoogleCodeExporter commented 9 years ago
Ok

Original comment by bg_...@mail.ru on 30 Nov 2010 at 7:52