Multiple SIP trunks from same IP address - (same IP gateway)
I'm having an issue with Asterisk that, from doing some Googling, appears to be a deficiency in the way that Asterisk matches trunks...
My understanding is that all Asterisk uses to match a trunk for inbound calls is the IP address and perhaps the port of the request. It does not appear to use the SIP user ID sent in the INVITE at all for this (though this of course DOES work for Inbound Routes, just not picking the right trunk).
So here's my dilemma...
* I'm using a single (for now) AudioCodes MP-118 MIXED gateway to bring in 4 FXO trunks from the PSTN
* EACH FXO port, I want Asterisk to see as a DIFFERENT trunk. This is so that I can use Flash Op Panel (FOP) to manually seeing incoming and outgoing calls, with their respective DNIS and ANIs, and can also use FOP to redirect them if I like.
WHile I know that on the AudioCodes I could very easily put all the trunks in a hunt group and have Asterisk see them as a single trunk (with 4 channels), this is not what I wish to do at all.
What happens, even though I have separate trunks setup correctly (including with username= set to the SIP User ID that the AudioCodes sends for each port (ie: Automatic Dial setting on AudioCodes)), Asterisk sees these as the calls ALL coming into the same trunk (I believe the last one configured).
Is there ANY way to modify this behavior, without breaking FreePBX? I've seen some workarounds, but they would seem to break the way FreePBX would work with respect to trunks.
This is annoying. Its not affecting call routing (Inbound Routes work), just FOP and reporting.
ALso - at the moment I'm not having the AUdioCodes register the individual ports with Asterisk (ie: AudioCodes sends REGISTER, NOT Asterisk), but if that helps to fix this issue, I'd be happy to do so (in fact I plan on doing this regardless). But I sorta suspect it might not help the matching issue.
Any help you can provide would be GREATLY appreciated. (and BTW, if anyone with an AudioCodes needs to know how to have Asterisk force the AC to select a particular trunk for an outbound route, I've got this working very nicely, took a bit of thought though).
THanks,
Brian
I'm having an issue with Asterisk that, from doing some Googling, appears to be a deficiency in the way that Asterisk matches trunks...
My understanding is that all Asterisk uses to match a trunk for inbound calls is the IP address and perhaps the port of the request. It does not appear to use the SIP user ID sent in the INVITE at all for this (though this of course DOES work for Inbound Routes, just not picking the right trunk).
So here's my dilemma...
* I'm using a single (for now) AudioCodes MP-118 MIXED gateway to bring in 4 FXO trunks from the PSTN
* EACH FXO port, I want Asterisk to see as a DIFFERENT trunk. This is so that I can use Flash Op Panel (FOP) to manually seeing incoming and outgoing calls, with their respective DNIS and ANIs, and can also use FOP to redirect them if I like.
WHile I know that on the AudioCodes I could very easily put all the trunks in a hunt group and have Asterisk see them as a single trunk (with 4 channels), this is not what I wish to do at all.
What happens, even though I have separate trunks setup correctly (including with username= set to the SIP User ID that the AudioCodes sends for each port (ie: Automatic Dial setting on AudioCodes)), Asterisk sees these as the calls ALL coming into the same trunk (I believe the last one configured).
Is there ANY way to modify this behavior, without breaking FreePBX? I've seen some workarounds, but they would seem to break the way FreePBX would work with respect to trunks.
This is annoying. Its not affecting call routing (Inbound Routes work), just FOP and reporting.
ALso - at the moment I'm not having the AUdioCodes register the individual ports with Asterisk (ie: AudioCodes sends REGISTER, NOT Asterisk), but if that helps to fix this issue, I'd be happy to do so (in fact I plan on doing this regardless). But I sorta suspect it might not help the matching issue.
Any help you can provide would be GREATLY appreciated. (and BTW, if anyone with an AudioCodes needs to know how to have Asterisk force the AC to select a particular trunk for an outbound route, I've got this working very nicely, took a bit of thought though).
THanks,
Brian