Hello,<br>I have been using wireshark to capture some traffic. I'm talking when the PBX sends OK (200) connection accepted. 3Com PBX sends "TZ=7200\n" (an much more things) in a SIP packet message body but Asterisk PBX sends packets without message body, it only sends variables in the message header. So I want Asterisk to send packets with a message body and its proper content.<br>
<br>I've been looking for, sure spending my time. Modifying the source code is not very realistic, but i have to try. The file channels/chan_sip.c seems to have interesting functions like add_header(), add_tcodec_to_sdp(), handle_response_invite(), handle_response(), also struct cfalias. I know C programming but it's really hard to understand the code.<br>
<br>Should I ask in the developers list?<br><br>have a nice day<br><br><br><br><div class="gmail_quote">2011/8/27 Jaime Lozano <span dir="ltr"><<a href="mailto:jaimelozano09@gmail.com">jaimelozano09@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div class="im">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Olle E. Johansson</b> <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span><br>
Date: 2011/8/26<br>
Subject: Re: [asterisk-users] Wanted a modified SIP message body<br>To: Asterisk Users Mailing List - Non-Commercial Discussion <<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>><br>
<br><br><br></div><div><div></div><div class="h5">
26 aug 2011 kl. 14:06 skrev Jaime Lozano:<br>
<div><br>
> Hello,<br>
> In which file do I use SIPAddHeader()?<br>
> Please consider that the packet goes from the PBX to the telephone, and what I want is not a header because the "TZ: 7200\n" is in the *message body* not in the *message header*.<br>
<br>
</div>That's no longer a SIP header, it's part of the SDP you want to change. You can't do that without changing the source code.<br>
<font color="#888888"><br>
/O<br>
</font><div><div></div><div>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></div></div></div><br>
</blockquote></div><br>