[kamailio/kamailio] `advertise` keyword not take effect when `listen` is bounded NIC name (#1209)

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[kamailio/kamailio] `advertise` keyword not take effect when `listen` is bounded NIC name (#1209)

Daniel-Constantin Mierla-11

Tested on e5b8066 commit


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"`advertise` keyword not take effect when `listen` is bounded NIC name (#1209)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11

Can you provide some useful description? Kamailio has many advertise related parts, we cannot guess what you do from a title with a dozen of words. If you want help, you need to provide useful details.

Moreover, there is some template that you can fill, you can ignore/delete it, but at least paste here what parameters you set, what you tested and it is not working as you expect.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1209: Can you provide some useful description? Kamailio has many advertise related parts, we cannot guess what you do from a title with a dozen of words. If you want help, you need to provide useful details.\r\n\r\nMoreover, there is some template that you can fill, you can ignore/delete it, but at least paste here what parameters you set, what you tested and it is not working as you expect."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#issuecomment-321260063"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11
In reply to this post by Daniel-Constantin Mierla-11

Testbox config
used default config with enabled roles

#!KAMAILIO
#!define WITH_DEBUG
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_PRESENCE
#!define WITH_PSTN

Kamailio behind NAT and bounded to NIC using

listen=udp:eth0:5060 advertise 199.180.30.245:15060

SIP device creates call to PSTN number +18009998877

Please look at wireshark PCAP file packet 11
You can find Record-Route with private address, advertise keyword not take effect

Record-Route: <sip:172.17.0.2;lr>

Kamailio debug loo attachet too
kamailio-log.txt

sip.zip


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sergey-safarov in #1209: Testbox config\r\nused default config with enabled roles\r\n```\r\n#!KAMAILIO\r\n#!define WITH_DEBUG\r\n#!define WITH_MYSQL\r\n#!define WITH_AUTH\r\n#!define WITH_USRLOCDB\r\n#!define WITH_PRESENCE\r\n#!define WITH_PSTN\r\n```\r\nKamailio behind NAT and bounded to NIC using\r\n```\r\nlisten=udp:eth0:5060 advertise 199.180.30.245:15060\r\n```\r\nSIP device creates call to PSTN number +18009998877\r\n\r\nPlease look at wireshark PCAP file packet `11` \r\nYou can find `Record-Route` with private address, advertise keyword not take effect\r\n```\r\nRecord-Route: \u003csip:172.17.0.2;lr\u003e\r\n```\r\nKamailio debug loo attachet too\r\n[kamailio-log.txt](https://github.com/kamailio/kamailio/files/1212335/kamailio-log.txt)\r\n\r\n[sip.zip](https://github.com/kamailio/kamailio/files/1212338/sip.zip)\r\n\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#issuecomment-321323615"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11
In reply to this post by Daniel-Constantin Mierla-11

If you replace eth0 with ip, any change?

What is the output for kamcmd core.sockets_list?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1209: If you replace eth0 with ip, any change?\r\n\r\nWhat is the output for `kamcmd core.sockets_list`?"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#issuecomment-321345606"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11
In reply to this post by Daniel-Constantin Mierla-11

When used NIC for bound

[root@6d5120ba12c3 /]# kamcmd core.sockets_list
{
	socket: {
		proto: udp
		address: 172.17.0.2
		port: 5060
		mcast: no
		mhomed: no
	}
}

When user IP address for bound

{
	socket: {
		proto: udp
		address: 172.17.0.2
		port: 5060
		mcast: no
		mhomed: no
	}
}

When used IP address for bound, then advertise keyword works correctly.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sergey-safarov in #1209: When used NIC for bound\r\n```\r\n[root@6d5120ba12c3 /]# kamcmd core.sockets_list\r\n{\r\n\tsocket: {\r\n\t\tproto: udp\r\n\t\taddress: 172.17.0.2\r\n\t\tport: 5060\r\n\t\tmcast: no\r\n\t\tmhomed: no\r\n\t}\r\n}\r\n```\r\nWhen user IP address for bound\r\n```\r\n{\r\n\tsocket: {\r\n\t\tproto: udp\r\n\t\taddress: 172.17.0.2\r\n\t\tport: 5060\r\n\t\tmcast: no\r\n\t\tmhomed: no\r\n\t}\r\n}\r\n```\r\n\r\nWhen used IP address for bound, then `advertise` keyword works correctly."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#issuecomment-321372257"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11
In reply to this post by Daniel-Constantin Mierla-11

As workaround may be used such definition - works correctly

advertised_address="199.180.30.245"
advertised_port=15060
listen=udp:eth0:5060


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sergey-safarov in #1209: As workaround may be used such definition - works correctly\r\n```\r\nadvertised_address=\"199.180.30.245\"\r\nadvertised_port=15060\r\nlisten=udp:eth0:5060\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#issuecomment-321459601"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11
In reply to this post by Daniel-Constantin Mierla-11

advertised_address is only for Via headers.

There seem to be two similar rpc commands to list the sockets, the one that gives more details is corex.list_sockets, the one from core is likely from the ser.

Anyhow, I will look into the code, likely a new listen structure is created in the case interface name is provided and advertise value is lost.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1209: `advertised_address` is only for Via headers.\r\n\r\nThere seem to be two similar rpc commands to list the sockets, the one that gives more details is `corex.list_sockets`, the one from core is likely from the `ser`.\r\n\r\nAnyhow, I will look into the code, likely a new listen structure is created in the case interface name is provided and advertise value is lost."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#issuecomment-321496556"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11
In reply to this post by Daniel-Constantin Mierla-11

In case of bound to IP

sh-4.2# kamcmd corex.list_sockets
{
	PROTO: udp
	NAME: 172.17.0.2
	ADDRLIST: {
		ADDR: 172.17.0.2
	}
	PORT: 5060
	MCAST: no
	MHOMED: no
	ADVERTISE: 199.180.30.245
}

In case of bound to NIC

sh-4.2# kamcmd corex.list_sockets
{
	PROTO: udp
	NAME: 172.17.0.2
	ADDRLIST: {
		ADDR: 172.17.0.2
	}
	PORT: 5060
	MCAST: no
	MHOMED: no
	ADVERTISE: -
}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sergey-safarov in #1209: In case of bound to IP\r\n```\r\nsh-4.2# kamcmd corex.list_sockets\r\n{\r\n\tPROTO: udp\r\n\tNAME: 172.17.0.2\r\n\tADDRLIST: {\r\n\t\tADDR: 172.17.0.2\r\n\t}\r\n\tPORT: 5060\r\n\tMCAST: no\r\n\tMHOMED: no\r\n\tADVERTISE: 199.180.30.245\r\n}\r\n```\r\nIn case of bound to NIC\r\n```\r\nsh-4.2# kamcmd corex.list_sockets\r\n{\r\n\tPROTO: udp\r\n\tNAME: 172.17.0.2\r\n\tADDRLIST: {\r\n\t\tADDR: 172.17.0.2\r\n\t}\r\n\tPORT: 5060\r\n\tMCAST: no\r\n\tMHOMED: no\r\n\tADVERTISE: -\r\n}\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#issuecomment-321521411"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11
In reply to this post by Daniel-Constantin Mierla-11

Can you try with latest master branch or the patch referenced above?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1209: Can you try with latest master branch or the patch referenced above?"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#issuecomment-321532806"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11
In reply to this post by Daniel-Constantin Mierla-11

Hello Daniel @miconda
I tested commit 97d8ebc, issue is resolved.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sergey-safarov in #1209: Hello Daniel @miconda \r\nI tested commit 97d8ebc966aba71efb3a964e71b00736db51401b, issue is resolved."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#issuecomment-322051894"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [kamailio/kamailio] advertise keyword not take effect when listen is bounded NIC name (#1209)

Daniel-Constantin Mierla-11
In reply to this post by Daniel-Constantin Mierla-11

Closed #1209.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Closed #1209."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1209#event-1203937638"}}}</script>
_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Loading...