PJSIP Invited Auto Answer - NOTIFY Event: talk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If it is not there already you need to add your callback into the cb structure from pjsua_config. 
say on_incoming_notify  then you intialized when you create the user agent to your call back
l

userAgentConfig.cb.on_notify = yourcallback;

then you need to add the code in the stack  i would follow  on_incoming_call  .... 

Hope this helps
Cheers

On Nov 8, 2010, at 8:14 AM, John Poseidon wrote:

> Hi,
> 
> I'm trying to implement an invited auto answer function.
> The SIP server sends NOTIFY Event: talk requests,what I need is to create a callback for the incoming notify requests to catch the talk event ( I'm not sure is one already exists for that purpose ) 
> 
> Here is one example of the received NOTIFY message
> 
> NOTIFY sip:3006 at 192.168.1.1:5060;transport=UDP SIP/2.0
> Via: SIP/2.0/UDP X.X.X.188;rport;branch=z9hG4bK700tpFNvZ6NFg
> Max-Forwards: 70
> From: "John" <sip:3005@192.168.1.3>;tag=2mUvFXt7aFU6e
> To: <sip:3006 at 192.168.1.1:5060;transport=UDP>
> Call-ID: e50172f3-65b2-122e-2faa-001fc6bbc65d
> CSeq: 4265938 NOTIFY
> Contact: <sip:mod_sofia@ X.X.X.188:5060>
> User-Agent: PJSUA
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
> Supported: timer, precondition, path, replaces
> Event: talk
> Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
> Subscription-State: terminated;reason=timeout
> Content-Length: 0
> 
> Any help will be very appreciated
> 
> Thanks!
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

------
Alejandro Orellana
Savant Systems, LLC
770 Main Street
Osterville, Ma. 02655
(508) 683-2547 (W)
(508) 683-2647 (F)
Alejandro.Orellana at savantav.com

Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.





Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this message and its attachments, if any.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101108/59e7fbbc/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux