Hello guys,
I'm back, it seems that my efforts weren't enough to get the CPD working, as per the calls are getting hungup after exact 30 seconds, I started to debug the issue and it turns out that calls are getting graded by CPD but after the 30 seconds its sending a Cancel message, so I opened a ticket with sangoma about this problem but it has been a week and have not heard about them(every day I ask them if they have an update but no answer from them) so maybe anyone one of you have had this same issue or can point me to something, the problem is that Vici(Asterisk) its not sending an 200 ACK back to the CPD and because of that the call its getting cancelled by the CPD, here is my trunk configuration on Vici
[mg]
username=xxxxxx
disallow=all
context=trunkinbound
allow=ulaw
type=friend
secret=1234
host=10.0.5.40
qualify=1000
enable-netborder-cpd=true
insecure=port,invite
outboundproxy=10.0.5.35
outboundproxyport=5062
I have the Sangoma Lyra configured on a B2BUA mode, so its the vici --> Sangoma Lyra --> Media Gateway(Asterisk PBX) --> Firewall --> ITSP
This setup used to work when I was using Vicibox 4 with Asterisk 1.4 but for some reason its not working now, here is the call flow
Vicidial Telephony Server: 10.0.5.234:5060
Sangoma Lyra: 10.0.5.35:5062
Asterisk Media Gateway: 10.0.5.40:5060
- Code: Select all
|Time | 10.0.5.234 | 10.0.5.40 |
| | | 10.0.5.35 |
|19.096715| INVITE SDP (g711U telephone-event) | |SIP From: "1001" <sip:1001@10.0.5.234 To:<sip:71XXXXXXXXXX@10.0.5.40;cpd=on
| |(5060) ------------------> (5062) | |
|19.193631| 100 Trying| | |SIP Status
| |(5060) <------------------ (5062) | |
|22.191723| 183 Session Progress | |SIP Status
| |(5060) <------------------ (5062) | |
|28.983934| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|28.984472| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|28.996060| RTP (g711U) | |RTP Num packets:1600 Duration:31.981s SSRC:0x72493C94
| |(12396) <-------------------------------------- (14768) |
|29.092716| RTP (g711U) | |RTP Num packets:21 Duration:0.398s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|29.492697| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|29.492954| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|29.512802| RTP (g711U) | |RTP Num packets:50 Duration:0.977s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|30.506712| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|30.507003| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|30.512723| RTP (g711U) | |RTP Num packets:101 Duration:2.000s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|32.519237| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|32.519489| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|32.532749| RTP (g711U) | |RTP Num packets:200 Duration:3.981s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|36.528133| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|36.528413| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|36.532065| RTP (g711U) | |RTP Num packets:201 Duration:4.000s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|40.537530| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|40.537797| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|40.553601| RTP (g711U) | |RTP Num packets:200 Duration:3.979s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|44.546631| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|44.546851| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|44.550777| RTP (g711U) | |RTP Num packets:185 Duration:3.684s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|48.251210| RTP (telephone-event) DTMF Two 2 |RTP Num packets:8 Duration:0.104s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|48.377018| RTP (g711U) | |RTP Num packets:10 Duration:0.173s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|48.555845| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|48.556083| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|48.572751| RTP (g711U) | |RTP Num packets:200 Duration:3.981s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|52.564630| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|52.564851| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|52.570574| RTP (g711U) | |RTP Num packets:201 Duration:4.002s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|56.573974| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|56.574199| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|56.593295| RTP (g711U) | |RTP Num packets:200 Duration:3.980s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|60.582959| 200 OK SDP (g711U telephone-event) | |SIP Status
| |(5060) <------------------ (5062) | |
|60.583184| ACK | | |SIP Request
| |(5060) --------------------------------------> (5060) |
|60.592910| RTP (g711U) | |RTP Num packets:21 Duration:0.399s SSRC:0x3B877286
| |(12396) --------------------------------------> (14768) |
|60.994317| BYE | | |SIP Request
| |(5060) <------------------ (5062) | |
|60.994719| 200 OK | | |SIP Status
| |(5060) --------------------------------------> (5060) |
|61.497784| BYE | | |SIP Request
| |(5060) <------------------ (5062) | |
|61.498100| 200 OK | | |SIP Status
| |(5060) --------------------------------------> (5060) |
|62.511778| BYE | | |SIP Request
| |(5060) <------------------ (5062) | |
|62.512078| 200 OK | | |SIP Status
| |(5060) --------------------------------------> (5060) |
|64.524129| BYE | | |SIP Request
| |(5060) <------------------ (5062) | |
|64.524482| 200 OK | | |SIP Status
| |(5060) --------------------------------------> (5060) |
If you see the beginning of the call seems fine, but when CPD request the ACK, Vici sends it to the MG instead of sending the ACK to the CPD and that's why the call gets hungedup, at the end of the flow you can see how the CPD sends a BYE Message, any ideas on why this is happening?