c# - Connecting standalone UCMA application to SIP trunk provider -


i trying make outbound call standalone ucma application sip provider (gamma) authenticates based on connecting ip address. here code trying achieve (lifted straight michael greenlee (http://blog.greenl.ee/2012/06/15/outbound-calls-ucma-lync-server/):

applicationendpointsettings endpointsettings =     new applicationendpointsettings("sip:02037571***@80.229.80.***"); // ext. ip  ...  callestablishoptions options = new callestablishoptions(); options.connectioncontext = new connectioncontext("88.215.61.***", 5060); // gamma ext. ip  conversation conv = new conversation(_endpoint);  audiovideocall avcall = new audiovideocall(conv);  avcall.beginestablish("sip:07709411***@88.215.61.***", options,     ar2 =>     {         try         {             avcall.endestablish(ar2);         }         catch (exception ex)         {             console.writeline(ex);         }     },     null); 

the attempt dial fails gamma returning 403 forbidden-source endpoint lookup failed.

i have compared wireshark traces failed attempt, , of hardware pbx can dial out successfully.

working hardware pbx:

    from: "02037571***"<sip:02037571***@80.229.80.***>;tag=39e432463135364100006c30         sip display info: "02037571***"         sip address: sip:02037571040@80.229.80.***             sip address user part: 02037571***             sip address host part: 80.229.80.***         sip tag: 39e432463135364100006c30     to: <sip:07709411420@88.215.61.***:5060>         sip address: sip:07709411420@88.215.61.***:5060             sip address user part: 07709411***             sip address host part: 88.215.61.***             sip address host port: 5060     contact: <sip:02037571040@80.229.80.***:5060>         contact uri: sip:02037571040@80.229.80.***:5060             contact uri user part: 02037571***             contact uri host part: 80.229.80.***             contact uri host port: 5060 

failing ucma application:

        from: ""<sip:02037571***@80.229.80.***>;epid=c18b8f5c05;tag=be8d09ca4         sip display info: ""         sip address: sip:02037571***@80.229.80.***             sip address user part: 02037571***             sip address host part: 80.229.80.***         sip tag: be8d09ca4     to: <sip:07709411420@88.215.61.***:5060>         sip address: sip:07709411420@88.215.61.***:5060             sip address user part: 07709411***             sip address host part: 88.215.61.***             sip address host port: 5060     contact: <sip:adrianhand49f2.unifybusiness.local:5060;transport=tcp;maddr=172.32.42.62;ms-opaque=260fcc58fdb93b58>;automata;actor="attendant";text;audio;video;image         contact uri: sip:adrianhand49f2.unifybusiness.local:5060;transport=tcp;maddr=172.32.42.62;ms-opaque=260fcc58fdb93b58             contact uri host part: adrianhand49f2.unifybusiness.local             contact uri host port: 5060             contact uri parameter: transport=tcp             contact uri parameter: maddr=172.32.42.62             contact uri parameter: ms-opaque=260fcc58fdb93b58 

as can see, , portions largely similar, contact portion contains particulars of machine , domain rather specified application endpoint, lan ip of machine (maddr=172.32.42.62).

if debug , inspect _endpoint, endpointuri property contains adrianhand49f2.unifybusiness.local string believe reason gamma rejecting attempt make call. property readonly little bit stuck - can me connect sip provider, please? thoughts gratefully received, thank you!

the contact address coming serverplatformsettings parameters (localhost / port).

if change localhost parameter dotted address (or name makes more sense you), should work you, hope.

what don't know how set user of contact uri, i'm not sure matters.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -