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

Brian West brian.west at mac.com
Tue Apr 19 11:47:57 MST 2005


what is your goal?  Maybe if you tell us that we could recommend 
something better.

/b

On Apr 19, 2005, at 9:38 AM, Alf Thomas Nilsen wrote:

> 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
>
>
> _______________________________________________
> 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