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:
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
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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:
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:
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
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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, 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 mailto:abalashov@evaristesys.com>:
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: 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 _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 <tel:%2B1-800-250-5920> (toll-free) / +1-678-954-0671 <tel:%2B1-678-954-0671> (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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:
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, 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 mailto:abalashov@evaristesys.com>:
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: 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 _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:
sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States Tel: +1-800-250-5920 <tel:%2B1-800-250-5920> (toll-free) / +1-678-954-0671 <tel:%2B1-678-954-0671> (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov | Principal | Evariste Systems LLC 303 Perimeter Center North, Suite 300 Atlanta, GA 30346 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users