configuring of postfix for kazoo.

132 views
Skip to first unread message

Yuriy Nasida

unread,
Jul 13, 2016, 4:29:03 PM7/13/16
to 2600h...@googlegroups.com
Hi guys,

I try to setup email2fax and follow by this link.
https://2600hz.atlassian.net/wiki/display/docs/Set+up+Fax+Boxes

I have configure postfix with  relayhost to kazoo directly
relayhost = 127.0.0.1:19025

It works and postfix sends inbound email to kazoo but... 
I got issue with voicemails delivering  to my gmail box. Postfix now try to send voicemails via  127.0.0.1:19025 too :(

Please advice how to configure postfix correctly.

Thanks.

Yuriy Nasida

unread,
Jul 14, 2016, 2:31:14 PM7/14/16
to 2600h...@googlegroups.com
Fixed by  "ensure_valid_caller_id": false in fax doc. I also had to add flag "fax" to offnet document.
Oh.... Guys, I would be great to have such documentation somewhere...
But it's not the end :(
Now I have one more issue in kazoo logs - listener terminating: badarg

Please advice.

|0000000000|Undefined:Undefined (<0.1261.0>) Supervisor stepswitch_request_sup started stepswitch_originate:start_link([{[{<<"Route">>,<<"sip:17272...@sip.sip-trunking-services.com">>},{<<"Callee-ID-Name">>,<<"172...">>},...]}], {[{<<"Timeout">>,<<"10">>},{<<"Outbound-Caller-ID-Name">>,<<"my name">>},{<<"Outbound-Call-...">>,...},...]}) at pid <0.32693.674>
|0000000000|Undefined:Undefined (<0.32695.674>) Supervisor {<0.32695.674>,amqp_channel_sup} started amqp_gen_consumer:start_link(amqp_selective_consumer, [], {<<"client 127.0.0.1:36548 -> 127.0.0.1:5672">>,10742}) at pid <0.32696.674>
|0000000000|Undefined:Undefined (<0.32695.674>) Supervisor {<0.32695.674>,amqp_channel_sup} started amqp_channel:start_link(network, <0.110.0>, 10742, <0.32696.674>, {<<"client 127.0.0.1:36548 -> 127.0.0.1:5672">>,10742}) at pid <0.32697.674>
|0000000000|Undefined:Undefined (<0.32695.674>) Supervisor {<0.32695.674>,amqp_channel_sup} started rabbit_writer:start_link(#Port<0.9611>, 10742, 131072, rabbit_framing_amqp_0_9_1, <0.32697.674>, {<<"client 127.0.0.1:36548 -> 127.0.0.1:5672">>,10742}) at pid <0.32698.674>
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_amqp_channel:307 (<0.1953.0>) bound whistl...@voip.kazoo.mydomain.com-<0.1953.0>-3c600d00 to callevt exchange (routing key call.CHANNEL_REPLACED.dcb4f1dea7ab8198) via channel <0.2020.0>
|wh_amqp_assignments|wh_amqp_assignments:593 (<0.99.0>) added new channel <0.32697.674> on amqp://guest:gu...@127.0.0.1:5672 to available pool
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_amqp_channel:288 (<0.32693.674>) declared queue whistl...@voip.kazoo.mydomain.com-<0.32693.674>-3d1abbdb via channel <0.16904.672>
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_amqp_channel:314 (<0.32693.674>) created consumer amq.ctag-2KPmaYwtVjtjtxG7TdnTFg via channel <0.16904.672>
|0e26e0aa8c24ace2ebb2fdea95ab3100|gen_listener:867 (<0.32693.674>) queue started: whistl...@voip.kazoo.mydomain.com-<0.32693.674>-3d1abbdb
|0e26e0aa8c24ace2ebb2fdea95ab3100|gen_listener:1005 (<0.32693.674>) creating new binding: 'resource'
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_amqp_channel:307 (<0.32693.674>) bound whistl...@voip.kazoo.mydomain.com-<0.32693.674>-3d1abbdb to callmgr exchange (routing key originate.resource.req) via channel <0.16904.672>
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_amqp_channel:307 (<0.32693.674>) bound whistl...@voip.kazoo.mydomain.com-<0.32693.674>-3d1abbdb to callmgr exchange (routing key eavesdrop.resource.req) via channel <0.16904.672>
|0e26e0aa8c24ace2ebb2fdea95ab3100|gen_listener:1005 (<0.32693.674>) creating new binding: 'self'
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_amqp_channel:307 (<0.32693.674>) bound whistl...@voip.kazoo.mydomain.com-<0.32693.674>-3d1abbdb to targeted exchange (routing key whistl...@voip.kazoo.mydomain.com-<0.32693.674>-3d1abbdb) via channel <0.16904.672>
|0e26e0aa8c24ace2ebb2fdea95ab3100|stepswitch_originate:255 (<0.32693.674>) set outbound caller id to undefined 'my name'
|8cce56515a037a0e|wh_cache:938 (<0.1075.0>) storing {couch_util,<<"system_config">>,<<"stepswitch">>} for 3600s
|8cce56515a037a0e|wh_cache:940 (<0.1075.0>) inserted {couch_util,<<"system_config">>,<<"stepswitch">>}
|8cce56515a037a0e|wh_cache:942 (<0.1075.0>) inserted origin pointers for {couch_util,<<"system_config">>,<<"stepswitch">>}
|8cce56515a037a0e|wh_cache:944 (<0.1075.0>) exec store callbacks
|8cce56515a037a0e|wh_cache:938 (<0.1075.0>) storing {couch_util,<<"services">>,<<"e0066d1357d24832b16e9422b52fabfa">>} for 3600s
|8cce56515a037a0e|wh_cache:940 (<0.1075.0>) inserted {couch_util,<<"services">>,<<"e0066d1357d24832b16e9422b52fabfa">>}
|8cce56515a037a0e|wh_cache:942 (<0.1075.0>) inserted origin pointers for {couch_util,<<"services">>,<<"e0066d1357d24832b16e9422b52fabfa">>}
|8cce56515a037a0e|wh_cache:944 (<0.1075.0>) exec store callbacks
|0e26e0aa8c24ace2ebb2fdea95ab3100|gen_listener:993 (<0.32693.674>) handle_cast exception: error: badarg
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:149 (<0.32693.674>) stacktrace:
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:158 (<0.32693.674>) st: erlang:byte_size at 0
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:159 (<0.32693.674>) args: undefined
|148f3251949d27e9|wh_cache:601 (<0.1243.0>) bumping global_resources to 63635739348
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:156 (<0.32693.674>) st: stepswitch_util:endpoint_format_from/4 at (309)
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:156 (<0.32693.674>) st: stepswitch_util:-format_endpoints/5-lc$^0/1-0-/7 at (223)
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:156 (<0.32693.674>) st: stepswitch_originate:build_originate/1 at (266)
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:156 (<0.32693.674>) st: stepswitch_originate:handle_cast/2 at (119)
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:156 (<0.32693.674>) st: gen_listener:handle_module_cast/2 at (979)
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:156 (<0.32693.674>) st: gen_server:handle_msg/5 at (607)
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_util:156 (<0.32693.674>) st: proc_lib:init_p_do_apply/3 at (227)
|0e26e0aa8c24ace2ebb2fdea95ab3100|stepswitch_originate:233 (<0.32693.674>) listener terminating: badarg
|0e26e0aa8c24ace2ebb2fdea95ab3100|wh_amqp_channel:95 (<0.32693.674>) release consumer <0.32693.674> channel assignment
|wh_amqp_assignments|wh_amqp_assignments:879 (<0.99.0>) unregistered handlers for channel <0.16904.672>
|0e26e0aa8c24ace2ebb2fdea95ab3100|gen_listener:730 (<0.32693.674>) stepswitch_originate terminated cleanly, going down
|0000000000|Undefined:Undefined (<0.32693.674>) gen_server <0.32693.674> terminated with reason: badarg
|wh_amqp_history|wh_amqp_history:285 (<0.100.0>) removing AMQP history for consumer <0.32693.674> in 2.5s: badarg
|0000000000|Undefined:Undefined (<0.32693.674>) CRASH REPORT Process <0.32693.674> with 0 neighbours exited with reason: bad argument in gen_server:terminate/6 line 747
|0000000000|Undefined:Undefined (<0.1261.0>) Supervisor stepswitch_request_sup had child <<"dcb4f1dea7ab8198-b1141b">> started with {stepswitch_originate,start_link,undefined} at <0.32693.674> exit with reason badarg in context child_terminated
|wh_amqp_assignments|wh_amqp_channel:104 (<0.99.0>) closed amqp channel <0.16904.672>
|wh_amqp_assignments|wh_amqp_assignments:294 (<0.99.0>) removed assignment for consumer <0.32693.674>


On 14 July 2016 at 19:34, Yuriy Nasida <yna...@gmail.com> wrote:
I got the progress by configuring transport file for postfix.

Now postfix can re-send emails to localhost:19025 but kazoo says for any CIDNum
|fax_worker:919 (<0.1955.0>) CIDNum "mycallerid" invalid in sending fax

I tried to set (on UI for faxbox--> callerid) with + and without. I tried to use short numbers. Nothing helps. Everytimes CIDNum is invalid for fax_worker

Please advice.

Yuriy Nasida

unread,
Jul 14, 2016, 2:31:15 PM7/14/16
to 2600h...@googlegroups.com
I got the progress by configuring transport file for postfix.

Now postfix can re-send emails to localhost:19025 but kazoo says for any CIDNum
|fax_worker:919 (<0.1955.0>) CIDNum "mycallerid" invalid in sending fax

I tried to set (on UI for faxbox--> callerid) with + and without. I tried to use short numbers. Nothing helps. Everytimes CIDNum is invalid for fax_worker

Please advice.

On 13 July 2016 at 23:23, Yuriy Nasida <yna...@gmail.com> wrote:

James Aimonetti

unread,
Jul 14, 2016, 3:31:05 PM7/14/16
to 2600h...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Hi Yuriy,

It would be great to have your setup steps contributed as a doc pull
request. That would do a couple of things:

1. The project would be improved for all (one of the reasons for
open-source in the first place)
2. The PR would provide feedback to the dev team to potentially make
code changes to ease/simplify setup for the next person.

Thank you for working through the process; we are trying to make a more
concerted effort to improve docs. As our team grows, fewer people
setting things up are also the people writing the code, so we need to
communicate better between them. So going forward, docs are crucial for
our internal teams as well as for the community.

Not sure about the crash though.
- --
James Aimonetti

Lead Systems Architect
"If Dialyzer don't care, I don't care"
2600HzPDX | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXh+h3AAoJENTKa+JPXCVgBgMH/3PJqQ/iU/kNSloZQYb43YeG
Tp1vVkV2kGuXB/zRxZtVYNeqgj/N4LFhpqGyHOzqt9z92QdBLzkOjOsHgCtjhVkN
Pu3reujFJ5V4CcGIPgCmrsKHJUscMm+JGzpkfxs1lNQ1Fz4RulKo52Aml9Rxxxz6
7DxtefWa8UA8QO/+s9W++6xNmr7A8N+iCuh/86w7EvntyL4YXdjTVVFT/mcCyh4w
1kePaA8Dd1bQ2IWTNYjREbySFxY8AWKuRmU4mq3XO7EOW6FvQboEjvXyhqfm414y
dHrzXw2vPo8h3yU1qck2kEOYLBWe1IKQgjIKOhaE3mNRAy3QiOvwUNDgcKmFFxw=
=a3KF
-----END PGP SIGNATURE-----

Yuriy Nasida

unread,
Jul 18, 2016, 10:42:28 AM7/18/16
to 2600h...@googlegroups.com
Fixed :)
Crash was because Caller ID was empty for my faxbox. Logs did not say this and unfortunately it was absolutely not easy to understand. 
So we should have these things to fix: 
- "ensure_valid_caller_id": false in fax doc
- not empty Caller ID

I did not get many help here this times but... anyway thanks a lot for creating of email2fax functionality. Looks really nice.

I will try to get time to create instruction James, thank you.  

Darren Schreiber

unread,
Jul 18, 2016, 10:44:37 AM7/18/16
to 2600h...@googlegroups.com

Hi there,

                Sorry for lack of help but I think it was because nobody knew what your issue was J

 

                Now that you found it, maybe file a ticket for this please? Then we can make the errors more useful for this particular scenario.

 

-          Darren

--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages