[asterisk-users] Asterisk and Patton

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Fri Apr 30 07:16:14 CDT 2010


Hi!

> calls from Asterisk: when a call come from SIP/1001 (BRI 1 on Patton)
> or SIP/1002 (BRI 2) or SIP/1003 (BRI 3) Asterisk record a call coming
> from SIP/1004. 

Read up on how Asterisk does user/peer matching in sip.conf on inbound 
calls: With all users/peers having the same IP and hostname it is the 
entry that was defined last in sip.conf that wins.

Here's a starter:
http://www.voip-info.org/wiki/view/Asterisk+SIP+user+vs+peer
Olle has often posted in more detail about this here.

Either you simply do not differentiate between the different lines and 
treat them all as one single trunk (why exactly do you need to know which 
line is in use?), or you have to consider other ways like assigning 
different SIP ports on the Patton (a SIP gateway for each line), or maybe 
use different usernames when calling asterisk, or check if using 
different SIP domains (see [general] section in sip.conf) can help you.

See also:
http://www.mail-archive.com/asterisk-dev@lists.digium.com/msg39355.html
https://issues.asterisk.org/view.php?id=14340
https://issues.asterisk.org/view.php?id=14250

Note: Your issue is Patton --> Asterisk, while the registration part of 
the Patton config that you posted matters for Asterisk --> Patton calls.

Philipp




More information about the asterisk-users mailing list