SIP Configuration

Dear All
If possible please give me a solution.

This is what i configured in SIP.CONF

[sample]
type=friend ; Friends place calls and receive calls
username=mytest
secret=mytest
host=192.168.0.105
context=ofice

[sample1]
type=friend ; Friends place calls and receive calls
username=mytest1
secret=mytest1
host=192.168.10.102
context=office

This is what i configured in EXTENSION.CONF
[office]
exten => 1234,1,Dial(SIP/mytest)
exten => 4321,1,Dial(SIP/mytest1)

My problem is:
The two IP address what i mentioned is a Windows Client moreover i’m having Idefisk2 the asterisk client installed & configured in that.

What i need is, to make a call to “mytest” from “mytest1”.

so in the Idefisk2, if the directly give the extension (4321 -> mytest1 ext.), & dial will it connect to the “Mytest1”.

If not let me know where i went wrong, what are the things i need to do.

Thanks in advance.

Regards
Ram kumar

Change the [sample] & [sample1] peer names to [mytest] and [mytest1] and reload sip.

Thanks for your reply.

I have installed Asterisk PBX on Fedora Linux 8 machine.

I am trying to test whether two SIP soft phones {extensions} can talk to each
other. I just have my Linux box and other PC’s in my LAN.

In two windows machine i installed Xlite asterisk client to check.
Moreover i installed xlite in the asterisk pbx Linux box too.

This is my SIP.CONF
[b]
[color=blue]
[rams]
type=friend ; Friends place calls and receive calls
username=rams
secret=rams
host=192.168.10.108
context=office

[vinay]
type=friend ; Friends place calls and receive calls
username=Vinay
secret=Vinay
host=192.168.10.102
context=office

[febin]
type=friend ; Friends place calls and receive calls
username=febin
secret=febin
host=192.168.0.104
context=office

[local]
type=peer ; Friends place calls and receive calls
username=local
secret=local
host=192.168.0.107
context=office

[/b][/color]

This is my EXTENSIONS.CONF
[color=blue]
[office]
exten => 011,1,Dial(SIP/rams)
exten => 022,1,Dial(SIP/vinay)
exten => 033,1,Dial(SIP/febin)
exten => 044,1,Dial(SIP/local)
[/color]


If i press register in XDlite - running in asterik server
-> In xlite log i’m getting a error:

[color=red]
12:12:07 PM: Registering user 'local@192.168.0.107’
12:12:07 PM: Failed registration for ‘local@192.168.0.107’ with cause 'bearercapability notauth’
12:12:09 PM: Discovered network type : Blocked (STUN server could be down)
[/color]

[color=darkred]I just want any two sip phones can communicate each other inside my network, if possible give me a solution.
[/color]

Thanks in advance.

Regards
Ram kumar

Disable your firewall
type command

in your linux machine

In your sip.conf nat =never

Try this