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!