Hi all,

I'm new in sipXtapi API programming and I develop an apllication similar to 
sipXezPhone. Now, I'm trying to implement SUBSCRIBE method for receiving the 
states of other user agents. For that purpose, I use the sipxPublisherCreate 
and sipxConfigSubscribe functions, but it doesn't work properly.

    Here is my scenario:
The first user agent (UA1) creates a publishing context calling the 
sipxPublisherCreate function for all subscribers. Then, the second user agent 
(UA2) subscribe for NOTIFY events by calling the sipxConfigSubscribe function.
UA1 receives the SUBSCRIBE message and sends a 202 Accepted response. After 
that, UA1 sends a NOTIFY message to populate his state, but receives a 403 
Forbidden response from the proxy.

    Why I  receive that response message? Why the server won't service my 
request? What am I  doing wrong?

Here is a part from my code:

UA1:
    sipxInitialize(...)
    sipxLineAdd(...)
    sipxLineAddCredential(...)
    sipxLineRegister(...)
    sipxPublisherCreate(&hInst1, &hPublish, "[EMAIL PROTECTED]:5060", "dialog", 
"application/dialog-info+xml", "", 0)

UA2:
    sipxInitialize(...)
     sipxLineAdd(...)
     sipxLineAddCredential(...)
     sipxLineRegister(...)
    sipxConfigSubscribe(&hInst2, hLine2, "sip:[EMAIL PROTECTED]", "dialog", 
"application/dialog-info+xml", CONTACT_NAT_MAPPED, &hSubscribe)

     Can you help me to solve this issue?

Regards,
Renata 
       
---------------------------------
Tonight's top picks. What will you watch tonight? Preview the hottest shows on 
Yahoo! TV.    
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to