SIP trunk - one way audio

Status
Not open for further replies.

callidus

Joined
Jul 29, 2009
Messages
17
Reaction score
0
Hi,
I have problems with a SIP trunk. The final result is that I have one way audio.
The sip provider is not a supported provider, so I'm not sure if all parameters are ok. but I am waiting for a reply from the provider.
anyway.. i have get the ip range 10.160.250.56/30 from the provider. the problem #1 is that 3cx thinks it's an local ip.. the 3cx is on a local ip 192.168.1.249.
I have looked in the 3CXPhoneSystem.ini file to remove the addresses, but I haven't found any network configuration in it.. should I just add the row with local network addresses??

my other question is about the registration settings of voip provider:
so, i go to voip providers -pick the provider - advanced - registration settings ->
require registration for: "do not require" (because it's a sip trunk)
Which IP to use in 'Contact' field for registration: Specified IP (where I put the ip which i got from the provider), right?
so, considering the ip.. what function does it really have? should it be send in the SDP packet? because, my 3cx is sending his local ip (192.168.1.249)

how can I make things right?
 
HI - please read the rules for getting help and post the requisite information. As of now, we don't even know what version of 3cx you are trying to use. :) Before you post your logs, make sure your pbx is in verbose mode (Settings -> Advanced).

In the mean, you could try adding a custom parameter in Settings->Advanced for LOCALSUBNETS and specify your 192.168.x.x/24 subnet. Make sure you restart your 3cx services afterwards.

Lastly - while it may not be necessary, I like requiring registration anyway presuming they gave you authentication credentials. As far as the rest of the fields, post your logs before we start giving advice on that. :)

Best,

Chavous
 
I'm sorry.. here is the log.. ;)

The call was made from Softphone (ext 12) through tunnel. the provider is optima.
there are two more providers accounts registered, but they are no sip trunks. (and it works fine with them)

for the sip trunk, there is no authentication.

it's all in a test faze for now, so the version of 3cx is the free version.


07:12:56.287 Active calls counted toward license limit: []
07:12:55.537 [MS105000] C:1.2: No RTP packets were received:remoteAddr=10.160.4.144:50006,extAddr=0.0.0.0:0,localAddr=192.168.1.33:7002
07:12:54.240 [CM503008]: Call(1): Call is terminated
07:12:50.443 Session 47 of leg C:1.1 is confirmed
07:12:50.099 [CM503007]: Call(1): Device joined: sip:[email protected]:5060
07:12:50.099 [CM503007]: Call(1): Device joined: sip:[email protected]:49547;rinstance=e606fcf3cf88f640
07:12:50.099 [MS210001] C:1.2:Answer received. RTP connection[unsecure]: 10.160.4.144:50006(50007)
07:12:50.099 Remote SDP is set for legC:1.2
07:12:46.833 [MS210003] C:1.1:Answer provided. Connection(transcoding mode[unsecure]):127.0.0.1:7000(7001)
07:12:46.833 [MS210001] C:1.2:Answer received. RTP connection[unsecure]: 10.160.4.144:50006(50007)
07:12:46.833 Remote SDP is set for legC:1.2
07:12:46.833 [CM505003]: Provider:[Optima] Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [] PBX contact: [sip:[email protected]:5060]
07:12:46.833 [CM503002]: Call(1): Alerting sip:[email protected]:5060
07:12:44.615 [CM503025]: Call(1): Calling VoIPline:0913048787@(Ln.10003@Optima)@[Dev:sip:[email protected]:5060]
07:12:44.615 [MS210002] C:1.2:Offer provided. Connection(transcoding mode): 192.168.1.33:7002(7003)
07:12:44.568 [CM503004]: Call(1): Route 1: VoIPline:0913048787@(Ln.10003@Optima)@[Dev:sip:[email protected]:5060]
07:12:44.568 [CM503010]: Making route(s) to <sip:[email protected]:5060>
07:12:44.568 [MS210000] C:1.1:Offer received. RTP connection: 127.0.0.1:10002(10003)
07:12:44.568 Remote SDP is set for legC:1.1
07:12:44.568 [CM505001]: Ext.12: Device info: Device Identified: [Man: 3CX Ltd.;Mod: 3CXVoipPhone;Rev: General] Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [3CXVoipPhone 4.0.9530.0] PBX contact: [sip:[email protected]:5060]
07:12:44.552 [CM503001]: Call(1): Incoming call from Ext.12 to <sip:[email protected]:5060>
07:12:44.552 [CM500002]: Info on incoming INVITE:
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bK-d8754z-2179ac00135ef42f-2---d8754z-;rport=5080;received=192.168.1.33
Via: SIP/2.0/UDP 89.201.134.167:30043;branch=z9hG4bK-d8754z-tunneltid-1---d8754z-;rport
Via: SIP/2.0/UDP 127.0.0.1:49547;branch=z9hG4bK-d8754z-2179ac00135ef42f-1---d8754z-;rport=49547
Max-Forwards: 68
Record-Route: <sip:[email protected]:5080;user=proxy;uri="89.201.134.167:30043">
Contact: <sip:[email protected]:49547;rinstance=e606fcf3cf88f640>
To: <sip:[email protected]:5060>
From: "Irena"<sip:[email protected]:5060>;tag=ab11df24
Call-ID: MWNjMjhiMTYxMDFmMWFkMTlmYjBlMDYzYzM4ZDY2NjY.
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO
Proxy-Authorization: Digest username="12",realm="3CXPhoneSystem",nonce="414d535c023d335c57:99b24dab6537b00f702a696ef6d42ebb",uri="sip:[email protected]:5060",response="d16859223dde78fa60da02c428714697",algorithm=MD5
Supported: replaces
User-Agent: 3CXVoipPhone 4.0.9530.0
Content-Length: 0

07:12:28.224 [CM504001]: Ext.12: new contact is registered. Contact(s): [sip:[email protected]:49547;rinstance=e606fcf3cf88f640/12,sip:[email protected]:65486;rinstance=830b8a329ea040ab/12]
07:12:24.287 Active calls counted toward license limit: []
07:12:03.208 [CM504002]: Ext.12: a contact is unregistered. Contact(s): [sip:[email protected]:65486;rinstance=830b8a329ea040ab/12]
07:11:52.287 Active calls counted toward license limit: []
07:10:58.646 [CM504004]: Registration succeeded for: 10000@Voipdirekt
07:10:58.412 [CM504003]: Sent registration request for 10000@Voipdirekt
07:10:58.302 IP(s) added:[192.168.1.33]
07:10:57.802 [CM504001]: Ext.*0: new contact is registered. Contact(s): [sip:*[email protected]:40000;rinstance=46f0da2c27c80eca/*0]
07:10:57.787 [CM504001]: Ext.EndCall: new contact is registered. Contact(s): [sip:[email protected]:40600;rinstance=649d74451638bff2/EndCall]
07:10:52.740 [CM504001]: Ext.12: new contact is registered. Contact(s): [sip:[email protected]:65486;rinstance=d6761ac4d0be1cd7/12,sip:[email protected]:65486;rinstance=830b8a329ea040ab/12]
07:10:52.208 [EC200002]: Media server is connected: application:server:0/MediaServer local:127.0.0.1:5482 remote:127.0.0.1:4678
07:10:51.490 [EC200004]: IVR server is connected: application:server:0/IVRServer local:127.0.0.1:5482 remote:127.0.0.1:4676
07:10:50.224 Active calls counted toward license limit: []
07:10:49.849 [CM504004]: Registration succeeded for: 10002@callidus
07:10:49.740 [CM504003]: Sent registration request for 10002@callidus
07:10:48.615 Transport [ V4 192.168.1.33:5060 UDP target domain=unspecified mFlowKey=672 ] is joined to SIP multicast group
07:10:48.224 [CM501006]: Default Local IP address: [192.168.1.33]
07:10:48.224 [CM501007]: *** Started Calls Controller thread ***
07:10:48.068 [EC200001]: Configuration server is connected: application:server:5485/DBProvider local:127.0.0.1:4672 remote:127.0.0.1:5485
07:10:48.052 [CM501010]: License Info: Load Failed
 
Ok - give me a little insight into your network layout... firewall, etc, how this trunk is connected to your network, etc...

Also - what do you have listed under Settings->Network->Public IP?
 
ok.. here is the situation:
modem (in bridge mode - one port internet connection (ADSL), second SIP trunk) - mikrotik rb750G router which is the pppoe client (on interface1)- dynamic public ip, sip trunk is connected to interface2 - static ip (10.160.250.62), on interface3 is the lan (192.168.1.0/24) - a server, 4 computers, 2 ip phones.
the mikrotik router is also a firewall..

at the moment as public IP is 10.160.250.58
i think here should be actually be STUN resolved (because of the other provider)
 
Ok try configuring the 3cxPhoneSystem.ini file as per this file:

http://www.3cx.com/blog/voip-howto/nat-stun-network-configuration/


So you would add something to this effect:

[Network]
localSubnets=

That should force it to only consider the PBX's subnet the ONLY local subnet.

Then restart 3cx's services, try again, and post the logs if it doesn't work.

Good luck!!

ps - Also - please post logs in code /code tags - makes it easier to read... Thanks!
 
Status
Not open for further replies.

Forum statistics

Threads
111,879
Messages
589,531
Members
164,732
Latest member
36710