VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
pskoul at gmail.com Guest
|
Posted: Sun Jan 31, 2016 1:05 pm Post subject: [Freeswitch-users] extra header account code is not written |
|
|
Dear all
I have an implementation FreeSWITCH as a sort of SBC, it is used to send
the calls to the terminating carriers and do topology hiding, nothing
fancy. Also I gather cdrs from the FreeSWITCH.
In order to distinguish each customer on the FS cdrs I send an extra
header containing the accountcode.
I have noticed that if the call is canceled immediately on the same sec,
the account code is not written on the cdr.
To be more precise the cancel is send a few milliseconds after it has
received the invite, and before the FreeSWITCH has sent the call to the
terminating carrier (I'm using Homer Sipcapture to capture all the
traces and I don't see an attempt being made at the terminating carrier)
also I don't see a b-leg cdr.
FreeSWITCH is writing both a-leg and b-leg cdrs in csv format.
The dialplan that I use is simple
<extension name="carrier-1">
<condition field="network_addr"
expression="^(^xx\.xx\.xx\.xx|^yy\.yy\.yy\.yy)$"/>
<condition field="destination_number" expression="^2#(\d+)$">
<action application="set" data="call_direction=outgoing"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="sip_cid_in_1xx=false"/>
<action application="set" data="inherit_codec=true"/>
<action application="set" data="accountcode=${sip_h_X-ACCOUNTCODE}"/>
<action application="unset" data="sip_h_X-ACCOUNTCODE"/>
<action application="set" data="execute_on_answer=sched_hangup +21600
alloted_timeout"/>
<action application="bridge" data="sofia/external/4567$1@zz.zz.zz.zz:5070"/>
</condition>
</extension>
any idea how I can make sure that the account code will always be written ?
Best Regards
Panagiotis
_________________________________________________________________________
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 |
|
Back to top |
|
|
servtelar at gmail.com Guest
|
Posted: Sun Jan 31, 2016 1:47 pm Post subject: [Freeswitch-users] extra header account code is not written |
|
|
Shouldn't that be done as inline?
Sent from my iPhone
Quote: | On Jan 31, 2016, at 12:22 PM, Panagiotis Skoulikaritis <pskoul@gmail.com> wrote:
Dear all
I have an implementation FreeSWITCH as a sort of SBC, it is used to send
the calls to the terminating carriers and do topology hiding, nothing
fancy. Also I gather cdrs from the FreeSWITCH.
In order to distinguish each customer on the FS cdrs I send an extra
header containing the accountcode.
I have noticed that if the call is canceled immediately on the same sec,
the account code is not written on the cdr.
To be more precise the cancel is send a few milliseconds after it has
received the invite, and before the FreeSWITCH has sent the call to the
terminating carrier (I'm using Homer Sipcapture to capture all the
traces and I don't see an attempt being made at the terminating carrier)
also I don't see a b-leg cdr.
FreeSWITCH is writing both a-leg and b-leg cdrs in csv format.
The dialplan that I use is simple
<extension name="carrier-1">
<condition field="network_addr"
expression="^(^xx\.xx\.xx\.xx|^yy\.yy\.yy\.yy)$"/>
<condition field="destination_number" expression="^2#(\d+)$">
<action application="set" data="call_direction=outgoing"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="sip_cid_in_1xx=false"/>
<action application="set" data="inherit_codec=true"/>
<action application="set" data="accountcode=${sip_h_X-ACCOUNTCODE}"/>
<action application="unset" data="sip_h_X-ACCOUNTCODE"/>
<action application="set" data="execute_on_answer=sched_hangup +21600
alloted_timeout"/>
<action application="bridge" data="sofia/external/4567$1@zz.zz.zz.zz:5070"/>
</condition>
</extension>
any idea how I can make sure that the account code will always be written ?
Best Regards
Panagiotis
_________________________________________________________________________
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
|
_________________________________________________________________________
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 |
|
Back to top |
|
|
omortimer at gmail.com Guest
|
Posted: Sun Jan 31, 2016 4:59 pm Post subject: [Freeswitch-users] extra header account code is not written |
|
|
Try export rather than set
Quote: | On 31 Jan 2016, at 18:45, servtelar@gmail.com wrote:
Shouldn't that be done as inline?
Sent from my iPhone
Quote: | On Jan 31, 2016, at 12:22 PM, Panagiotis Skoulikaritis <pskoul@gmail.com> wrote:
Dear all
I have an implementation FreeSWITCH as a sort of SBC, it is used to send
the calls to the terminating carriers and do topology hiding, nothing
fancy. Also I gather cdrs from the FreeSWITCH.
In order to distinguish each customer on the FS cdrs I send an extra
header containing the accountcode.
I have noticed that if the call is canceled immediately on the same sec,
the account code is not written on the cdr.
To be more precise the cancel is send a few milliseconds after it has
received the invite, and before the FreeSWITCH has sent the call to the
terminating carrier (I'm using Homer Sipcapture to capture all the
traces and I don't see an attempt being made at the terminating carrier)
also I don't see a b-leg cdr.
FreeSWITCH is writing both a-leg and b-leg cdrs in csv format.
The dialplan that I use is simple
<extension name="carrier-1">
<condition field="network_addr"
expression="^(^xx\.xx\.xx\.xx|^yy\.yy\.yy\.yy)$"/>
<condition field="destination_number" expression="^2#(\d+)$">
<action application="set" data="call_direction=outgoing"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="sip_cid_in_1xx=false"/>
<action application="set" data="inherit_codec=true"/>
<action application="set" data="accountcode=${sip_h_X-ACCOUNTCODE}"/>
<action application="unset" data="sip_h_X-ACCOUNTCODE"/>
<action application="set" data="execute_on_answer=sched_hangup +21600
alloted_timeout"/>
<action application="bridge" data="sofia/external/4567$1@zz.zz.zz.zz:5070"/>
</condition>
</extension>
any idea how I can make sure that the account code will always be written ?
Best Regards
Panagiotis
_________________________________________________________________________
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
|
_________________________________________________________________________
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
|
_________________________________________________________________________
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 |
|
Back to top |
|
|
pskoul at gmail.com Guest
|
|
Back to top |
|
|
pskoul at gmail.com Guest
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|