[pjsip] How to generate 302 REDIRECT

Benny Prijono bennylp at pjsip.org
Fri Apr 11 07:27:41 EDT 2008


On Thu, Apr 10, 2008 at 3:50 PM,  <tloginbr-pjsip at yahoo.com.br> wrote:
> Hi guys, how can I generate a 302 redirect message for incoming calls
>  using pjsua? I'm trying to distribute all incoming calls according to
>  the originating number, like send all calls from numbers that begin
>  with 35 to specific uri and calls that begin with 36 to a different
>  uri.

Use pjsua_call_hangup() and put the destination URL in the Contact
header of the pjsua_msg_data.

Cheers
 Benny

>  Thanks in advance,
>
>  Thiago
>




More information about the pjsip mailing list