SIP trunk configuration with kazoo

574 views
Skip to first unread message

Vinay Saini

unread,
Jul 11, 2016, 3:08:57 PM7/11/16
to 2600hz-dev
Hello All,

I am using kazoo as a PBX on our local machine and trying to configure SIP trunk on it. The SIP trunk provider are the local telco company in India which are providing us with the sip credentials and a dedicated VLAN connection between our kazoo server and there SIP server. So I have two questions regarding this configuration:

Ques1:
I have two NIC on my kazoo pbx, out of which one is connected with our local LAN network and the other one is  connected with there VLAN network as given below:

    eth0: inet addr:192.168.1.109  Bcast:192.168.1.255  Mask:255.255.255.0 ---> LAN
    eth1: inet addr:10.16.82.132  Bcast:10.16.82.167  Mask:255.255.255.252 ---> VLAN
 
  My kazoo server is running on the local IP ie:192.168.1.109  and I have added offnet document for the SIP truck with the following IP 10.16.82.134 . But when I am making outbound call I found that kazoo is sending Invite to the SIP trunk(10.16.82.134 ) with  its local IP in the SDP(192.168.1.109). So due to which, I think kazoo is not getting any response from the SIP trunk and hence the calls are failed. So please let me know the best way to configure it with the above scenario.  

Ques2:
They have provided me some sip credentials which contains username, password,realm and proxy. And if I configure these settings in the SIP client on my laptop and connect it to the same VLAN, I am able to make call successfully. I have checked there documentation and they will need Invite in the format shown below:

INVITE sip:username@realm SIP/2.0

But my kazoo server is sending in the following format:

INVITE sip:username@proxy SIP/2.0

So, Is there any way I can send the invite as per the required format?


Thanks
Vinay

Vinay Saini

unread,
Jul 13, 2016, 10:18:40 AM7/13/16
to 2600hz-dev
Hello, 

Somehow I am able to send VLAN IP(10.16.82.132) in the SDP. But now problem remains with the Invite message. In order to send Invite in the required format I did following settings in the offnet document:

           "server": "sip.realm.com",
           "username": "username",
           "password": "password",
           "realm": "sip.realm.com"
"format_from_uri": false, 

In above case realm(sip.realm.com) resolves to the correct IP(10.X.X.X.X). But kazoo is not able to send Invite to the SIP trunk provider now. If I use IP instead of hostname then I can see kazoo is able to send invite. Following are the pastebin for kazoo and freeswitch logs:

freeswitch-logs: ---- http://pastebin.com/KCynHSm0

Please check it and let me know if I can do something to solve it.

Thanks
Vinay
Reply all
Reply to author
Forward
0 new messages