Benoit Panizzon
2017-Sep-08 13:38 UTC
[asterisk-users] Now to set contact username and from username idependently
Hello Finally I figured out, how our SBC does matches invites to registrations with the Contact header. But now I run into a Problem: How do I set the contact header of an invite different to the From header? INVITE sip:called-id at URI SIP/2.0 Via: SIP/2.0/UDP IP:5060;branch=z9hG4bK495c70cc Max-Forwards: 70 From: "SBC TEST" <sip:callerID at IP>;tag=as2c330ac5 To: <sip:called_id at URI> Contact: <sip:user-from-reg at IP:5060> in my [sip-provider] type=peer ;fromuser=user-from-reg ;username=user-from-reg secret=hidden host=URI outboundproxy=IP of Proxy As soon as I set either fromuser or username, this also overwrites the callerID and then of course the CallerID which should be sent over the trunk is not correct anymore. And of course because the CallerID can be different for each call (it's a trunk) I cannot set it with CallerID= in the peer definition. Am I missing something? -Beno?t Panizzon- -- I m p r o W a r e A G - Leiter Commerce Kunden ______________________________________________________ Zurlindenstrasse 29 Tel +41 61 826 93 00 CH-4133 Pratteln Fax +41 61 826 93 01 Schweiz Web http://www.imp.ch ______________________________________________________
Jean Aunis
2017-Sep-08 13:48 UTC
[asterisk-users] Now to set contact username and from username idependently
Hello, Maybe you can try "defaultuser". I'm not sure it will be used in the "Contact" header, but it will be the one used for authentication. Regards Jean Aunis Le 08/09/2017 ? 15:38, Benoit Panizzon a ?crit :> Hello > > Finally I figured out, how our SBC does matches invites to > registrations with the Contact header. > > But now I run into a Problem: > > How do I set the contact header of an invite different to the From > header? > > > INVITE sip:called-id at URI SIP/2.0 > Via: SIP/2.0/UDP IP:5060;branch=z9hG4bK495c70cc > Max-Forwards: 70 > From: "SBC TEST" <sip:callerID at IP>;tag=as2c330ac5 > To: <sip:called_id at URI> > Contact: <sip:user-from-reg at IP:5060> > > in my > > [sip-provider] > type=peer > ;fromuser=user-from-reg > ;username=user-from-reg > secret=hidden > host=URI > outboundproxy=IP of Proxy > > As soon as I set either fromuser or username, this also overwrites the > callerID and then of course the CallerID which should be sent over the > trunk is not correct anymore. > > And of course because the CallerID can be different for each call (it's > a trunk) I cannot set it with CallerID= in the peer definition. > > Am I missing something? > > -Beno?t Panizzon-