- Joined
- Nov 8, 2008
- Messages
- 79
- Reaction score
- 1
Scenario:
3cx hosted on a dedicated server with public ip address on the eth interface (no nat) and mini-edition license activated.
1 Provider configured ONLY with G729 codec enabled.
1 remote extension with G729 on-board licensed (Linksys SPA941) and configured to use ONLY the G729 codec.
1 Incoming route to forward the call to remote extensions and after 5 seconds forward to voice mail.
The option : "PBX Delivery audio" not enabled on the 3cx and on the extension.
Checking with performance monitor the G729 usage counter, I noticed a strange thing:
During the ringing the G729 licenses increase to 4 !!
Yes... you understand right: four licenses for one incoming call.... :shock:
When call is forwarded to voice mail, the G729 licenses usage decrease to 0.
In both case (ringing and voice mail transfer) , the "Calls bound to mediaserver" value was = 0
So, I made some investigation and ask to my voip provider to send me the log of the session.
This is the part of SIP messages related to media rtp negotiation during the INVITE step:
m=audio 7120 RTP/AVP 18 18 18 18 8 0 4 96 97 2 98 3 99
a=rtpmap:18 G729A/8000
a=ptime:40
a=rtpmap:18 G729B/8000
a=ptime:40
a=rtpmap:18 G729AB/8000
a=ptime:40
a=rtpmap:18 G729/8000
a=ptime:40
a=rtpmap:8 PCMA/8000
a=ptime:40
a=rtpmap:0 PCMU/8000
a=ptime:40
a=rtpmap:4 G723/8000
a=ptime:30
a=rtpmap:96 G726-16/8000
a=ptime:40
a=rtpmap:97 G726-24/8000
a=ptime:40
a=rtpmap:2 G726-32/8000
a=ptime:40
a=rtpmap:98 G726-40/8000
a=ptime:40
a=rtpmap:3 GSM/8000
a=ptime:40
How you could verify checking the red lines highlighted, the provider send four types of G729 codec availabilty.
This is log section when 3cx accept the incoming communication (OK message):
m=audio 9004 RTP/AVP 18 18 18 18 99
c=IN IP4 80.80.80.80
a=rtpmap:18 G729/8000
a=rtpmap:18 G729/8000
a=rtpmap:18 G729/8000
a=rtpmap:18 G729/8000
a=rtpmap:99 telephone-event/8000
a=sendrecv
In this case, you can see that 3cx accept 4 times the same codec, using in one shot all the g729 licenses.
And this is not good...... !
I hope that some 3cx guy, could read my post to fix this issue.
Thanks to everyone
3cx hosted on a dedicated server with public ip address on the eth interface (no nat) and mini-edition license activated.
1 Provider configured ONLY with G729 codec enabled.
1 remote extension with G729 on-board licensed (Linksys SPA941) and configured to use ONLY the G729 codec.
1 Incoming route to forward the call to remote extensions and after 5 seconds forward to voice mail.
The option : "PBX Delivery audio" not enabled on the 3cx and on the extension.
Checking with performance monitor the G729 usage counter, I noticed a strange thing:
During the ringing the G729 licenses increase to 4 !!
Yes... you understand right: four licenses for one incoming call.... :shock:
When call is forwarded to voice mail, the G729 licenses usage decrease to 0.
In both case (ringing and voice mail transfer) , the "Calls bound to mediaserver" value was = 0
So, I made some investigation and ask to my voip provider to send me the log of the session.
This is the part of SIP messages related to media rtp negotiation during the INVITE step:
m=audio 7120 RTP/AVP 18 18 18 18 8 0 4 96 97 2 98 3 99
a=rtpmap:18 G729A/8000
a=ptime:40
a=rtpmap:18 G729B/8000
a=ptime:40
a=rtpmap:18 G729AB/8000
a=ptime:40
a=rtpmap:18 G729/8000
a=ptime:40
a=rtpmap:8 PCMA/8000
a=ptime:40
a=rtpmap:0 PCMU/8000
a=ptime:40
a=rtpmap:4 G723/8000
a=ptime:30
a=rtpmap:96 G726-16/8000
a=ptime:40
a=rtpmap:97 G726-24/8000
a=ptime:40
a=rtpmap:2 G726-32/8000
a=ptime:40
a=rtpmap:98 G726-40/8000
a=ptime:40
a=rtpmap:3 GSM/8000
a=ptime:40
How you could verify checking the red lines highlighted, the provider send four types of G729 codec availabilty.
This is log section when 3cx accept the incoming communication (OK message):
m=audio 9004 RTP/AVP 18 18 18 18 99
c=IN IP4 80.80.80.80
a=rtpmap:18 G729/8000
a=rtpmap:18 G729/8000
a=rtpmap:18 G729/8000
a=rtpmap:18 G729/8000
a=rtpmap:99 telephone-event/8000
a=sendrecv
In this case, you can see that 3cx accept 4 times the same codec, using in one shot all the g729 licenses.
And this is not good...... !
I hope that some 3cx guy, could read my post to fix this issue.
Thanks to everyone