Hello everyone,
I have Kamailio and Asterisk on the same machine with the same public IP. When I try to forward calls to the asterisk (PSTN GW on port 5080), returns the error 401, but does not reach the Asterisk any information. When I switch to an IP out, it works.
Any idea?
Regards, Doug
Doug,
If I understood your claim correctly, the INVITE request goes from Kamailio to Asterisk, and Asterisk returns a 401 challenge. This is because Asterisk doesn't trust Kamailio as an incoming source. It probably needs a [correct] sip.conf peer.
-- Alex
Alex,
I use Asterisk only as gateway (PSTN). The gateway, when the same IP, does not receive the INVITE, only when it is in another machine.
Thanks for your response.
Doug
You mean that you forward the request to localhost:5080, in essence, and it does not receive it?
Are you forwarding to localhost:5080 or public_ip:5080? That may traverse different interfaces. And by the same token, do local firewall and/or forwarding policies allow for this?
Cheers,
-- Alex
On 12/04/2015 01:02 PM, Douglas Adami wrote:
Yes, I send in public_same_ip:5080 and did not get anything at the gateway.
Cheers, Doug
2015-12-04 18:05 GMT+00:00 Alex Balashov abalashov@evaristesys.com:
When you say gateway, you mean Asterisk?
Do you have a capture illustrating this flow?
On 12/04/2015 01:13 PM, Douglas Adami wrote:
Yes, gateway = asterisk. No, I will capture and then send.
Thank you for your help.
2015-12-04 18:17 GMT+00:00 Alex Balashov abalashov@evaristesys.com: