simple UA and transmit data.

CL
cedric leveque
Tue, Sep 16, 2008 3:13 PM

Hi,

I'm updating the simpleUA example to be able to manage SIP Early Message.

I need too add an header on the PRACK message generate automatically by INVITE session intiated with PJSIP_INV_REQUIRE_100REL option.

So I have added a function on_tx_response and set it in the pjsip_module. Compilation is ok, but during execution, when PJSIP gnerate the first response (183), an error occurs :

16:58:12.010  dlg0x9498fbc Initial answer Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010  inv0x9498fbc Sending Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010  dlg0x9498fbc Reliable response Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) created 16:58:12.010  tsx0x949e2ac Sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) in state Trying 16:58:12.010  tsx0x949e2ac Error sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0): Err=1 (Unknown error 1) 16:58:12.010  sip_resolve.c Target '127.0.0.1:5065' type=UDP resolved to '127.0.0.1:5065' type=UDP (UDP transport) 16:58:12.010  tsx0x949e2ac Failed to send Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0)! err=1 (Unknown error 1) 16:58:12.010  tsx0x949e2ac State changed from Trying to Terminated, event=TRANSPORT_ERROR 16:58:12.010  dlg0x9498fbc Transaction tsx0x949e2ac state changed to Terminated 16:58:12.010    simpleua.c Call DISCONNECTED [reason=503 (Service Unavailable)] 16:58:12.010    simpleua.c One call completed, application quitting...simpleua_early: ../src/pjsip-ua/sip_100rel.c:353: pjsip_100rel_end_session: Assertion `pj_list_empty(&dd->uas_state->tx_data_list)' failed.Abandon

But my function is very simple (just trying add it before do anything else) :

static pj_status_t on_tx_response( pjsip_tx_data *tdata ){
return PJ_TRUE;}

I don't uderstand why.

Thanks by advance for the responses.

Cédric.


Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, passez à Hotmail ! C'est gratuit !
http://www.windowslive.fr/hotmail/default.asp

Hi, I'm updating the simpleUA example to be able to manage SIP Early Message. I need too add an header on the PRACK message generate automatically by INVITE session intiated with PJSIP_INV_REQUIRE_100REL option. So I have added a function on_tx_response and set it in the pjsip_module. Compilation is ok, but during execution, when PJSIP gnerate the first response (183), an error occurs : 16:58:12.010 dlg0x9498fbc Initial answer Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010 inv0x9498fbc Sending Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010 dlg0x9498fbc Reliable response Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) created 16:58:12.010 tsx0x949e2ac Sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) in state Trying 16:58:12.010 tsx0x949e2ac Error sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0): Err=1 (Unknown error 1) 16:58:12.010 sip_resolve.c Target '127.0.0.1:5065' type=UDP resolved to '127.0.0.1:5065' type=UDP (UDP transport) 16:58:12.010 tsx0x949e2ac Failed to send Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0)! err=1 (Unknown error 1) 16:58:12.010 tsx0x949e2ac State changed from Trying to Terminated, event=TRANSPORT_ERROR 16:58:12.010 dlg0x9498fbc Transaction tsx0x949e2ac state changed to Terminated 16:58:12.010 simpleua.c Call DISCONNECTED [reason=503 (Service Unavailable)] 16:58:12.010 simpleua.c One call completed, application quitting...simpleua_early: ../src/pjsip-ua/sip_100rel.c:353: pjsip_100rel_end_session: Assertion `pj_list_empty(&dd->uas_state->tx_data_list)' failed.Abandon But my function is very simple (just trying add it before do anything else) : static pj_status_t on_tx_response( pjsip_tx_data *tdata ){ return PJ_TRUE;} I don't uderstand why. Thanks by advance for the responses. Cédric. _________________________________________________________________ Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, passez à Hotmail ! C'est gratuit ! http://www.windowslive.fr/hotmail/default.asp
BP
Benny Prijono
Sun, Sep 21, 2008 10:59 PM

On Tue, Sep 16, 2008 at 4:13 PM, cedric leveque
levequecedric@hotmail.comwrote:

Hi,

I'm updating the simpleUA example to be able to manage SIP Early Message.

I need too add an header on the PRACK message generate automatically by
INVITE session intiated with PJSIP_INV_REQUIRE_100REL option.

So I have added a function on_tx_response and set it in the pjsip_module.
Compilation is ok, but during execution, when PJSIP gnerate the first
response (183), an error occurs :

  • 16:58:12.010  dlg0x9498fbc Initial answer Response msg
    183/INVITE/cseq=14875 (tdta0x949fe80)
    16:58:12.010  inv0x9498fbc Sending Response msg 183/INVITE/cseq=14875
    (tdta0x949fe80)
    16:58:12.010  dlg0x9498fbc Reliable response Response msg
    183/INVITE/cseq=14875 (tdta0x94a50b0) created
    16:58:12.010  tsx0x949e2ac Sending Response msg 183/INVITE/cseq=14875
    (tdta0x94a50b0) in state Trying
    16:58:12.010  tsx0x949e2ac Error sending Response msg
    183/INVITE/cseq=14875 (tdta0x94a50b0): Err=1 (Unknown error 1)
    16:58:12.010  sip_resolve.c Target '127.0.0.1:5065' type=UDP resolved to
    '127.0.0.1:5065' type=UDP (UDP transport)
    16:58:12.010  tsx0x949e2ac Failed to send Response msg
    183/INVITE/cseq=14875 (tdta0x94a50b0)! err=1 (Unknown error 1)
    16:58:12.010  tsx0x949e2ac State changed from Trying to Terminated,
    event=TRANSPORT_ERROR
    16:58:12.010  dlg0x9498fbc Transaction tsx0x949e2ac state changed to
    Terminated
    16:58:12.010    simpleua.c Call DISCONNECTED [reason=503 (Service
    Unavailable)]
    16:58:12.010    simpleua.c One call completed, application quitting...
    simpleua_early: ../src/pjsip-ua/sip_100rel.c:353: pjsip_100rel_end_session:
    Assertion `pj_list_empty(&dd->uas_state->tx_data_list)' failed.
    Abandon*

But my function is very simple (just trying add it before do anything else)
:

*static pj_status_t on_tx_response( pjsip_tx_data tdata )
{

  • return PJ_TRUE;
    }*
    **
    I don't uderstand why.

You need to return PJ_SUCCESS and not PJ_TRUE (it's pj_status_t and not
pj_bool_t).

-benny

Thanks by advance for the responses.

Cédric.


Qui vous permet d'enregistrer la TV sur votre PC et lire vos emails sur
votre mobile ? la réponse en vidéo la réponse en vidéohttp://www.microsoft.com/france/windows/bts/default.mspx


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

On Tue, Sep 16, 2008 at 4:13 PM, cedric leveque <levequecedric@hotmail.com>wrote: > Hi, > > I'm updating the simpleUA example to be able to manage SIP Early Message. > > I need too add an header on the PRACK message generate automatically by > INVITE session intiated with PJSIP_INV_REQUIRE_100REL option. > > So I have added a function on_tx_response and set it in the pjsip_module. > Compilation is ok, but during execution, when PJSIP gnerate the first > response (183), an error occurs : > > * 16:58:12.010 dlg0x9498fbc Initial answer Response msg > 183/INVITE/cseq=14875 (tdta0x949fe80) > 16:58:12.010 inv0x9498fbc Sending Response msg 183/INVITE/cseq=14875 > (tdta0x949fe80) > 16:58:12.010 dlg0x9498fbc Reliable response Response msg > 183/INVITE/cseq=14875 (tdta0x94a50b0) created > 16:58:12.010 tsx0x949e2ac Sending Response msg 183/INVITE/cseq=14875 > (tdta0x94a50b0) in state Trying > 16:58:12.010 tsx0x949e2ac Error sending Response msg > 183/INVITE/cseq=14875 (tdta0x94a50b0): Err=1 (Unknown error 1) > 16:58:12.010 sip_resolve.c Target '127.0.0.1:5065' type=UDP resolved to > '127.0.0.1:5065' type=UDP (UDP transport) > 16:58:12.010 tsx0x949e2ac Failed to send Response msg > 183/INVITE/cseq=14875 (tdta0x94a50b0)! err=1 (Unknown error 1) > 16:58:12.010 tsx0x949e2ac State changed from Trying to Terminated, > event=TRANSPORT_ERROR > 16:58:12.010 dlg0x9498fbc Transaction tsx0x949e2ac state changed to > Terminated > 16:58:12.010 simpleua.c Call DISCONNECTED [reason=503 (Service > Unavailable)] > 16:58:12.010 simpleua.c One call completed, application quitting... > simpleua_early: ../src/pjsip-ua/sip_100rel.c:353: pjsip_100rel_end_session: > Assertion `pj_list_empty(&dd->uas_state->tx_data_list)' failed. > Abandon* > > > > But my function is very simple (just trying add it before do anything else) > : > > *static pj_status_t on_tx_response( pjsip_tx_data *tdata ) > {* > * return PJ_TRUE; > }* > ** > I don't uderstand why. > > You need to return PJ_SUCCESS and not PJ_TRUE (it's pj_status_t and not pj_bool_t). -benny > Thanks by advance for the responses. > > Cédric. > > ------------------------------ > Qui vous permet d'enregistrer la TV sur votre PC et lire vos emails sur > votre mobile ? la réponse en vidéo la réponse en vidéo<http://www.microsoft.com/france/windows/bts/default.mspx> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
CL
cedric leveque
Tue, Sep 23, 2008 12:54 PM

Thanks,

I'll try it soon.

Date: Sun, 21 Sep 2008 23:59:19 +0100From: bennylp@pjsip.orgTo: pjsip@lists.pjsip.orgSubject: Re: [pjsip] simple UA and transmit data.
On Tue, Sep 16, 2008 at 4:13 PM, cedric leveque levequecedric@hotmail.com wrote:

Hi, I'm updating the simpleUA example to be able to manage SIP Early Message. I need too add an header on the PRACK message generate automatically by INVITE session intiated with PJSIP_INV_REQUIRE_100REL option. So I have added a function on_tx_response and set it in the pjsip_module. Compilation is ok, but during execution, when PJSIP gnerate the first response (183), an error occurs :  16:58:12.010  dlg0x9498fbc Initial answer Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010  inv0x9498fbc Sending Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010  dlg0x9498fbc Reliable response Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) created 16:58:12.010  tsx0x949e2ac Sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) in state Trying 16:58:12.010  tsx0x949e2ac Error sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0): Err=1 (Unknown error 1) 16:58:12.010  sip_resolve.c Target '127.0.0.1:5065' type=UDP resolved to '127.0.0.1:5065' type=UDP (UDP transport) 16:58:12.010  tsx0x949e2ac Failed to send Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0)! err=1 (Unknown error 1) 16:58:12.010  tsx0x949e2ac State changed from Trying to Terminated, event=TRANSPORT_ERROR 16:58:12.010  dlg0x9498fbc Transaction tsx0x949e2ac state changed to Terminated 16:58:12.010    simpleua.c Call DISCONNECTED [reason=503 (Service Unavailable)] 16:58:12.010    simpleua.c One call completed, application quitting...simpleua_early: ../src/pjsip-ua/sip_100rel.c:353: pjsip_100rel_end_session: Assertion `pj_list_empty(&dd->uas_state->tx_data_list)' failed.Abandon  But my function is very simple (just trying add it before do anything else) : static pj_status_t on_tx_response( pjsip_tx_data *tdata ){ return PJ_TRUE;} I don't uderstand why.
You need to return PJ_SUCCESS and not PJ_TRUE (it's pj_status_t and not pj_bool_t). -benny

Thanks by advance for the responses. Cédric.

Qui vous permet d'enregistrer la TV sur votre PC et lire vos emails sur votre mobile ? la réponse en vidéo la réponse en vidéo_______________________________________________Visit our blog: http://blog.pjsip.orgpjsip mailing listpjsip@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Installez gratuitement les 20 émôticones Windows Live Messenger les plus fous ! Cliquez ici !
http://www.emoticones-messenger.fr/

Thanks, I'll try it soon. Date: Sun, 21 Sep 2008 23:59:19 +0100From: bennylp@pjsip.orgTo: pjsip@lists.pjsip.orgSubject: Re: [pjsip] simple UA and transmit data. On Tue, Sep 16, 2008 at 4:13 PM, cedric leveque <levequecedric@hotmail.com> wrote: Hi, I'm updating the simpleUA example to be able to manage SIP Early Message. I need too add an header on the PRACK message generate automatically by INVITE session intiated with PJSIP_INV_REQUIRE_100REL option. So I have added a function on_tx_response and set it in the pjsip_module. Compilation is ok, but during execution, when PJSIP gnerate the first response (183), an error occurs : 16:58:12.010 dlg0x9498fbc Initial answer Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010 inv0x9498fbc Sending Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010 dlg0x9498fbc Reliable response Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) created 16:58:12.010 tsx0x949e2ac Sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) in state Trying 16:58:12.010 tsx0x949e2ac Error sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0): Err=1 (Unknown error 1) 16:58:12.010 sip_resolve.c Target '127.0.0.1:5065' type=UDP resolved to '127.0.0.1:5065' type=UDP (UDP transport) 16:58:12.010 tsx0x949e2ac Failed to send Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0)! err=1 (Unknown error 1) 16:58:12.010 tsx0x949e2ac State changed from Trying to Terminated, event=TRANSPORT_ERROR 16:58:12.010 dlg0x9498fbc Transaction tsx0x949e2ac state changed to Terminated 16:58:12.010 simpleua.c Call DISCONNECTED [reason=503 (Service Unavailable)] 16:58:12.010 simpleua.c One call completed, application quitting...simpleua_early: ../src/pjsip-ua/sip_100rel.c:353: pjsip_100rel_end_session: Assertion `pj_list_empty(&dd->uas_state->tx_data_list)' failed.Abandon But my function is very simple (just trying add it before do anything else) : static pj_status_t on_tx_response( pjsip_tx_data *tdata ){ return PJ_TRUE;} I don't uderstand why. You need to return PJ_SUCCESS and not PJ_TRUE (it's pj_status_t and not pj_bool_t). -benny Thanks by advance for the responses. Cédric. Qui vous permet d'enregistrer la TV sur votre PC et lire vos emails sur votre mobile ? la réponse en vidéo la réponse en vidéo_______________________________________________Visit our blog: http://blog.pjsip.orgpjsip mailing listpjsip@lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _________________________________________________________________ Installez gratuitement les 20 émôticones Windows Live Messenger les plus fous ! Cliquez ici ! http://www.emoticones-messenger.fr/