cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
685
Views
0
Helpful
0
Replies

SIP-Profiles execution

goranpilat
Level 3
Level 3

Hi,

 

I am having some trouble with implementing SIP profiles on CUBE. I am using them in order to populate SIP message's diversion header with B-Phone# in forwarding (A->B->C) process. I am using info I got form MS Lync in History-INFO header. This works fine for the calls that really contain HISTORY-INFO (i.e forwarded calls). However If I use same dial-peers for regular calls (ones not containing HISTORY-INFO), I mess up SIP message with the SIP profile, and send malformed packet to the provider, which is then refused. Problem is, up until now I could separate forwarded calls from regular ones with dial peers, and would apply SIP-profile only on forwarded ones. Now my CUBE configuration got another peer and it is not possible anymore to separate the calls that way, So my question is, how can I separate calls which need SIP Profile and the ones that don't, and I can't do it with dial-peers...

 

Thanks a lot

 

voice class sip-profiles 1
request INVITE peer-header sip REFERRED-BY copy "sip:(.*);ext" u01
request INVITE peer-header sip HISTORY-INFO copy "sip:(.*);ext" u02
request INVITE sip-header Diversion add "Diversion:"
request INVITE sip-header Diversion modify ".*" "Diversion: <sip:\u01\u02@192.168.116.2>"
request INVITE sip-header Diversion modify "\u0." ""
!
!
voice class sip-copylist 1
sip-header REFERRED-BY
sip-header HISTORY-INFO

 

dial-peer voice 2201 voip
description !!!Incoming Voip Dial-peer from MS Lync - transfer!!!
translation-profile incoming addhash
preference 1
answer-address +385T
session protocol sipv2
voice-class codec 1
voice-class sip copy-list 1
dtmf-relay rtp-nte
fax protocol pass-through g711alaw
no vad

 

dial-peer voice 1201 voip
description !!!Outgoing Voip Dial-peer - transfer!!!
translation-profile outgoing removehash
preference 1
destination-pattern ###+.T
session protocol sipv2
session target ipv4:X.X.X.X
voice-class codec 1
voice-class sip profiles 1
dtmf-relay rtp-nte
fax-relay ecm disable
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
no vad

0 Replies 0