Hi,
I have problems creating a SIP trunk to the SIP server from my asterisk PBX.
I’m running Asterisk 1.8.17 on CentOS.
I have created a SIP trunk towards SIP server from FreePBX Web GUI with following parameters:
SIP server I’m trying to connect to has outbound proxy different from domain (domain required for registration of the trunk is mydomain.com, and proxy to which I must send SIP signalling is proxy.mydomain.com).
Here is configuration of the trunk:
[quote]PEER Details:
username=45622000111
type=friend
secret=mysecret
host=proxy.mydomain.com
realm=mydomain.com
fromdomain=mydomain.com
outboundproxy=proxy.mydomain.com
insecure=invite[/quote]
Registration and incomming calls work ok, but I’m having problem with outgoing calls from Asterisk to server. When I make a call, Asterisk generates following INVITE towards SIP server:
[quote]INVITE sip:45622000144@proxy.mydomain.com SIP/2.0
Via: SIP/2.0/UDP 192.168.1.10:5060;branch=z9hG4bK325ca62b;rport
Max-Forwards: 70
From: “45622000111” sip:45622000111@mydomain.com;tag=as077b9904
To: sip:45622000144@proxy.mydomain.com
Contact: sip:45622000111@192.168.1.10:5060
Call-ID: 15ec57f362ba9199383c47ba67503985@mydomain.com
CSeq: 102 INVITE
User-Agent: FPBX-2.10.1(1.8.17.0)
Date: Thu, 01 Nov 2012 14:36:17 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 315
v=0
o=root 1280424892 1280424892 IN IP4 10.111.253.246
s=Asterisk PBX 1.8.17.0
c=IN IP4 10.111.253.246
t=0 0
m=audio 17300 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv[/quote]
The problem with this INVITE are lines:
“INVITE sip:45622000144@proxy.mydomain.com SIP/2.0” and “To: sip:45622000144@[b]proxy.mydomain.com[/b]”, because SIP server expects these lines to be:
“INVITE sip:45622000144@mydomain.com SIP/2.0” and “To: sip:45622000144@[b]mydomain.com[/b]”.
Asterisk seems to insert a host parameter from the configuration in domain part of the SIP uri.
The correct INVITE would be:
[quote]INVITE sip:45622000144@mydomain.com SIP/2.0
Via: SIP/2.0/UDP 192.168.1.10:5060;branch=z9hG4bK325ca62b;rport
Max-Forwards: 70
From: “45622000111” sip:45622000111@mydomain.com;tag=as077b9904
To: sip:45622000144@mydomain.com
Contact: sip:45622000111@192.168.1.10:5060
Call-ID: 15ec57f362ba9199383c47ba67503985@mydomain.com
CSeq: 102 INVITE
User-Agent: FPBX-2.10.1(1.8.17.0)
Date: Thu, 01 Nov 2012 14:36:17 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 315
v=0
o=root 1280424892 1280424892 IN IP4 10.111.253.246
s=Asterisk PBX 1.8.17.0
c=IN IP4 10.111.253.246
t=0 0
m=audio 17300 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv[/quote]
If I change “host=proxy.mydomain.com” into “host=mydomain.com”, INVITE cannot be sent because domain mydomain.com cannot be resolved by DNS (only proxy.mydomain.com is entered into DNS).
Any suggestions regarding this problem?
Thanks in advance,
ismarj