[asterisk-bugs] [JIRA] (ASTERISK-29131) Was using autodomain in sip.conf, now in pjsip how do I direct calls to a context by domain name when they come from the same location..

Jake Corcoran (JIRA) noreply at issues.asterisk.org
Fri Oct 16 10:10:36 CDT 2020


Jake Corcoran created ASTERISK-29131:
----------------------------------------

             Summary: Was using autodomain in sip.conf, now in pjsip how do I direct calls to a context by domain name when they come from the same location..
                 Key: ASTERISK-29131
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29131
             Project: Asterisk
          Issue Type: Information Request
      Security Level: None
          Components: Core/Configuration
    Affects Versions: 16.12.0
            Reporter: Jake Corcoran
            Severity: Minor


In sip.conf I used to use:

[general]
context = sip-in
bindport = 5060
bindaddr = x.x.x.x

;sip domain settings
autodomain = yes
domain = sip1.domain.com,sip1-in
domain = sip2.domain.com,sip2-in

However, in PJSIP I can't understand how to do this.  Calls come through one endpoint with one IP.  Do I create multiple endpoints for this using a different "match" in the identify sections and work with it as though its more than just one endpoint with different set contexts for each?  Must I handle it in the dialplan (which I don't want to do)?

I might be overlooking something really simple, as I'm very new to this PJSIP.  Any help, ideas, or advice would be greatly appreciated.  Thanks everyone who reads this!!



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list