Hey list,

I have a problem when I host 2 SIP-accounts on the same Asterisk-server.
Asterisk picks out the SIP-account on alphabetic order A --> Z.

In my sip.conf :

register => user1:pass...@server/user1
register => user2:pass...@server/user2

[YOCAN-3starsnet]
type=peer
host=server
username=user1
secret=passwd1
fromuser=user1
accountcode=user1_in

[ITCENTER-3starsnet]
type=peer
host=server
username=user2
secret=passwd2
fromuser=user2
accountcode=ITCin

The Asterisk CLI shows :

[Oct  8 15:06:03]     -- Executing [...@macro-getiaxaccount:5]
MYSQL("SIP/ITCENTER-3starsnet-0764cdb0", ...
[Oct  8 15:06:03]     -- Executing [...@macro-getiaxaccount:6]
MacroExit("SIP/ITCENTER-3starsnet-0764cdb0", ...
[Oct  8 15:06:03]     -- Executing [...@092:9]
NoOp("SIP/ITCENTER-3starsnet-0764cdb0", "...
[Oct  8 15:06:03]     -- Executing [...@09:10]
Dial("SIP/ITCENTER-3starsnet-0764cdb0", "...

Notice the SIP/ITCENTER-3starsnet.

Now when I put [ITCENTER-3starsnet] in comment in sip.conf, the CLI
shows :

[Oct  8 15:16:08]     -- Executing [...@macro-getiaxaccount:5]
MYSQL("SIP/YOCAN-3starsnet-0764e7b0", "...
[Oct  8 15:16:08]     -- Executing [...@macro-getiaxaccount:6]
MacroExit("SIP/YOCAN-3starsnet-0764e7b0", "...
[Oct  8 15:16:08]     -- Executing [...@092779077:9]
NoOp("SIP/YOCAN-3starsnet-0764e7b0", "...
[Oct  8 15:16:08]     -- Executing [...@092779077:10]
Dial("SIP/YOCAN-3starsnet-0764e7b0", "...

Notice the SIP/YOCAN-3starsnet.

How can I keep the SIP-connection for user1 apart from the
SIP-connection of user2 ???

When I activate the SIP-account for user2, an incoming call always goes
via this second SIP-account !!


Thanks for the feedback.

Jonas.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to