You can, however, specify an IP address and port in the various places. You didn’t state completely what you did when you attempted to do so or provide the new configuration.
[registration]
auth_rejection_permanent=yes
[transport-udp-nat]
bind=0.0.0.0
external_media_address=XXX.XXX.XXX.XXX
external_signaling_address=XXX.XXX.XXX.XXX
local_net=192.168.1.0/24
protocol=udp
type=transport
[transport-udp-ipv6]
type=transport
protocol=udp
bind=::
; --------- ;
; Templates ;
; --------- ;
[my_codecs](!)
disallow=all
allow=alaw
allow=ulaw
allow=gsm
allow=g722
[aor_dynamic](!)
max_contacts=9999
remove_existing=yes
type=aor
[auth_userpass](!)
auth_type=userpass
type=auth
[endpoint_internal](!,my_codecs)
context=outgoing
direct_media=no
force_rport=yes
from_domain=ims.mnc010.mcc208.3gppnetwork.org
ice_support=yes
language=fr
;;rewrite_contact=yes
rtp_symmetric=yes
transport=transport-udp-ipv6
transport=transport-udp-nat
type=endpoint
; --------- ;
; Trunk SFR ;
; --------- ;
[sfr]
contact=sip:+33XXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org
outbound_proxy=92.91.129.136:5062
max_contacts=9999
type=aor
[sfr_auth]
auth_type=userpass
password=PPPPPPPPPPPPPPPP
realm=sfr.fr
username=NDI0XXXXXXXXX.AQT.THD@sfr.fr
type=auth
[sfr](my_codecs)
100rel=yes
aors=sfr
context=incoming
direct_media=no
force_rport=yes
from_domain=ims.mnc010.mcc208.3gppnetwork.org
from_user=+33XXXXXXXXX
ice_support=yes
outbound_auth=sfr_auth
outbound_proxy=92.91.129.136:5062
rewrite_contact=yes
rtp_symmetric=yes
transport=transport-udp-nat
type=endpoint
[sfr]
endpoint=sfr
type=identify
match=92.91.129.136:5062
[sfr]
client_uri=sip:+33XXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org
server_uri=sip:+33XXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org
contact_user=+33XXXXXXXXX
outbound_auth=sfr_auth
outbound_proxy=92.91.129.136:5062
transport=transport-udp-nat
type=registration
; ------------------- ;
; Phone Line 'Zoiper' ;
; ------------------- ;
[zoiper](aor_dynamic)
[zoiper](auth_userpass)
password=zoiper
username=zoiper
[zoiper](endpoint_internal)
auth=zoiper
aors=zoiper
callerid=zoiper
What do you mean by “no communication”?
Do you mean that INVITEs do not arrive, or that call setup works but there is
no audio?
Antony.
What solution should I adopt? I’m ready to reconfigure everything.
This is invalid and should be:
outbound_proxy=sip:92.91.129.136:5062\;lr
@ Pooh: no sound and communication cut off after 32 seconds.
“No sound and communication cut off after 32 seconds.”
That sounds very much like an external router’s NAT configuration problem to
me.
RTP is not getting passed back in to Asterisk (behind NAT) and therefore
Asterisk is dropping the call. You need to ensure that any external router is
allowing UDP packets (usually in the port range 10000 - 20000) through in both
directions.
Antony.
I have some problems with the “outbound_proxy” option. What is “;lr” used for?
Before I put “outbound_proxy=sip:residential.p-cscf.sfr.net;lr”.
I modified by putting “outbound_proxy=sip:92.91.129.136:5062;lr” and I did the test twelve times with success. It works !
If this IP address is under maintenance, I no longer have telephone communication.
How do I go about adding the other proxy servers (mitry, corbas,trapdoors)? That makes 15 ipv4 addresses and 15 ipv6 addresses in order to keep the same functionality of the proxy server?
\;lr
Enables SIP loose routing which causes the SIP request URI to not get rewritten which is generally required for all environments that are using a SIP outbound proxy.
Thank you for the answer. ![]()
Why does this entry work “outbound_proxy=sip:92.91.129.136:5062\;lr” and not this one “outbound_proxy=sip:residential.p-cscf.sfr.net\;lr”?
The first one doesn’t put the “;lr” because without "" it is considered a comment and thus is ignored. The second one would actually do loose routing. Results in different signalling, which can then have an impact on things. Also results in a DNS resolution occurring.
I forgot to double the antislash I corrected my last post.
Where should I declare in Asterisk the SFR DNS servers?
I don’t think that would solve anything, because the behavior you’re asking for is against the SIP specification and is against the way that PJSIP DNS is implemented. Changing the DNS servers doesn’t change that fact.
I don’t know if SFR respects the SIP specifications. It seems to work with the Gigaset C530 IP (VOIP/SIP phone). I test with Zoiper 5 before buying it.
Can my pjsip.conf file be improved?
It definitely doesn’t, for the reasons I’ve already given.
Thank you all for your participation.
I consider the issue resolved.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.