Hello Everyone,

For inbound, I am trying to specify a specific context. Everything
works fine using the IP address, however with domain name
it's not working at all. I tried changing the:

Via: SIP/2.0/UDP test.com, and the
Record-Route: <sip:test.com;lr;did=a1a.4d23bae4>

If I have a peer with the host, fromdomain, and outboundprxy set as
the IP address the correct context is found "context-from-test",
but not using the domain name test.com.

Asterisk still knows that the call is coming from IP address:

chan_sip.c:22081 handle_request_invite: Call from ''
(192.168.2.102:5060) to extension '1001' rejected because extension
not found in context 'internal'.

SIP Trace:

<--- SIP read from UDP:192.168.2.102:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Record-Route: <sip:test.com;lr;did=a1a.4d23bae4>
Via: SIP/2.0/UDP test.com;branch=z9hG4bK9e83.1b0fcd74.0
Via: SIP/2.0/UDP
208.44.220.234:5060;received=208.44.220.234;branch=z9hG4bK6d6940f3;rport=5060
From: "Mike Peer" <sip:[email protected]>;tag=as62765da7
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: DiDXsuPErTecSIP5
Max-Forwards: 69
Remote-Party-ID: "Mike Peer"
<sip:[email protected]>;privacy=off;screen=no
Date: Fri, 16 Dec 2011 04:15:10 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 382

<--- Reliably Transmitting (no NAT) to 192.168.2.102:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP test.com;branch=z9hG4bK9e83.1b0fcd74.0;received=192.168.2.102
Via: SIP/2.0/UDP
208.44.220.234:5060;received=208.44.220.234;branch=z9hG4bK6d6940f3;rport=5060
From: "Mike Peer" <sip:[email protected]>;tag=as62765da7
To: <sip:[email protected]>;tag=as51f932b5
Call-ID: [email protected]
CSeq: 102 INVITE
Server: Asterisk PBX UNKNOWN__and_probably_unsupported
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

I am using OpenSIPS and changed the following:

advertised_address="test.com"
record_route_preset("test.com");

Again, if I create a peer, and set the host, fromdomain, and
outboundprxy as 192.168.2.102, and everything woks fine, but I would
like to use
the domain name example.com.

Thanks in Advance,

Nick.

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to