# Help needed with configuration of PJSIP for use with IMS via proxy

**URL:** <https://community.asterisk.org/t/help-needed-with-configuration-of-pjsip-for-use-with-ims-via-proxy/66733>\
**Category:** Asterisk Support\
**Created:** [May 16, 2016, 2:26pm UTC](https://community.asterisk.org/t/help-needed-with-configuration-of-pjsip-for-use-with-ims-via-proxy/66733 "2016-05-16T14:26:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevenA](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@stevenA](https://community.asterisk.org/u/stevenA)\
**Post date:** [May 16, 2016, 2:26pm UTC](https://community.asterisk.org/t/help-needed-with-configuration-of-pjsip-for-use-with-ims-via-proxy/66733/1 "2016-05-16T14:26:55Z")

</div>

Hi, having had issues getting Asterisk working with an IMS trunk using chan-sip, I have been trying to get it working with pjsip and Asterisk 13.9.0 built with bundled pjproject.

I am creating the config via FreePbx, and verifying manually - there appear to be some issues with PJSIP and FreePbx that are not the subject here.

The registration is not being sent out although Asterisk believes it is:

`res_pjsip_outbound_registration.c: No response received from 'sip:ims.mnc010.mcc208.3gppnetwork.org' on registration attempt to 'sip:+3399XXXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org'`

From debug, I see:

`res_pjsip_outbound_registration.c:560 handle_client_registration: Outbound REGISTER attempt 10 to 'sip:ims.mnc010.mcc208.3gppnetwork.org' with client 'sip:+3399XXXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org' [2016-05-16 16:10:46] DEBUG[2538]: pjproject:0 <?>: tsx0x760061a4 Failed to send Request msg REGISTER/cseq=1115 (tdta0x76005138)! err=320053 (DNS "Name Error" (PJLIB_UTIL_EDNS_NXDOMAIN)) [2016-05-16 16:10:46] DEBUG[2538]: res_pjsip_outbound_registration.c:928 sip_outbound_registration_response_cb: Received REGISTER response 502(DNS "Name Error" (PJLIB_UTIL_EDNS_NXDOMAIN)) [2016-05-16 16:10:46] DEBUG[2986]: res_pjsip_outbound_registration.c:785 handle_registration_response: Processing REGISTER response 502 from server 'sip:ims.mnc010.mcc208.3gppnetwork.org' for client 'sip:+3399XXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org'`

The registration has to be via a proxy [internet.p-cscf.sfr.net:5064](http://internet.p-cscf.sfr.net:5064) which Asterisk appears to be ignoring.

To debug, I have used the bundled PJSUA client and successfully registered using the following conf file:

`# Test config file for SFR --id sip:+3399XXXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org --registrar sip:ims.mnc010.mcc208.3gppnetwork.org --realm sfr.fr --username NDI0XXXXXXXXXX.LIBERTALK@sfr.fr --password MYPASSWD --proxy sip:91.68.1.28:5064;lr --use-ims --reg-timeout 3600`

My Asterisk PJSIP endpoint is set up as follows:

`[SFR\_Lys\_PJ]  
type=registration  
transport=0.0.0.0-udp  
outbound\_auth=SFR\_Lys\_PJ  
retry\_interval=60  
max\_retries=10  
expiration=3600  
auth\_rejection\_permanent=yes  
contact\_user=+3399XXXXXXXXXX  
server\_uri=sip:ims.mnc010.mcc208.3gppnetwork.org  
[client\_uri=sip:+3399XXXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org](mailto:client_uri=sip:+3399XXXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org)  
outbound\_proxy=[internet.p-cscf.sfr.net:5064](http://internet.p-cscf.sfr.net:5064);lr

[SFR\_Lys\_PJ]  
type=identify  
endpoint=SFR\_Lys\_PJ  
[match=internet.p-cscf.sfr.net](http://match=internet.p-cscf.sfr.net)

[SFR\_Lys\_PJ]  
type=aor  
qualify\_frequency=60

[SFR\_Lys\_PJ]  
type=endpoint  
transport=0.0.0.0-udp  
context=from-trunk  
disallow=all  
allow=ulaw,alaw,gsm,g726  
aors=SFR\_Lys\_PJ  
outbound\_auth=SFR\_Lys\_PJ  
from\_domain=[ims.mnc010.mcc208.3gppnetwork.org](http://ims.mnc010.mcc208.3gppnetwork.org)  
[from\_user=+3399XXXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org](mailto:from_user=+3399XXXXXXXXXX@ims.mnc010.mcc208.3gppnetwork.org)  
t38\_udptl=no  
t38\_udptl\_ec=none  
fax\_detect=no  
t38\_udptl\_nat=no  
dtmf\_mode=rfc4733

[SFR\_Lys\_PJ]  
type=auth  
auth\_type=userpass  
password=MYPASSWD  
username=NDIXXXXXXXXXX.LIBERTALK@sfr.fr`

Having examined the conf file in detail, I have seen that there is nowhere to declare the --use-ims option, although I believe that the is only used by the app and not the lib.

I would appreciate any pointers on where this config is going wrong, and as to why I am unable to register.

Thanks
