Hello Everyone,
I’m very new and start exploring on Asterisk, please bear with me. I’m sure there is some of this topic in the forum but I would like to put in my scenario in again.I hope it does help me , again apologize and bear with me.
I’m trying to create an asterisk SIP proxy that sit in between a SIP server and my 3CX IP-PBX, all the IP-Phones are connected to my 3CX IP-PBX. SIP server on the other side are meant for some non IP-phone devices. There are some technical security concern why the IP-PBX can’t be connected directly to the SIP server. Issue here is I am not able to make call to go through via the Asterisk SIP Proxy that sit in the middle from both side.
My setup asterisk SIP proxy has 2 interfaces , one interface that can reach to SIP server and one interface that can reach my 3CX IP-PBX.
My sip.conf
[SIP]
type=friend
host=192.168.1.1 → my SIP IP
fromusername=pbx
fromdomain=SIP
username=pbx
secret=password
dtmfmode=rfc2833
allow=alaw
insecure=port,invite
context=incoming
directmedia=no
Asterisk is not a SIP proxy. It’s a B2BUA, and each call leg is independent. Yes, extensions.conf has to be configured as that defines how calls are handled.
You should also actually show or further describe what isn’t working/what happens.
The problem in my described situation is, call from both side that is going through the Asterisk server that sit in between were not able to call up to each other.
On Sunday 11 August 2024 at 15:05:57, jenson via Asterisk Community wrote:
Hello Everyone,
I’m very new and start exploring on Asterisk
My sip.conf
Since you are just starting with Asterisk, you really shouldn’t be using
sip.conf - it has been deprecated for many years, is no longer supported, and
doesn’t exist in the latest versions of Asterisk.
There is no point spending your time learning about this obsolete channel
driver; please use PJSIP from the start so that you are using something which
will continue to be supported, and about which you are likely to find more
people here with familiarity of it.
Antony.
–
“Can you keep a secret?”
“Well, I shouldn’t really tell you this, but… no.”
Hi Pooh,
Thanks for the tips. Unfortunately I have an old version of Asterisk that is left to me and I need to work on that. Still need to crack on the sip.conf and extensions.conf