PJSIP PROXY and forking

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

 



On Tue, Mar 10, 2009 at 6:07 PM, Tim <timjeep at hotmail.com> wrote:

>  Okay, I'm relatively new to PJSIP but I like what I see so far.
>
>
Thanks!


> I've read through all the archives and looked at lots of the sample code
> but am still having trouble with a couple things.  I have created a stateful
> proxy (based on the example provided) because I want to be able to broadcast
> (fork) the INVITE to multiple UAs.
>
> My first question is: How does the PROXY know to broadcast the INVITE?
> Does the original INVITE contain the list of recipients or is this something
> the PROXY must know ahead of time.
>
>
The proxy must know this ahead of time, and usually it's from the
registrar's location database (although it doesn't have to).

My second question is: When the PROXY is sending out multiple INVITEs do you
> create multiple endpoints using (pjsip_endpt_create_request_fwd(),
> pjsip_tsx_create_uac(), pjsip_tsx_create_uas(), etc)?  How does it match up
> the incoming replies with the original INVITE?
>
>
You will create one UAS transaction to handle the incoming INVITE, and one
UAC transaction for each "broadcast". How to match the replies with the
original INVITE is in the application logic (in other words it's up to you
:) ).

cheers
 Benny

I was going to just write some code and see if I could get it to work, but I
> thought maybe I should ask what the RIGHT way to do it is.
>
> thanks...Tim
>
> _______________________________________________
> 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/20090313/0018e1aa/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