[asterisk-users] Connecting 2 asterisks, one with PJSIP and other SIP returning 401

Joshua Colp jcolp at digium.com
Fri Apr 18 08:46:24 CDT 2014


Gervasio Marchand Cassataro wrote:
> I know I promised it... but... I FIGURED IT OUT!!!
>
> So, I'll just reply so that the next one with this issue can find this
>
> The only bit of information was using fromuser instead of defaultuser...
> that only thing did the trick... so
>
> [vpsserver]
> type=friend
> host=vpsserver.domain.com <http://vpsserver.domain.com>
> context=inbound
> fromuser=myuser
> secret=mypass
>
> on the client's sip.conf did the trick

I don't know why I didn't see this earlier but yes, the currently 
available endpoint identifiers do not include a mechanism to match based 
on the information a device may have registered with to an AOR. As 
you've figured out using fromuser does allow the user endpoint 
identifier to find the endpoint and then it works happily.

Cheers,

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list