I forgot '}', this is the correct

:)

else if( req.method == "BYE" ){

    dlg.reply(req,200,"OK");
    onBye(req);
  }

/* addon for OPTIONS */
else if( req.method == "OPTIONS" ){

   dlg.reply(req,200,"OK");
  /* end */
 }
  else if( req.method == "CANCEL" ){

    dlg.reply(req,200,"OK");
    onCancel();

  } else if( req.method == "INFO" ){

Regards,
Ivan



On Wed, Sep 11, 2013 at 10:43 AM, Ivan Milivojevic <[email protected]>wrote:

> Hi Julian,
>
> I fixed this by adding next few lines in sems/core/AmSession.cpp
>
>   else if( req.method == "BYE" ){
>
>     dlg.reply(req,200,"OK");
>     onBye(req);
>   }
>
> /* addon for OPTIONS */
>
>  }  else if( req.method == "OPTIONS" ){
>
>     dlg.reply(req,200,"OK");
>  /* end */
>
>   else if( req.method == "CANCEL" ){
>
>     dlg.reply(req,200,"OK");
>     onCancel();
>
> and recompiling.
>
> :)
>
> Regards,
> Ivan
>
>
> On Wed, Sep 11, 2013 at 10:15 AM, Julian Santer <[email protected]
> > wrote:
>
>> Hi,
>>
>> I have two Sems 1.4.3 (announcing, redirects, CDR) behind two OpenSIPS.
>> I use the DR module in OpenSIPS, which sends every 30 seconds an OPTIONS
>> to the specified hosts. If the host respond with "200 OK", the host is
>> reachable in the routing of OpenSIPS.
>> My problem now is, that Sems don't respond with "200 OK" but with "404
>> Not found".
>>
>> Here the trace:
>>
>> OpenSIPS                                           Sems
>> 1.2.3.4:5060                                       1.2.3.5:5060
>> |                                                  | <Call><PFrame><Time>
>> |                                                  |
>> | F1 OPTIONS                                       |
>> |>----------------------------**-------------------->|  1 PF:1
>> 15:05:19.7884
>> |                                                  |
>> |                                 Not found 404 F2 |
>> |<----------------------------**--------------------<|  1 PF:2
>> 15:05:19.7889
>>
>> ==============================**==============================**
>> ====================
>>
>>      SIP MESSAGE 1        1.2.3.4:5060(OpenSIPS) -> 1.2.3.5:5060(Sems)
>>      UDP Frame 1        10/Sep/13 15:05:19.7884
>> TimeFromPreviousSipFrame=0.**0000 TimeFromStart=0.0000
>> OPTIONS sip:sems1.test.com SIP/2.0
>> Via: SIP/2.0/UDP 1.2.3.4:5060;branch=**z9hG4bKed0c.4bc9c54.0
>> To: sip:sems1.test.com
>> From: <sip:[email protected]>**;tag=**
>> 65e8ffb57d58208c14c17804698c44**b4-4913
>> CSeq: 10 OPTIONS
>> Call-ID: [email protected]
>> Max-Forwards: 70
>> Content-Length: 0
>> User-Agent: OpenSIPS
>>
>>
>> ==============================**==============================**
>> ====================
>>
>>      SIP MESSAGE 2        1.2.3.5:5060(Sems) -> 1.2.3.4:5060(OpenSIPS)
>>      UDP Frame 2        10/Sep/13 15:05:19.7889
>> TimeFromPreviousSipFrame=0.**0005 TimeFromStart=0.0005
>> SIP/2.0 404 Not found
>> Via: SIP/2.0/UDP 1.2.3.4:5060;branch=**z9hG4bKed0c.4bc9c54.0;**
>> received=1.2.3.4
>> To: sip:sems1.test.com;tag=**580A8BF1-522F190F000C097D-**74709700
>> From: <sip:[email protected]>**;tag=**
>> 65e8ffb57d58208c14c17804698c44**b4-4913
>> CSeq: 10 OPTIONS
>> Call-ID: [email protected]
>> Server: Sip Express Media Server
>> Content-Length: 0
>>
>>
>> ==============================**==============================**
>> ====================
>>
>> In the syslog I see the following error:
>> ERROR: could not find any application matching configured criteria
>>
>> In the sems.conf I set: application = $(apphdr)
>>
>> I think, that I don't have any possibility to set a SIP header.
>>
>> Has someone an idea to solve this issue?
>>
>> Regards,
>> Julian
>>
>> ______________________________**_________________
>> Sems mailing list
>> [email protected]
>> http://lists.iptel.org/**mailman/listinfo/sems<http://lists.iptel.org/mailman/listinfo/sems>
>>
>
>
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to