Sorting through a list of conditions
We'd like to match on either Caller ID or ANI for outbound faxes and lock them to PCMU. Here's what we've been using: <extension name="FAX-LCL-7D"> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="destination_number" expression="^9(\d{7})$"> <action application="export" data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/> <action application="export" data="nolocal:absolute_codec_string=PCMU"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/external/$0@X.X.X.X"/> <action application="set" data="instant_ringback=true"/> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> If we use a list and break=on-false, searching stops after the first non-match. If we use break=on-true, it stops after the first match, and we get no digits to send upstream. If we use break=never, it applies the digit match to all numbers, regardless of Caller ID. I realize this is all normal behavior. Is there a way to sort through a list of Caller ID's, match one, and then match the outbound digits? We're trying to avoid having to create a dial-plan entry for every Caller ID. Here's what it *might* look like with multiple internal fax lines: <extension name="FAX-LCL-7D"> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="destination_number" expression="^9(\d{7})$"> <action application="export" data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/> <action application="export" data="nolocal:absolute_codec_string=PCMU"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/external/$0@X.X.X.X"/> <action application="set" data="instant_ringback=true"/> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> Thanks, Ken Fulmer
Ken, ever heard of regexp ? :) In this case, I think you need to use one, or to add one extension per fax line, which can be more readable and managable. Other solution would be to use an external DB with XML CURL. The regexp solution would be: <condition field="caller_id_number" expression="^XXXXXXXXXX| XXXXXXXXXX|XXXXXXXXXX|XXXXXXXXXX|XXXXXXXXXX$"/> Another smart (I think) way to do that would be to create and dedicate a new SIP Profile on a specific IP or port to fax handling (of course, that's only possible if you use a dedicated SIP account for fax). I think the ability to split FreeSWITCH into multiple SIP Profiles (and so multiple threads) is something that should not be underrated. It's really easier to manage and you dont break everything when you test some new parameters on the profile. Most serious SIP devices should allow to register to a specific port, so you can use something else than 5060 (Ok I admit some shitty gear don't allow that, but most of the ATAs I know are ok). David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 05/05/2010 à 21:41, Ken Fulmer a écrit :
We’d like to match on either Caller ID or ANI for outbound faxes and lock them to PCMU.
Here’s what we’ve been using:
<extension name="FAX-LCL-7D"> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="destination_number" expression="^9(\d{7})$"> <action application="export" data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/> <action application="export" data="nolocal:absolute_codec_string=PCMU"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/external/$0@X.X.X.X"/> <action application="set" data="instant_ringback=true"/> <action application="set" data="ringback=${us-ring}"/> </condition> </extension>
If we use a list and break=on-false, searching stops after the first non-match. If we use break=on-true, it stops after the first match, and we get no digits to send upstream. If we use break=never, it applies the digit match to all numbers, regardless of Caller ID. I realize this is all normal behavior.
Is there a way to sort through a list of Caller ID’s, match one, and then match the outbound digits? We’re trying to avoid having to create a dial-plan entry for every Caller ID.
Here’s what it *might* look like with multiple internal fax lines:
<extension name="FAX-LCL-7D"> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="destination_number" expression="^9(\d{7})$"> <action application="export" data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/> <action application="export" data="nolocal:absolute_codec_string=PCMU"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/external/$0@X.X.X.X"/> <action application="set" data="instant_ringback=true"/> <action application="set" data="ringback=${us-ring}"/> </condition> </extension>
Thanks,
Ken Fulmer
_______________________________________________ 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
That is exactly what we needed. I’m still a little new to matching with regular expressions. Thanks! Ken From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of David Ponzone Sent: Wednesday, May 05, 2010 2:57 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Sorting through a list of conditions Ken, ever heard of regexp ? :) In this case, I think you need to use one, or to add one extension per fax line, which can be more readable and managable. Other solution would be to use an external DB with XML CURL. The regexp solution would be: <condition field="caller_id_number" expression="^XXXXXXXXXX|XXXXXXXXXX|XXXXXXXXXX|XXXXXXXXXX|XXXXXXXXXX$"/> Another smart (I think) way to do that would be to create and dedicate a new SIP Profile on a specific IP or port to fax handling (of course, that's only possible if you use a dedicated SIP account for fax). I think the ability to split FreeSWITCH into multiple SIP Profiles (and so multiple threads) is something that should not be underrated. It's really easier to manage and you dont break everything when you test some new parameters on the profile. Most serious SIP devices should allow to register to a specific port, so you can use something else than 5060 (Ok I admit some shitty gear don't allow that, but most of the ATAs I know are ok). David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr <BLOCKED::http://www.ipeva.fr/> - www.ipeva-studio.com <BLOCKED::http://www.ipeva-studio.com/> Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 05/05/2010 à 21:41, Ken Fulmer a écrit : We’d like to match on either Caller ID or ANI for outbound faxes and lock them to PCMU. Here’s what we’ve been using: <extension name="FAX-LCL-7D"> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="destination_number" expression="^9(\d{7})$"> <action application="export" data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/> <action application="export" data="nolocal:absolute_codec_string=PCMU"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/external/$0@X.X.X.X"/> <action application="set" data="instant_ringback=true"/> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> If we use a list and break=on-false, searching stops after the first non-match. If we use break=on-true, it stops after the first match, and we get no digits to send upstream. If we use break=never, it applies the digit match to all numbers, regardless of Caller ID. I realize this is all normal behavior. Is there a way to sort through a list of Caller ID’s, match one, and then match the outbound digits? We’re trying to avoid having to create a dial-plan entry for every Caller ID. Here’s what it *might* look like with multiple internal fax lines: <extension name="FAX-LCL-7D"> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="caller_id_number" expression="^XXXXXXXXXX$"/> <condition field="destination_number" expression="^9(\d{7})$"> <action application="export" data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/> <action application="export" data="nolocal:absolute_codec_string=PCMU"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/external/$0@X.X.X.X"/> <action application="set" data="instant_ringback=true"/> <action application="set" data="ringback=${us-ring}"/> </condition> </extension> Thanks, Ken Fulmer _______________________________________________ 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
Hi Mike, was that comment a bit "tongue in cheek", or is there a FreeSWITCH book somewhere on the (near?) horizon ? regards Dave ----- Original Message ----- From: Michael Collins To: freeswitch-users@lists.freeswitch.org Sent: Wednesday, May 05, 2010 9:55 PM Subject: Re: [Freeswitch-users] Sorting through a list of conditions On Wed, May 5, 2010 at 1:47 PM, Ken Fulmer <kenfulmer@icstechnologysolutions.com> wrote: That is exactly what we needed. I’m still a little new to matching with regular expressions. You'll be interested in Chapter 5 of the upcoming FreeSWITCH book... :D -MC ------------------------------------------------------------------------------ _______________________________________________ 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
Yes. there is actually a book in the works. MC has more details. =) -- W
It was, of course, tongue-in-cheek, but yes, there is a book forthcoming, if some of my co-authors (cough Darren cough) would stop avoiding me. :) http://www.packtpub.com/freeswitch-1-0-5-build-robust-high-performance-telep... Title is still in flux, but evidently the publisher is fond of flora cuz he/she wants the agapanthus to stay on the cover. Stay tuned for a finalized title/cover. -MC On Fri, May 7, 2010 at 8:08 AM, William Suffill <william.suffill@gmail.com>wrote:
Yes. there is actually a book in the works. MC has more details. =)
-- W
_______________________________________________ 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
What version of FreeSWITCH do we expect to be up to before release? LOL. Look forward to seeing it tho. -- W
Great to see this. In the mean time, I also started to "write" a FreeSWITCH book a short time ago. Obviously it's a Chinese version however those who interested in that can get a glance by the help of google translate. I had thought to announce that publicly when I have more chapters. I haven't though to publish it because there are not many FreeSWITCH users in China, currently it's available in a CC-BY-NC-ND license. The English name of the book is FreeSWITCH: VoIP in Action. It's not a good name but I want both FreeSWITCH and VoIP in it. I started in Chapter two which was inspired(I borrowed some, but more than 70% was re-written, I tried to publish it on an offline magazine but that didn't happen ) by an article M.C. wrote a few months ago. http://www.freeswitch.org.cn/document Obviously the book will be much less professional than the official one which I also eager to get a copy. I'd like to translate it into Chinese if it is published. There are not many readers in China currently but I believe it will has a better future - both FreeSWITCH and the book. 2010/5/8 Michael Collins <msc@freeswitch.org>:
It was, of course, tongue-in-cheek, but yes, there is a book forthcoming, if some of my co-authors (cough Darren cough) would stop avoiding me. :)
http://www.packtpub.com/freeswitch-1-0-5-build-robust-high-performance-telep...
Title is still in flux, but evidently the publisher is fond of flora cuz he/she wants the agapanthus to stay on the cover. Stay tuned for a finalized title/cover.
-MC
On Fri, May 7, 2010 at 8:08 AM, William Suffill <william.suffill@gmail.com> wrote:
Yes. there is actually a book in the works. MC has more details. =) -- W
_______________________________________________ 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
_______________________________________________ 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
-- Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
Thanks Seven! -MC On Fri, May 7, 2010 at 6:42 PM, Seven Du <dujinfang@gmail.com> wrote:
Great to see this. In the mean time, I also started to "write" a FreeSWITCH book a short time ago. Obviously it's a Chinese version however those who interested in that can get a glance by the help of google translate. I had thought to announce that publicly when I have more chapters. I haven't though to publish it because there are not many FreeSWITCH users in China, currently it's available in a CC-BY-NC-ND license.
The English name of the book is FreeSWITCH: VoIP in Action. It's not a good name but I want both FreeSWITCH and VoIP in it. I started in Chapter two which was inspired(I borrowed some, but more than 70% was re-written, I tried to publish it on an offline magazine but that didn't happen ) by an article M.C. wrote a few months ago.
http://www.freeswitch.org.cn/document
Obviously the book will be much less professional than the official one which I also eager to get a copy. I'd like to translate it into Chinese if it is published. There are not many readers in China currently but I believe it will has a better future - both FreeSWITCH and the book.
2010/5/8 Michael Collins <msc@freeswitch.org>:
It was, of course, tongue-in-cheek, but yes, there is a book forthcoming, if some of my co-authors (cough Darren cough) would stop avoiding me. :)
http://www.packtpub.com/freeswitch-1-0-5-build-robust-high-performance-telep...
Title is still in flux, but evidently the publisher is fond of flora cuz he/she wants the agapanthus to stay on the cover. Stay tuned for a
finalized
title/cover.
-MC
On Fri, May 7, 2010 at 8:08 AM, William Suffill < william.suffill@gmail.com> wrote:
Yes. there is actually a book in the works. MC has more details. =) -- W
_______________________________________________ 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
_______________________________________________ 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
-- Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn
_______________________________________________ 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
hi, I have playing around with FreeSWITCHf or a while and one of things I am looking for is unique Alarms-codes FreeSwitch has error, warning, info etc on the logging - but the message print module name and line-number - it does not incude a proper, unique alarm-code. Using the combination of module-name and line-number is possible - but this changes from release to release. The point with alarms is that they are forwarded into databases/applications/operating senters that monitor telecom equipmenet. The way this usually is done is that the forwarding mechanism filter on alarm-code/severity as we don't want to forward junk - but it's a requirement that we visualise those that affect business. --- It's doable to change logging so that every module insert a unique number - starting with 1 - this would make modulename + alarm-code an unique combination that would serve the purpose. Any suggestions? Jan _________________________________________________________________ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969
Hello Jan, I believe you're confusing alarms with logging and those two are not the same thing and I think should not be mixed. For alarms an special event should be triggered ( as mentioned in other thread, may be SWITCH_EVENT_TRAP ). mod_freetdm ( FreeSWITCH PSTN module ) is already sending a SWITCH_EVENT_TRAP when any pstn port becomes alarmed, other modules may start using it for their own type of alarms. Then we may add the alarm-code and severity fields. Moises Silva Senior Software Engineer Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada t. 1 905 474 1990 x 128 | e. moy@sangoma.com On Sat, May 8, 2010 at 2:47 AM, Jan Berger <janvb@live.com> wrote:
hi,
I have playing around with FreeSWITCHf or a while and one of things I am looking for is unique Alarms-codes
FreeSwitch has error, warning, info etc on the logging - but the message print module name and line-number - it does not incude a proper, unique alarm-code. Using the combination of module-name and line-number is possible - but this changes from release to release.
The point with alarms is that they are forwarded into databases/applications/operating senters that monitor telecom equipmenet. The way this usually is done is that the forwarding mechanism filter on alarm-code/severity as we don't want to forward junk - but it's a requirement that we visualise those that affect business.
---
It's doable to change logging so that every module insert a unique number - starting with 1 - this would make modulename + alarm-code an unique combination that would serve the purpose.
Any suggestions?
Jan
------------------------------ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now. <https://signup.live.com/signup.aspx?id=60969>
_______________________________________________ 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
You could add an "Alarm" statement in coding, but error's and warning's serve the same purpose and you would in reality be coding an "alarm" side by side with these. Actually - all I really want is the module name + code. Text, severity and what to do we look up in a config database. jan _____ From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Moises Silva Sent: 8. mai 2010 20:01 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Alarms-codes Hello Jan, I believe you're confusing alarms with logging and those two are not the same thing and I think should not be mixed. For alarms an special event should be triggered ( as mentioned in other thread, may be SWITCH_EVENT_TRAP ). mod_freetdm ( FreeSWITCH PSTN module ) is already sending a SWITCH_EVENT_TRAP when any pstn port becomes alarmed, other modules may start using it for their own type of alarms. Then we may add the alarm-code and severity fields. Moises Silva Senior Software Engineer Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada t. 1 905 474 1990 x 128 | e. moy@sangoma.com On Sat, May 8, 2010 at 2:47 AM, Jan Berger <janvb@live.com> wrote: hi, I have playing around with FreeSWITCHf or a while and one of things I am looking for is unique Alarms-codes FreeSwitch has error, warning, info etc on the logging - but the message print module name and line-number - it does not incude a proper, unique alarm-code. Using the combination of module-name and line-number is possible - but this changes from release to release. The point with alarms is that they are forwarded into databases/applications/operating senters that monitor telecom equipmenet. The way this usually is done is that the forwarding mechanism filter on alarm-code/severity as we don't want to forward junk - but it's a requirement that we visualise those that affect business. --- It's doable to change logging so that every module insert a unique number - starting with 1 - this would make modulename + alarm-code an unique combination that would serve the purpose. Any suggestions? Jan _____ Hotmail: Trusted email with Microsoft's powerful SPAM protection. Sign up <https://signup.live.com/signup.aspx?id=60969> now. _______________________________________________ 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
Moises is right. The best place for this is in an Event or we would be duplicating things. Also consuming events is easier than trying to scan a log file. On Sat, May 8, 2010 at 5:01 PM, Jan Berger <jan.berger@video24.no> wrote:
You could add an “Alarm” statement in coding, but error’s and warning’s serve the same purpose and you would in reality be coding an “alarm” side by side with these.
Actually – all I really want is the module name + code. Text, severity and what to do we look up in a config database.
jan
------------------------------
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Moises Silva *Sent:* 8. mai 2010 20:01 *To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] Alarms-codes
Hello Jan,
I believe you're confusing alarms with logging and those two are not the same thing and I think should not be mixed. For alarms an special event should be triggered ( as mentioned in other thread, may be SWITCH_EVENT_TRAP ).
mod_freetdm ( FreeSWITCH PSTN module ) is already sending a SWITCH_EVENT_TRAP when any pstn port becomes alarmed, other modules may start using it for their own type of alarms. Then we may add the alarm-code and severity fields.
Moises Silva Senior Software Engineer Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada t. 1 905 474 1990 x 128 | e. moy@sangoma.com
On Sat, May 8, 2010 at 2:47 AM, Jan Berger <janvb@live.com> wrote:
hi,
I have playing around with FreeSWITCHf or a while and one of things I am looking for is unique Alarms-codes
FreeSwitch has error, warning, info etc on the logging - but the message print module name and line-number - it does not incude a proper, unique alarm-code. Using the combination of module-name and line-number is possible - but this changes from release to release.
The point with alarms is that they are forwarded into databases/applications/operating senters that monitor telecom equipmenet. The way this usually is done is that the forwarding mechanism filter on alarm-code/severity as we don't want to forward junk - but it's a requirement that we visualise those that affect business.
---
It's doable to change logging so that every module insert a unique number - starting with 1 - this would make modulename + alarm-code an unique combination that would serve the purpose.
Any suggestions?
Jan
------------------------------
Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now. <https://signup.live.com/signup.aspx?id=60969>
_______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
Hello, I'm not quite sure I understood what you're asking, but i think what you want to do is: <extension name="FAX-LCL-7D"> <condition field="caller_id_number" expression="^((XXXXXXXXXX)|(XXXXXXXXXY)|(XXXXXXXXXZ))$"/> <condition field="destination_number" expression="^9(\d{7})$"> ( ... ) Is that it? -Milena 2010/5/5 Ken Fulmer <kenfulmer@icstechnologysolutions.com>
We’d like to match on either Caller ID or ANI for outbound faxes and lock them to PCMU.
Here’s what we’ve been using:
<extension name="FAX-LCL-7D">
<condition field="caller_id_number" expression="^XXXXXXXXXX$"/>
<condition field="destination_number" expression="^9(\d{7})$">
<action application="export" data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/>
<action application="export" data="nolocal:absolute_codec_string=PCMU"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="sofia/external/$0@X.X.X.X"/>
<action application="set" data="instant_ringback=true"/>
<action application="set" data="ringback=${us-ring}"/>
</condition>
</extension>
If we use a list and break=on-false, searching stops after the first non-match. If we use break=on-true, it stops after the first match, and we get no digits to send upstream. If we use break=never, it applies the digit match to all numbers, regardless of Caller ID. I realize this is all normal behavior.
Is there a way to sort through a list of Caller ID’s, match one, and then match the outbound digits? We’re trying to avoid having to create a dial-plan entry for every Caller ID.
Here’s what it *might* look like with multiple internal fax lines:
<extension name="FAX-LCL-7D">
<condition field="caller_id_number" expression="^XXXXXXXXXX$"/>
<condition field="caller_id_number" expression="^XXXXXXXXXX$"/>
<condition field="caller_id_number" expression="^XXXXXXXXXX$"/>
<condition field="caller_id_number" expression="^XXXXXXXXXX$"/>
<condition field="caller_id_number" expression="^XXXXXXXXXX$"/>
<condition field="caller_id_number" expression="^XXXXXXXXXX$"/>
<condition field="caller_id_number" expression="^XXXXXXXXXX$"/>
<condition field="caller_id_number" expression="^XXXXXXXXXX$"/>
<condition field="destination_number" expression="^9(\d{7})$">
<action application="export" data="sip_append_audio_sdp=a=fmtp:18 annexb=no"/>
<action application="export" data="nolocal:absolute_codec_string=PCMU"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="sofia/external/$0@X.X.X.X"/>
<action application="set" data="instant_ringback=true"/>
<action application="set" data="ringback=${us-ring}"/>
</condition>
</extension>
Thanks,
Ken Fulmer
_______________________________________________ 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
participants (11)
-
Anthony Minessale
-
Dave Stevenson
-
David Ponzone
-
Jan Berger
-
Jan Berger
-
Ken Fulmer
-
Michael Collins
-
Milena
-
Moises Silva
-
Seven Du
-
William Suffill