[asterisk-users] pjsip: Inbound calls: selecting the correct trunk with one provider and different numbers
jcolp at digium.com
Wed Jun 7 15:33:22 CDT 2017
On Wed, Jun 7, 2017, at 05:28 PM, Michael Maier wrote:
> I've got a problem to select the correct trunk if there is one provider
> and different numbers with different configurations for this same
> Each trunk registers an own number (at the same provider) and provides
> own configuration: they have different allowed codecs e.g..
> What I'm experiencing now, is, that each incoming call is provided by
> trunk-prov1-2346, no matter which number has been dialed.
> The problem isn't the routing (this is done on base of the correct DID),
> but the problem is, that wrong codices are used if the wrong trunk is
> Is this a problem of asterisk or is it caused by the provider, which
> always addresses the same "trunk" regardless which number has been
Asterisk is the one who associates an incoming message with an endpoint.
In the case of providers you can use IP based matching - which would
behave as you see, only one can be matched. The second option is the
line option which may or may not work (it depends on the behavior of
the provider). If it works then the right endpoint would be chosen. Out
of those two options there's nothing else applicable built in to match.
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-users