[Asterisk-Dev] Identifying associated channel in rtp.c

Alf Thomas Nilsen a-t-n at online.no
Tue Apr 19 07:38:40 MST 2005


So if I'd like to do a quick and dirty modification I could modify the
ast_rtp_write() method to take a third parameter (the retrieved variable),
and retrieve the variable from within sip_write() by calling:

myvar = atoi(pbx_builtin_getvar_helper(p->owner,"myvar"));

I would then pass the variable as a parameter in the ast_rtp_write() call
inside sip_write(). The variable should then be available from within
ast_rtp_write() in rtp.c.

I do, however, acknowledge that this is a really "ugly" modification, and
I'm somewhat shameful to propose such a "solution" to this problem.

Best regards,
Alf Thomas Nilsen

-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Kevin P. Fleming
Sent: 19. april 2005 15:32
To: Asterisk Developers Mailing List
Subject: Re: [Asterisk-Dev] Identifying associated channel in rtp.c

If you want to do this, you'll need to retrieve the channel variable in 
chan_sip (or whatever RTP-using channel you are working with), then pass 
the value into the RTP layer via some other means.
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev





More information about the asterisk-dev mailing list