Help with SIP Trunk on Cloudstack

Created two SIP Trunk with the provider according to Generic SIP trunk template
Trunks register with the provider (no problem here):
Sample username and domain:
username: demouser
domain: demodomain

Host dnsmgr Username Refresh State Reg.Time
x,x,x.69:5060 N demouser 525 Registered Tue, 24 Apr 2018 18:00:07
x.x.x.112:5060 N demouser 500 Registered Tue, 24 Apr 2018 18:02:55

Cloudstack instance is able to receive calls:
– Local/ext-7@mdc_localdevice-2-000000b8;1 answered Local/ext@mdc_locallocation-2-000000b5;2
– Local/ext@mdc_locallocation-2-000000b5;1 answered Local/421@mdc_diallocation-000000b4;2

I’m unable, however, to make calls to pstn:
– Called SIP/mdc_trunk_conf-48/+15555559898
[Apr 25 05:00:15] NOTICE[29887][C-00000081]: chan_sip.c:22901 handle_response_invite: Failed to authenticate on INVITE to ‘“Real Name” sip:+15555559898@instancename;tag=as21550c6d’

My provider on 407 challenge requires me to send username (demouser), registered domain name (demodomain) and remote password with outgoing call but from what I see above that it is phone number and instance name (sip:+15555559898@instancename) is send on INVITE.

How do I correct this problem?

Hello @usiptech,

you could add


in the options of the account(s) , that should solve it.

Best regards,