Hi,
I’m currently looking at making outbound calls from my HMP 4.1 system (running on 64-bit RHEL 7.1) and I can successfully dial numbers where there is no need for authentication. I’m testing against a sip gateway which requires authentication but I can’t seem to make the outbound call work just yet.
I’ve reviewed the various HMP documentation and understand that Authentication information needs to be set up on an IPT virtual board using gc_SetAuthenticationInfo() – I’ve tried to implement this and I have attached a code snippet of my test code that I'm using.
In the code snippet, I obtain boardDev by calling gc_OpenEx on :N_iptB1:P_IP – just so I know that I’m using the correct handle.
When I run the code, the gc_SetAuthenticationInfo appears to be successful but when I then try to make an outbound call, I get back a 401 from the gateway which suggests that the authentication was not successful. I checked the INVITE (for the makecall attempt) and in there I do not see any authentication information in the header – would I expect to see the Authorization digest information here?
I then tried to implement code to send a SIP REGISTER message – but that doesn’t seem to help as I still get the 401 error.
If anyone can provide an assistance or guidance on where I’m going wrong then that would be most appreciated.
Thanks & Regards,
Michael
[View:~/cfs-file.ashx/__key/communityserver-discussions-components-files/7/1030.codesnippet.txt:550:0]