[Asterisk-Users] sip.conf registration

Adam Greenbaum lists at refinitive.com
Fri Oct 29 04:09:54 MST 2004


Sorry to be a pain reposting this question, but a mail server problem
resulted in my last message missing the boat slightly:

How do I associate a SIP entity with a registered account on a PSTN
gateway?

I have 2 register lines and 2 entities in sip.conf. 
When I dial into asterisk from the PSTN gateway it always associates
with the second entity. (CVS)

 I've looked through the source and it _seems_ as though you can only
match against the from: username [find_user()] and from source address
[find_peer()]. 

Surely you would need to match against the destination sip: username,
not the From: username. Am I missing something? I must be, otherwise you
would never be able to use multiple accounts on a SIP gateway.

Thanks for your help,

Adam.




More information about the asterisk-users mailing list