Register auth in pjsip

Hello,
I’m trying to change sip register into pjsip.

This was working in SIP:

register => 123456789@my.telco.com:P@ssw0rd:authuser@my.telco.com
;register => [peer?][transport://]user[@domain][:secret[:authuser]]@host[:port][/extension][~expiry]

But with PJSIP what is an equivalent to authuser?

[telco]
type=wizard
remote_hosts=my.telco.com:5060
endpoint/context=from-pstn
endpoint/allow=!all,ulaw,alaw,g722
sends_registrations=yes
accepts_registrations=no
sends_auth=yes
accepts_auth=no
outbound_auth/username=123456789 ;this is OK
outbound_auth/password=P@ssw0rd
endpoint/from_user=123456789
aor/contact=sip:123456789@my.telco.com:5060
endpoint/callerid=123456789

The auth_user would be “outbound_auth/username”.

But my “outbound_auth/username” is 123456789 and it is correct and carrier confirmed this. I need also to provide authuser somewhere which is different. It was possible with sip but with pjsip it is not documented.

That is the username used for authentication in the authentication process. Are you actually wanting to register instead to a different AOR? You could also compare the REGISTER requests between chan_sip and chan_pjsip and based on that I may be able to answer more clearly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.