Register 2 numbers with the same identify match ip

I have 2 numbers from the provider but they both use the same proxy



when I call number2, the context of number1 is reached. I don’t know what can i do to make asterisk know about these 2 different numbers?

You can’t use an identify match on source address, then. You could try matching based on header[1] or if doing outbound registration then seeing if line support[2] would work. Otherwise you can’t, and they’d have to use the same endpoint to the same context.

[1] asterisk/pjsip.conf.sample at master · asterisk/asterisk · GitHub
[2] The PJSIP Outbound Registration 'line' Option ⋆ Open Source Communications Software | Asterisk Official Site

Thank you!

Line option solved my problem!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.