Hello,Not sure whether this belong in the users list or the dev list, but when in doubt; start with users :-)I am using FreeSWITCH as an SBC, talking to Kamailio on one and and Asterisk on the other, and am seeing some strange behavior when calls are being forked on the Asterisk.Call setup is like this:1. FreeSWITCH receives INVITE from Kamailio2. FreeSWITCH sends INVITE to Asterisk with new Call-ID3. Asterisk forks call, sends out multiple INVITEs back to FreeSWITCH (each with a unique call-id)4. FreeSWITCH sends multiple INVITEs to Kamailio, each with the new Call-ID from step 2.This is causing problems with one of the MGWs behind Kamailio, which is seeing multiple INVITEs to different destinations with the same Call-ID.So, firstly, why is FreeSWITCH reusing call-ids?Secondly, how is it matching up the calls? I can't find anything common in the INVITEs, other than the source number and obviously that the IP sent to and received from is the same.I'm not sure if this is intended behavior or not, but is there a way to have FreeSWITCH not do that?Regards,ÖrnP.S. Here is the sequence of INVITEs. I also have the console log (for a different call) if needed.INVITE sent to FreeSWITCH by Kamailio:INVITE sip:5344446@172.25.200.111:5080 SIP/2.0Record-Route: <sip:172.25.200.101;lr=on>Via: SIP/2.0/UDP 172.25.200.101;branch=z9hG4bK165.08b3b5c4.0Via: SIP/2.0/UDP 172.25.200.121:5080;rport=5080;branch=z9hG4bK9aFD5m2KKerHNMax-Forwards: 16From: "4151502" <sip:4151502@172.25.200.121>;tag=33vB4BmmDtU0BCall-ID: 84b63791-4839-1233-639f-00215e2db0e0CSeq: 73014324 INVITEContact: <sip:mod_sofia@172.25.200.121:5080>User-Agent: FreeSWITCH-mod_sofia/1.2.7Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFYSupported: timer, precondition, path, replacesAllow-Events: talk, hold, conference, referContent-Type: application/sdpContent-Disposition: sessionContent-Length: 229X-FS-Support: update_display,send_infoRemote-Party-ID: "4151502" <sip:4151502@172.25.200.121>;party=calling;screen=yes;privacy=offv=0o=FreeSWITCH 1426681750 1426681751 IN IP4 172.25.200.121s=FreeSWITCHc=IN IP4 172.25.200.121t=0 0m=audio 19026 RTP/AVP 8 101a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -a=ptime:20INVITE sent to Asterisk by FreeSWITCH:INVITE sip:5344446@172.26.0.62:5060 SIP/2.0Via: SIP/2.0/UDP 10.11.12.13;rport;branch=z9hG4bK0N733e7FHv4QFMax-Forwards: 15From: "4151502" <sip:4151502@10.11.12.13>;tag=2BaZj0t076Q9BCall-ID: a7c77ea5-4839-1233-73b9-00215e2c8c90CSeq: 73014353 INVITEContact: <sip:mod_sofia@10.11.12.13:5060>User-Agent: FreeSWITCH-mod_sofia/1.2.12Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBESupported: timer, precondition, path, replacesAllow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, referContent-Type: application/sdpContent-Disposition: sessionContent-Length: 223X-FS-Support: update_display,send_infoRemote-Party-ID: "4151502" <sip:4151502@10.11.12.13>;party=calling;screen=yes;privacy=offv=0o=FreeSWITCH 1426677605 1426677606 IN IP4 10.11.12.13s=FreeSWITCHc=IN IP4 10.11.12.13t=0 0m=audio 23230 RTP/AVP 8 101a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -a=ptime:20First INVITE sent to FreeSWITCH by Asterisk (forked call):INVITE sip:7712552@10.11.12.13 SIP/2.0Via: SIP/2.0/UDP 172.26.0.62:5060;branch=z9hG4bK416db3f1;rportMax-Forwards: 70From: "4151502" <sip:4151502@172.26.0.62>;tag=as24a51ba6To: <sip:7712552@10.11.12.13>Contact: <sip:4151502@172.26.0.62:5060>CSeq: 102 INVITEUser-Agent: Asterisk PBX 1.8.15-cert2Date: Wed, 18 Mar 2015 17:47:11 GMTAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISHSupported: replaces, timerDiversion: <sip:5344446@172.26.0.62>Content-Type: application/sdpContent-Length: 312v=0o=root 693576967 693576967 IN IP4 172.26.0.62s=Asterisk PBX 1.8.15-cert2c=IN IP4 172.26.0.62t=0 0m=audio 30440 RTP/AVP 8 0 9 101a=rtpmap:8 PCMA/8000a=rtpmap:0 PCMU/8000a=rtpmap:9 G722/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16Second INVITE sent to FreeSWITCH by Asterisk (forked call):INVITE sip:6595454@10.11.12.13 SIP/2.0Via: SIP/2.0/UDP 172.26.0.62:5060;branch=z9hG4bK6796aff1;rportMax-Forwards: 70From: "4151502" <sip:4151502@172.26.0.62>;tag=as22f810b0To: <sip:6595454@10.11.12.13>Contact: <sip:4151502@172.26.0.62:5060>CSeq: 102 INVITEUser-Agent: Asterisk PBX 1.8.15-cert2Date: Wed, 18 Mar 2015 17:47:11 GMTAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISHSupported: replaces, timerDiversion: <sip:5344446@172.26.0.62>Content-Type: application/sdpContent-Length: 310v=0o=root 89056081 89056081 IN IP4 172.26.0.62s=Asterisk PBX 1.8.15-cert2c=IN IP4 172.26.0.62t=0 0m=audio 30708 RTP/AVP 8 0 9 101a=rtpmap:8 PCMA/8000a=rtpmap:0 PCMU/8000a=rtpmap:9 G722/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=silenceSupp:off - - - -a=ptime:20a=sendrecvFirst INVITE sent by FreeSWITCH to Kamailio (call forked by Asterisk):INVITE sip:7712552@172.25.200.101 SIP/2.0Via: SIP/2.0/UDP 172.25.200.111:5080;rport;branch=z9hG4bK3jvS9UyXU216HMax-Forwards: 69From: "4151502" <sip:4151502@172.25.200.111>;tag=Z6pSHe2eXSB2pCall-ID: a7d2b58b-4839-1233-73b9-00215e2c8c90CSeq: 73014353 INVITEContact: <sip:mod_sofia@172.25.200.111:5080>User-Agent: FreeSWITCH-mod_sofia/1.2.12Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFYSupported: timer, precondition, path, replacesAllow-Events: talk, hold, conference, referContent-Type: application/sdpContent-Disposition: sessionContent-Length: 209Diversion: <sip:5344446@172.25.200.101>X-FS-Support: update_display,send_infov=0o=FreeSWITCH 1426681031 1426681032 IN IP4 172.25.200.111s=FreeSWITCHc=IN IP4 172.25.200.111t=0 0m=audio 19804 RTP/AVP 8 0 9 101 13a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20Second INVITE sent by FreeSWITCH to Kamailio (call forked by Asterisk):INVITE sip:6595454@172.25.200.101 SIP/2.0Via: SIP/2.0/UDP 172.25.200.111:5080;rport;branch=z9hG4bK4UNjBQF1rBrSDMax-Forwards: 69From: "4151502" <sip:4151502@172.25.200.111>;tag=0FgjK9jjt21mjCall-ID: a7d2dd62-4839-1233-73b9-00215e2c8c90CSeq: 73014353 INVITEContact: <sip:mod_sofia@172.25.200.111:5080>User-Agent: FreeSWITCH-mod_sofia/1.2.12Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFYSupported: timer, precondition, path, replacesAllow-Events: talk, hold, conference, referContent-Type: application/sdpContent-Disposition: sessionContent-Length: 209Diversion: <sip:5344446@172.25.200.101>X-FS-Support: update_display,send_infov=0o=FreeSWITCH 1426669459 1426669460 IN IP4 172.25.200.111s=FreeSWITCHc=IN IP4 172.25.200.111t=0 0m=audio 31376 RTP/AVP 8 0 9 101 13a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Brian West
brian@freeswitch.org

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest