[Home]

Summary:ASTERISK-01826: CLI commands always show last iax2.conf entry when entries have same host
Reporter:Andrew Kohlsmith (akohlsmith)Labels:
Date Opened:2004-06-15 08:31:19Date Closed:2011-06-07 14:10:09
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) emptyfile.txt
Description:part of my iax2.conf:

[benphone]
type=peer
username=benphone
secret=benphone
host=192.168.2.2
qualify=300
;trunk=yes

[benfax]
type=peer
username=benfax
secret=benfax
host=192.168.2.2
disallow=all
allow=ulaw
;trunk=yes

[bendummy]
type=peer
username=bendummy
secret=bendummy
host=192.168.2.2
;trunk=yes

It doesn't matter what my Dial() command uses, benphone@benphone, benfax@benfax or bendummy@bendummy, the output on the CLI is always bendummy:

   -- Accepting call from '1234567890' to '5551212' on channel 0/2, span 1
   -- Executing Dial("Zap/2-1", "IAX2/benphone@benphone") in new stack
   -- Called benphone@benphone
   -- Call accepted by 192.168.2.2 (format ILBC)
   -- Format for call is ILBC
   -- IAX2[bendummy]/2 is ringing
   -- IAX2[bendummy]/2 stopped sounds
   -- IAX2[bendummy]/2 answered Zap/2-1

Those last three lines should say IAX2[benphone] not IAX2[bendummy] since benphone was called.
Comments:By: twisted (twisted) 2004-06-15 08:35:44

dupe 1850