Cantemir Mihu wrote:
Hello,
10x for the info.
Vadim, I think this function should be included in phApi.h, don't you
think?
Yes,
but i would call it phGetCallCodecs and it should return both (audio and
video) codecs
Does this function handle the actual negotiation:
ph_call_retrieve_payloads(phcall_t *ca, eXosip_event_t *je, int flags) ?
How does the negotiation work?
The first codec that is available for both parties is taken? Does the
order in which codecs are added really matter?
Yes the first codec available for both parties is chosen which impiles
that the order DOES matter
On 2/26/06, * Nguyen* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hello,
1. Call must be dropped. Error code maybe 488.
2. phCall structure have a audio_payload_name attribute. I do guess
something like this in phapi:
MY_DLLEXPORT int getCallAudioCodec(int cid, char* codec, int
codeclen)
{
phcall_t *ca = ph_locate_call_by_cid(cid);
if (!ca)
return -PH_BADCID;
strncpy(codec,ca->audio_payload_name,codeclen);
return 0;
}
3. Dunno :)
On 2/24/06, Cantemir Mihu < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
> Hello,
>
> As far as I know the codec used for a call is negotiated through SDP
> messages.
>
> 1. What happens if the parties do not have the same codec
(extreme case)?
> 2. How can I retrieve the used codec through PhApiWrapper for a
specific
> call? Is there any easy way? Does phApi allow retrieving this info?
> 3. Do you have any info (docs, charts, links) on how this
negotiation is
> handled in phApi/exosip/osip?
>
> Thanks
>
> --
> ----
> Best regards / Mit freundlichen GrĂ¼ssen
> Cantemir Mihu
> _______________________________________________
> Wengophone-devel mailing list
> Wengophone-devel@lists.openwengo.com
<mailto:Wengophone-devel@lists.openwengo.com>
> http://dev.openwengo.com/mailman/listinfo/wengophone-devel
<http://dev.openwengo.com/mailman/listinfo/wengophone-devel>
>
>
--
With best regards,
Nguyen
--
----
Best regards / Mit freundlichen GrĂ¼ssen
Cantemir Mihu
------------------------------------------------------------------------
_______________________________________________
Wengophone-devel mailing list
Wengophone-devel@lists.openwengo.com
http://dev.openwengo.com/mailman/listinfo/wengophone-devel
_______________________________________________
Wengophone-devel mailing list
Wengophone-devel@lists.openwengo.com
http://dev.openwengo.com/mailman/listinfo/wengophone-devel