[OpenSIPS-Users] Pass calls to another realm via gateway
    Iñaki Baz Castillo 
    ibc at aliax.net
       
    Mon Nov  2 13:45:50 CET 2009
    
    
  
El Lunes, 2 de Noviembre de 2009, Alexander escribió:
> subst("/^From: \".+\" (<sip: *[a-zA-Z0-9_\.-]+ at .*>)/From: \1/ig");
I don't like it as a From URI could be a TEL or SIPS URI, and the username 
part can contain other characters as ;.
Also, using < > is NOT required in a FROM URI, so this would fail if From is 
like:
  From: sip:alice at domain.org;tag=qweqweqweqwe
And the space after "From:" is not required so it could also fail.
I would do:
 subst("/^From:(.*)/f: \1/ig");
-- 
Iñaki Baz Castillo <ibc at aliax.net>
    
    
More information about the Users
mailing list