End to End KeepAlive

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

 



Hi Gang Liu,
i found a code snippet in pjusa for info request, but this code will
send a DTMF string(dtmf-relay). Question, do you know the right "sip-style" to send
the info request without DTMF, for the KeepAlive i think i need a empty request.
It is possible to use another msg_data.content_type?
 What do you think?

thank you
   mark

const pj_str_t SIP_INFO = pj_str("INFO");
03703  pj_str_t digits;


03719                 digits = pj_str(buf);
03720                 for (i=0; i<digits.slen; ++i) {
03721                     pjsua_msg_data msg_data;
03722                     char body[80];
03723 
03724                     pjsua_msg_data_init(&msg_data);
03725                     msg_data.content_type = pj_str("application/dtmf-relay");
03726                     
03727                     pj_ansi_snprintf(body, sizeof(body),
03728                                      "Signal=%c\r\n"
03729                                      "Duration=160",
03730                                      buf[i]);
03731                     msg_data.msg_body = pj_str(body);
03732 
03733                     status = pjsua_call_send_request(current_call, &SIP_INFO, 
03734                                                      &msg_data);







________________________________
Von: Gang Liu <gangban.lau at gmail.com>
An: pjsip list <pjsip at lists.pjsip.org>
Gesendet: Dienstag, den 19. Mai 2009, 15:44:29 Uhr
Betreff: Re: [pjsip] End to End KeepAlive


If both agent are your program, you could use OPTIONS or INFO request to check signal path.
session-timer not supported by pjsip current version.
 
regards,
Gang


On Tue, May 19, 2009 at 3:57 PM, M.S. <hamstiede at yahoo.de> wrote:

Hi,
I have this situation:

SIP-Agent 1  <---> Registrar <-----> SIP Agent 2
 If i kill the connection (cut the network) between Registrar and SIP Agent 2, Agent 1 will
not close the connection.

If it possible to make a simple End - to End Keep Alive.  I tryed REINVITE and UPDATE  for Agent 1
but both will rebuild my media streams (not really good for the voice)

regards 
 
  Mark



_______________________________________________
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


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090519/4de538b7/attachment.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