[asterisk-users] It's telling me too much...

Bill Michaelson bill at cosi.com
Wed Jul 30 15:18:12 CDT 2008


In case this is useful to others, a tip...

I moved one of my Polycom 501's off it's subnet to another one (I've got 
an ether bridge glued to the back of the phone and a wireless card in 
the * box acting as AP).  Now it is still served by the same Asterisk 
box, albeit through another ethernet port.  It works just fine, except 
that on incoming calls, the full SIP address is displayed for the caller 
number.  I was initially puzzled until I realized that the phone was 
simply qualifying the address of the caller because it was in a domain 
that is different than it's own - technically.  But my users don't do 
"technically", and come to think of it, I don't like it either.

The fix: use iproute2 to mangle the packets:

BEFORE:

root at pig:/home/ftp/polycom4# ip ro sh
192.168.20.0/24 dev eth0  proto kernel  scope link  src 192.168.20.3
192.168.99.0/24 dev ath0  proto kernel  scope link  src 192.168.99.1
71.245.116.0/24 dev eth2  proto kernel  scope link  src 71.245.116.10
169.254.0.0/16 dev eth2  scope link  metric 1000
192.168.0.0/16 via 192.168.20.65 dev eth0
default via 71.245.116.1 dev eth2  metric 100

FIX:

root at pig:/home/ftp/polycom4# ip ro rep 192.168.99.0/24 dev ath0  proto 
kernel  scope link  src 192.168.20.3

AFTER:

root at pig:/home/ftp/polycom4# ip ro sh
192.168.20.0/24 dev eth0  proto kernel  scope link  src 192.168.20.3
192.168.99.0/24 dev ath0  proto kernel  scope link  src 192.168.20.3
71.245.116.0/24 dev eth2  proto kernel  scope link  src 71.245.116.10
169.254.0.0/16 dev eth2  scope link  metric 1000
192.168.0.0/16 via 192.168.20.65 dev eth0
default via 71.245.116.1 dev eth2  metric 100

Now the phone thinks it's "routing" to the * box, but ignorance is bliss.

Hope this helps someone.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080730/34834db0/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3221 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080730/34834db0/attachment.bin 


More information about the asterisk-users mailing list