[Spce-user] SIP Peering cannot send SIP MESSAGE
Marc Storck
mstorck at voipgate.com
Mon Sep 22 10:05:08 EDT 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sep 22, 2014, at 2:12 PM, Daniel Grotti <dgrotti at sipwise.com> wrote:
Hi,
SPCE is not rejecting, just asking authentication.
If you want to change the behavior you should hack the following part in /etc/ngcp-config/templates/etc/kamailio/proxy/impresence.cfg.customtt.tt2
# MESSAGE that did not associated with dialog, need AUTH
# SUBSCRIBE/NOTIFY/PUBLISH need AUTH
# unless it's a PUBLISH from PUA or SUBSCRIBE from sems reginfo-client / PUBLISH from sems-pbx
if(! (([% FOREACH ip IN sip_int_ips -%]$si == "[% ip %]"[% IF sip_int_ips.last != ip -%] || [% END -%][% END -%]) &&
($sp == "[% kamailio.proxy.port %]" || $sp == "[% sems.bindport %]" || $sp == "[% pbx.bindport %]")) )
{
route(ROUTE_AUTH);
}
cause by default MESSAGE that did not associated with dialog needs AUTH.
You can skip Auth the part by adding ' || $si="1.2.3.4" ' at the end.
I now have
if(! (($si == "127.0.0.1") &&
($sp == "5062" || $sp == "5080" || $sp == "")) || $si==“1.2.3.4" )
But SPCE still requires authentication.
Marc Storck
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQIcBAEBAgAGBQJUIC0LAAoJEBqZdpQUXtTCru0P/0cK5vKhw8p9Q1uYyTQ5VkI3
2YJl2n3Tzsbu/4D28mWk3APBlZIyS+zNBS7ZMGNU6IoRLEh+coJNSCB5OoyyWNiF
1rwUG9FmcEyxBbQJEYxQdCq2CYW6MiX3819cKkrwhIbXRzW5wEfDkJN8W/V24TGp
erzzB5fvhA3lJ5Jsj84o36g1X4ClxdTndJYpi6RuCpUefiXewjjGAX2N8+iM1qIO
6f0Ke2+hIFF98ZJnmUFoQSmojdNgviotwZzTlWQ5JBlcNxLUGHy4ORh9YDmIyVxe
DNg1BBflcGci0D9ixb6TJCj+zYKIVibYiTfuvTtzagBgmRztHk4EhRQ1hhRnIu0Y
NLYkprZ/llGMa5YZifpqetBd/kUSDRMKFXeklxqLNekuyX9Xcr6dKK34vR7b0L+S
m214cwI+eGQXfu86gXuzYTCGNC922dszbPwjXgI3nluxFypuB2/WRwOxnEmjMYVq
9jwuuKSKxEQD0ibGaTmQiCEY932uJlDhFxl7oaf0CZGpnydVEROnLSpjQJrI2vP0
Mol1zqDGMclX1enSGaEGkcJHrNd6107fdeHI7DQUu/rpPnlPX/8ym+sFOoiHj8e2
kd4v0OrNDOUG1CL14tcUUnMs6tPYTpkb9gStnKIpBNKMC6hatlL2HiHeHAaJaBPt
v+TYotLkCoeCicNcDzpQ
=qiKj
-----END PGP SIGNATURE-----
More information about the Spce-user
mailing list