Wizard does not override registration/client_uri

Hi all,

my sip provider Deutsche Telekom requires an e-mail address as username.

If I write the @ normally I get the following error message:

asterisk  | Jun  8 11:00:57 asterisk[547]: ERROR[579]: res_pjsip_outbound_registration.c:1838 in sip_outbound_registration_regc_alloc: Invalid client URI 'sip:mymail@t-online.de@tel.t-online.de' specified on outbound registration 'itsp:telekom0123456789-reg-0'

Although they are set differently in the wizard:

registration/client_uri = sip:+49123456789@tel.t-online.de

If I write the @ encoded as %40 I get the following error message

asterisk  | Jun  8 10:52:15 asterisk[548]: WARNING[580]: res_pjsip_outbound_registration.c:1372 in handle_registration_response: 403 Forbidden fatal response received from 'sip:tel.t-online.de' on registration attempt to 'sip:myemail%40t-online.de@tel.t-online.de', retrying in '300' seconds

my config is:

;-------------------------------- templates ------------------------------------
[itsp:telekom](!,w_trunk)
remote_hosts = tel.t-online.de
transport = tcp
sends_auth = yes
outbound_auth/username = mymail@t-online.de
outbound_auth/password = mypass
sends_registrations = yes
registration/server_uri = sip:tel.t-online.de
registration/retry_interval = 60
registration/forbidden_retry_interval = 300
registration/expiration = 480
registration/auth_rejection_permanent = false
identify/match = 217.0.0.0/13
endpoint/from_domain = tel.t-online.de
endpoint/allow = !all,g722,alaw

;-------------------------------- sip trunks -----------------------------------

[itsp:telekom_0123456789](itsp:telekom)
registration/contact_user = 0123456789
registration/client_uri = sip:+49123456789@tel.t-online.de

[itsp:telekom_01234567810](itsp:telekom)
registration/contact_user = 01234567810
registration/client_uri = sip:+491234567810@tel.t-online.de

There are other credentials provided by Deutsche Telekom, but they only work via your own DSL line. Here the username is not an e-mail and everything works correctly.

Thank you!

Hi baba,
I don’t know anything about the wizard You are using.

In pjsip.conf this is working for me for provider Deutsche Telekom (only relevant parts shown):

[reg_sip-acc-1]
type = registration
retry_interval = 20
forbidden_retry_interval = 60
fatal_retry_interval = 60
max_retries = 86400
contact_user = 030123456      ; Your phone number, national format
expiration = 600
transport = transport-udp
line = yes
endpoint = sip-acc-1-in
outbound_auth = sip-acc-1
outbound_proxy = sip:tel.t-online.de\;lr
client_uri = sip:030123456@tel.t-online.de
server_uri = sip:tel.t-online.de

[sip-acc-1]
type = aor
contact = sip:030123456@tel.t-online.de
qualify_frequency = 0

[sip-acc-1]
type = identify
endpoint = sip-acc-1-in
match = tel.t-online.de

[sip-acc-1]
type = auth
username = your-mail@t-online.de
password = your-password

Hope this helps,

Have a nice day

Bets regards,
Karsten