[SR-Users] sip6 BYE

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 10 09:56:55 CET 2017


Hello,

there is a config issue with the Contact alias. It has to be done only
on the Kamailio proxy that is first receiving the SIP message (request
or reply) -- in other words, when Kamailio is the first node after the
end point.

So Kamailio1 has to do set_contact_alias() only for messages coming from
Asterisk and handle_ruri_alias() only for requests going to Asterisk;
Kamailio2 has to do set_contact_alias() only for messages coming from
UAC (not from Kamailio1) and handle_ruri_alias() only for requests going
to UAC (not to Kamailio1) .

Otherwise, you can create a local loop in a proxy.

As a simpler solution, it may work (not sure though) doing
set_contact_alias()/handle_ruri_alias() on both Kamailios, but it will
result on double alias uri parm.

Also, if there is no NAT between Asterisk and Kamailio1, then there is
no need to do contact aliasing at all on Kamailio1.

Also,
Cheers,
Daniel

On 10/03/2017 03:58, Mikhail Khomenkov wrote:
> Hi 
>
> i have some kind of issue with BYE
> Asterisk send invite to Kamailio1, Kamailio1 proxy to Kamailio2,
> Kamailio2 found UAC and send invite to it.
> UAC response 200OK -> Kamailio2 -> Kamailio1 -> Asterisk.
> Session established.
>
> But then UAC sending BYE to Kamailio2 , Kamailio2 sending it to
> Kamailio1 and Kamailio1 response 404 not here (not sending BYE to
> Asterisk)
>
> Any suggestions?
>
>
>
>
> 54.236.97.30                               107.21.18.6                
>                    10.0.0.68                                          
>    108.41.170.187
> Asterisk                                  Kamailio1                  
>           Kamailio2                                     UAC
>     |             invite                        |                    
>                        |                                                 |
>     |--------------------------------> |           invite            
>            |                                                 |
>     |                                            
>  |------------------------------->|                 invite            
>           |
>     |                                              |                  
>                          |----------------------------------->|
>     |                                              |                  
>                          |                     200OK                 |
>     |                                              |             200OK
>                     |<-----------------------------------|
>     |             200OK                     
> |<-------------------------------|                                    
>               |
>     |<--------------------------------|                              
>              |                                                   |
>
>                                                                      
>                                                BYE
>     |                                              |           BYE    
>                      |<-----------------------------------|
>     |                                            
>  |<-------------------------------|                                  
>               |
>     |                                              |        404 Not
> here              |                                                 |
>     |                                            
>  |------------------------------->|              404 Not here        
>     |
>     |                                              |                  
>                          |----------------------------------->|
>
>
>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170310/75865af5/attachment.html>


More information about the sr-users mailing list