I have a carrier, that we are having a difficult resistering with. They are expecting the atuthorization URI="sip: field to have the username in it to register. I have not been able to figure out how to modify this. Below are the samples from their server is seeing.
I’ve tried with the registration string and in other places to no avail. Initially I think we have it right, but maybe they have an issue with the credentials?
The sip.conf documentation gives you some options. You might need to adjust your registration string to include user@domain instead of just the user part.
;----------------------------------------- OUTBOUND SIP REGISTRATIONS ------------------------
; Asterisk can register as a SIP user agent to a SIP proxy (provider)
; Format for the register statement is:
; register => [peer?][transport://]user[@domain][:secret[:authuser]]@host[:port][/extension][~expiry]
;
;
;
; domain is either
; - domain in DNS
; - host name in DNS
; - the name of a peer defined below or in realtime
; The domain is where you register your username, so your SIP uri you are registering to
; is username@domain
Do you have a working example of registration to this provider (on another PBX, device, softphone, SIP app, etc.)? If so, take a close look at the outbound REGISTER request.
If the username is indeed required in the request line, I suggest you try setting it up as a pjsip trunk; just put
I thought that was the case, I could see the username in the the authorization request through wireshark. Formatted as you specified, was what I was seeing. It turns out the carrier’s tech’s were incorrect… Although it was specified that way in the register string, which I corrected from what they told me.
I did have to correct the register strings they provided, and they were actually blcoking the registration for some reason. It Now looks great!